{ "openapi": "3.0.0", "info": { "title": "Hostinger API", "description": "# Overview\nThe Hostinger API provides a comprehensive set of endpoints that allow developers\nto interact with Hostinger's services programmatically.\nThis API enables you to manage various aspects of your Hostinger account.\n\nThe Hostinger API is a (mostly) RESTful API that uses standard HTTP methods and status codes.\n# Authentication\nThe Hostinger API uses tokens for authentication. To authenticate your requests,\nyou need to include a valid bearer token in the Authorization header of your HTTP requests:\n```yaml\nAuthorization: Bearer YOUR_API_TOKEN\n```\nAPI tokens for individual users can be created and managed from\nthe [Account page](https://hpanel.hostinger.com/profile/api) of the Hostinger Panel.\nTokens will have same permissions as the owning user.\nOptionally, tokens can be set to expire after a certain period of time.\n# Rate Limiting\nTo ensure fair usage and prevent abuse,\nthe API enforces rate limits on the number of requests that can be made within a certain time period.\nIf you exceed the rate limit, you will receive a 429 Too Many Requests response.\nRate limit headers are included in the response to help you manage your requests.\nYour IP address might get temporarily blocked if you exceed the rate limit multiple times.\n# Parameters\nAll requests sent to API must have the content type `application/json`.\n`POST`, `PUT`, `PATCH` methods may include a JSON object in the request body.\nDocumentation provides required structure and examples of the object.\nSome endpoints require path parameters.\nThese parameters are included in the URL path and are marked with curly braces.\n# Pagination\nSome endpoints return a large number of items.\nTo make these responses more manageable, the API uses pagination.\nBy default, the API returns50 items per page.\n\n The page number can be specified using the `page` query parameter,\n for example: `/api/vps/v1/public-keys?page=2`\n# Errors\nThe Hostinger API uses standard HTTP status codes to indicate the success or failure of a request.\nIn case of an error, the API will return a JSON response with an `error` field,\ncontaining a human-readable error message.\nError responses also contain a `correlation_id` field\nwhich can be used to identify the request in case you need to contact support.\n# SDKs & Tools\nTo help you get started with the Hostinger API,we provide SDKs and tools in various programming languages.\nThe usage & documentation for each SDK can be found in the respective repositories:\n- Ansible - https://github.com/hostinger/ansible-collection-hostinger\n- CLI - https://github.com/hostinger/api-cli\n- n8n node - https://github.com/hostinger/api-n8n-node\n- MCP server - https://github.com/hostinger/api-mcp-server\n- PHP - https://github.com/hostinger/api-php-sdk\n- Python - https://github.com/hostinger/api-python-sdk\n- Terraform - https://github.com/hostinger/terraform-provider-hostinger\n- Node / TypeScript - https://github.com/hostinger/api-typescript-sdk\n- Postman collection - https://www.postman.com/hostinger-api\n- WHMCS module - https://github.com/hostinger/api-whmcs-plugin\n# Change log\nFor information on the latest changes to the API,\nplease refer to the [change log](https://github.com/hostinger/api/blob/main/CHANGELOG.md).\n# Support\nIf you have any questions, feedback or feature requests,\nplease create an [issue](https://github.com/hostinger/api/issues)\nor [discussion](https://github.com/hostinger/api/discussions) on the repository.\n\nFor any support take a look at our [Github Repository](https://github.com/hostinger/api/),\ndedicated to the Hostinger API.", "contact": { "name": "Hostinger", "url": "https://developers.hostinger.com", "email": "devs@hostinger.com" }, "version": "1.2.0", "x-scalar-sdk-installation": [ { "lang": "Shell", "description": "Install official CLI tool. Examples and usage instructions can be found in our [Github repository](https://github.com/hostinger/api-cli).", "source": "hostinger vps vm list" }, { "lang": "PHP", "description": "Install official PHP SDK. Examples and usage instructions can be found in our [Github repository](https://github.com/hostinger/api-php-sdk).", "source": "composer require hostinger/api-php-sdk" }, { "lang": "Python", "description": "Install official Python SDK. Examples and usage instructions can be found in our [Github repository](https://github.com/hostinger/api-python-sdk).", "source": "pip install hostinger_api" }, { "lang": "Node", "description": "Install official Node / Typescript SDK. Examples and usage instructions can be found in our [Github repository](https://github.com/hostinger/api-typescript-sdk).", "source": "npm install hostinger-api-sdk" } ] }, "servers": [ { "url": "https://developers.hostinger.com", "description": "Production API Server" } ], "paths": { "/api/billing/v1/catalog": { "get": { "tags": [ "Billing: Catalog" ], "summary": "Get catalog item list", "description": "Retrieve catalog items available for order.\n\nPrices in catalog items is displayed as cents (without floating point),\ne.g: float `17.99` is displayed as integer `1799`.\n\nUse this endpoint to view available services and pricing before placing orders.", "operationId": "billing_getCatalogItemListV1", "parameters": [ { "$ref": "#/components/parameters/category" }, { "$ref": "#/components/parameters/name" } ], "responses": { "200": { "description": "Success response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Billing.V1.Catalog.CatalogItemCollection" } } } }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } } }, "/api/billing/v1/payment-methods/{paymentMethodId}": { "post": { "tags": [ "Billing: Payment methods" ], "summary": "Set default payment method", "description": "Set the default payment method for your account.\n\nUse this endpoint to configure the primary payment method for future orders.", "operationId": "billing_setDefaultPaymentMethodV1", "parameters": [ { "$ref": "#/components/parameters/paymentMethodId" } ], "responses": { "200": { "description": "Success empty response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Common.SuccessEmptyResource" } } } }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } }, "delete": { "tags": [ "Billing: Payment methods" ], "summary": "Delete payment method", "description": "Delete a payment method from your account.\n\nUse this endpoint to remove unused payment methods from user accounts.", "operationId": "billing_deletePaymentMethodV1", "parameters": [ { "$ref": "#/components/parameters/paymentMethodId" } ], "responses": { "200": { "description": "Success empty response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Common.SuccessEmptyResource" } } } }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } } }, "/api/billing/v1/payment-methods": { "get": { "tags": [ "Billing: Payment methods" ], "summary": "Get payment method list", "description": "Retrieve available payment methods that can be used for placing new orders.\n\nIf you want to add new payment method,\nplease use [hPanel](https://hpanel.hostinger.com/billing/payment-methods).\n\nUse this endpoint to view available payment options before creating orders.", "operationId": "billing_getPaymentMethodListV1", "responses": { "200": { "description": "Success response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Billing.V1.PaymentMethod.PaymentMethodCollection" } } } }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } } }, "/api/billing/v1/subscriptions": { "get": { "tags": [ "Billing: Subscriptions" ], "summary": "Get subscription list", "description": "Retrieve a list of all subscriptions associated with your account.\n\nUse this endpoint to monitor active services and billing status.", "operationId": "billing_getSubscriptionListV1", "responses": { "200": { "description": "Success response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Billing.V1.Subscription.SubscriptionCollection" } } } }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } } }, "/api/billing/v1/subscriptions/{subscriptionId}/auto-renewal/disable": { "delete": { "tags": [ "Billing: Subscriptions" ], "summary": "Disable auto-renewal", "description": "Disable auto-renewal for a subscription.\n\nUse this endpoint when disable auto-renewal for a subscription.", "operationId": "billing_disableAutoRenewalV1", "parameters": [ { "$ref": "#/components/parameters/subscriptionId" } ], "responses": { "200": { "description": "Success response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Billing.V1.Subscription.SubscriptionResource" } } } }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } } }, "/api/billing/v1/subscriptions/{subscriptionId}/auto-renewal/enable": { "patch": { "tags": [ "Billing: Subscriptions" ], "summary": "Enable auto-renewal", "description": "Enable auto-renewal for a subscription.\n\nUse this endpoint when enable auto-renewal for a subscription.", "operationId": "billing_enableAutoRenewalV1", "parameters": [ { "$ref": "#/components/parameters/subscriptionId" } ], "responses": { "200": { "description": "Success response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Billing.V1.Subscription.SubscriptionResource" } } } }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } } }, "/api/dns/v1/snapshots/{domain}/{snapshotId}": { "get": { "tags": [ "DNS: Snapshot" ], "summary": "Get DNS snapshot", "description": "Retrieve particular DNS snapshot with contents of DNS zone records.\n\nUse this endpoint to view historical DNS configurations for domains.", "operationId": "DNS_getDNSSnapshotV1", "parameters": [ { "$ref": "#/components/parameters/domain" }, { "$ref": "#/components/parameters/snapshotId" } ], "responses": { "200": { "description": "Success response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/DNS.V1.Snapshot.SnapshotWithContentResource" } } } }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } } }, "/api/dns/v1/snapshots/{domain}": { "get": { "tags": [ "DNS: Snapshot" ], "summary": "Get DNS snapshot list", "description": "Retrieve DNS snapshots for a domain.\n\nUse this endpoint to view available DNS backup points for restoration.", "operationId": "DNS_getDNSSnapshotListV1", "parameters": [ { "$ref": "#/components/parameters/domain" } ], "responses": { "200": { "description": "Success response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/DNS.V1.Snapshot.SnapshotCollection" } } } }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } } }, "/api/dns/v1/snapshots/{domain}/{snapshotId}/restore": { "post": { "tags": [ "DNS: Snapshot" ], "summary": "Restore DNS snapshot", "description": "Restore DNS zone to the selected snapshot.\n\nUse this endpoint to revert domain DNS to a previous configuration.", "operationId": "DNS_restoreDNSSnapshotV1", "parameters": [ { "$ref": "#/components/parameters/domain" }, { "$ref": "#/components/parameters/snapshotId" } ], "responses": { "200": { "description": "Success response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Common.SuccessEmptyResource" } } } }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } } }, "/api/dns/v1/zones/{domain}": { "get": { "tags": [ "DNS: Zone" ], "summary": "Get DNS records", "description": "Retrieve DNS zone records for a specific domain.\n\nUse this endpoint to view current DNS configuration for domain management.", "operationId": "DNS_getDNSRecordsV1", "parameters": [ { "$ref": "#/components/parameters/domain" } ], "responses": { "200": { "description": "Success response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/DNS.V1.Zone.RecordCollection" } } } }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } }, "put": { "tags": [ "DNS: Zone" ], "summary": "Update DNS records", "description": "Update DNS records for the selected domain.\n\nUsing `overwrite = true` will replace existing records with the provided ones. \nOtherwise existing records will be updated and new records will be added.\n\nUse this endpoint to modify domain DNS configuration.", "operationId": "DNS_updateDNSRecordsV1", "parameters": [ { "$ref": "#/components/parameters/domain" } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/DNS.V1.Zone.UpdateRequest" } } } }, "responses": { "200": { "description": "Success response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Common.SuccessEmptyResource" } } } }, "422": { "$ref": "#/components/responses/Common.Response.UnprocessableContentResponse" }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } }, "delete": { "tags": [ "DNS: Zone" ], "summary": "Delete DNS records", "description": "Delete DNS records for the selected domain.\n\nTo filter which records to delete, add the `name` of the record and `type` to the filter. \nMultiple filters can be provided with single request.\n\nIf you have multiple records with the same name and type, and you want to delete only part of them,\nrefer to the `Update zone records` endpoint.\n\nUse this endpoint to remove specific DNS records from domains.", "operationId": "DNS_deleteDNSRecordsV1", "parameters": [ { "$ref": "#/components/parameters/domain" } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/DNS.V1.Zone.DestroyRequest" } } } }, "responses": { "200": { "description": "Success response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Common.SuccessEmptyResource" } } } }, "422": { "$ref": "#/components/responses/Common.Response.UnprocessableContentResponse" }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } } }, "/api/dns/v1/zones/{domain}/reset": { "post": { "tags": [ "DNS: Zone" ], "summary": "Reset DNS records", "description": "Reset DNS zone to the default records.\n\nUse this endpoint to restore domain DNS to original configuration.", "operationId": "DNS_resetDNSRecordsV1", "parameters": [ { "$ref": "#/components/parameters/domain" } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/DNS.V1.Zone.ResetRequest" } } } }, "responses": { "200": { "description": "Success response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Common.SuccessEmptyResource" } } } }, "422": { "$ref": "#/components/responses/Common.Response.UnprocessableContentResponse" }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } } }, "/api/dns/v1/zones/{domain}/validate": { "post": { "tags": [ "DNS: Zone" ], "summary": "Validate DNS records", "description": "Validate DNS records prior to update for the selected domain.\n\nIf the validation is successful, the response will contain `200 Success` code.\nIf there is validation error, the response will fail with `422 Validation error` code.\n\nUse this endpoint to verify DNS record validity before applying changes.", "operationId": "DNS_validateDNSRecordsV1", "parameters": [ { "$ref": "#/components/parameters/domain" } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/DNS.V1.Zone.UpdateRequest" } } } }, "responses": { "200": { "description": "Success response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Common.SuccessEmptyResource" } } } }, "422": { "$ref": "#/components/responses/Common.Response.UnprocessableContentResponse" }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } } }, "/api/v2/direct/verifications/active": { "get": { "tags": [ "Domain Access Verifier: Verifications" ], "summary": "Get domain verifications", "description": "Retrieve a list of pending and completed domain verifications.", "operationId": "v2_getDomainVerificationsDIRECT", "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/DomainAccessVerifier.V2.Verifications.ListRequest" } } } }, "responses": { "200": { "description": "Success response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/DomainAccessVerifier.V2.Verifications.ActiveVerificationsCollection" } } } }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "422": { "$ref": "#/components/responses/Common.Response.UnprocessableContentResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } } }, "/api/domains/v1/availability": { "post": { "tags": [ "Domains: Availability" ], "summary": "Check domain availability", "description": "Check availability of domain names across multiple TLDs.\n\nMultiple TLDs can be checked at once.\nIf you want alternative domains with response, provide only one TLD and set `with_alternatives` to `true`.\nTLDs should be provided without leading dot (e.g. `com`, `net`, `org`).\n\nEndpoint has rate limit of 10 requests per minute.\n\nUse this endpoint to verify domain availability before purchase.", "operationId": "domains_checkDomainAvailabilityV1", "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Domains.V1.Availability.AvailabilityRequest" } } } }, "responses": { "200": { "description": "Success response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Domains.V1.Availability.AvailabilityCollection" } } } }, "422": { "$ref": "#/components/responses/Common.Response.UnprocessableContentResponse" }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } } }, "/api/domains/v1/forwarding/{domain}": { "get": { "tags": [ "Domains: Forwarding" ], "summary": "Get domain forwarding", "description": "Retrieve domain forwarding data.\n\nUse this endpoint to view current redirect configuration for domains.", "operationId": "domains_getDomainForwardingV1", "parameters": [ { "$ref": "#/components/parameters/domain" } ], "responses": { "200": { "description": "Success response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Domains.V1.Forwarding.ForwardingResource" } } } }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } }, "delete": { "tags": [ "Domains: Forwarding" ], "summary": "Delete domain forwarding", "description": "Delete domain forwarding data.\n\nUse this endpoint to remove redirect configuration from domains.", "operationId": "domains_deleteDomainForwardingV1", "parameters": [ { "$ref": "#/components/parameters/domain" } ], "responses": { "200": { "description": "Success response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Common.SuccessEmptyResource" } } } }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } } }, "/api/domains/v1/forwarding": { "post": { "tags": [ "Domains: Forwarding" ], "summary": "Create domain forwarding", "description": "Create domain forwarding configuration.\n\nUse this endpoint to set up domain redirects to other URLs.", "operationId": "domains_createDomainForwardingV1", "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Domains.V1.Forwarding.StoreRequest" } } } }, "responses": { "200": { "description": "Success response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Domains.V1.Forwarding.ForwardingResource" } } } }, "422": { "$ref": "#/components/responses/Common.Response.UnprocessableContentResponse" }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } } }, "/api/domains/v1/portfolio/{domain}/domain-lock": { "put": { "tags": [ "Domains: Portfolio" ], "summary": "Enable domain lock", "description": "Enable domain lock for the domain.\n\nWhen domain lock is enabled,\nthe domain cannot be transferred to another registrar without first disabling the lock.\n\nUse this endpoint to secure domains against unauthorized transfers.", "operationId": "domains_enableDomainLockV1", "parameters": [ { "$ref": "#/components/parameters/domain" } ], "responses": { "200": { "description": "Success empty response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Common.SuccessEmptyResource" } } } }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } }, "delete": { "tags": [ "Domains: Portfolio" ], "summary": "Disable domain lock", "description": "Disable domain lock for the domain.\n\nDomain lock needs to be disabled before transferring the domain to another registrar.\n\nUse this endpoint to prepare domains for transfer to other registrars.", "operationId": "domains_disableDomainLockV1", "parameters": [ { "$ref": "#/components/parameters/domain" } ], "responses": { "200": { "description": "Success empty response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Common.SuccessEmptyResource" } } } }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } } }, "/api/domains/v1/portfolio/{domain}": { "get": { "tags": [ "Domains: Portfolio" ], "summary": "Get domain details", "description": "Retrieve detailed information for specified domain.\n\nUse this endpoint to view comprehensive domain configuration and status.", "operationId": "domains_getDomainDetailsV1", "parameters": [ { "$ref": "#/components/parameters/domain" } ], "responses": { "200": { "description": "Success response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Domains.V1.Domain.DomainExtendedResource" } } } }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } } }, "/api/domains/v1/portfolio": { "get": { "tags": [ "Domains: Portfolio" ], "summary": "Get domain list", "description": "Retrieve all domains associated with your account.\n\nUse this endpoint to view user's domain portfolio.", "operationId": "domains_getDomainListV1", "responses": { "200": { "description": "Success response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Domains.V1.Domain.DomainCollection" } } } }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } }, "post": { "tags": [ "Domains: Portfolio" ], "summary": "Purchase new domain", "description": "Purchase and register a new domain name.\n\nIf registration fails, login to [hPanel](https://hpanel.hostinger.com/) and check domain registration status.\n\nIf no payment method is provided, your default payment method will be used automatically.\n\nIf no WHOIS information is provided, default contact information for that TLD will be used.\nBefore making request, ensure WHOIS information for desired TLD exists in your account.\n\nSome TLDs require `additional_details` to be provided and these will be validated before completing purchase.\n\nUse this endpoint to register new domains for users.", "operationId": "domains_purchaseNewDomainV1", "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Domains.V1.Portfolio.PurchaseRequest" } } } }, "responses": { "200": { "description": "Success response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Billing.V1.Order.OrderResource" } } } }, "422": { "$ref": "#/components/responses/Common.Response.UnprocessableContentResponse" }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } } }, "/api/domains/v1/portfolio/{domain}/privacy-protection": { "put": { "tags": [ "Domains: Portfolio" ], "summary": "Enable privacy protection", "description": "Enable privacy protection for the domain.\n\nWhen privacy protection is enabled, domain owner's personal information is hidden from public WHOIS database.\n\nUse this endpoint to protect domain owner's personal information from public view.", "operationId": "domains_enablePrivacyProtectionV1", "parameters": [ { "$ref": "#/components/parameters/domain" } ], "responses": { "200": { "description": "Success empty response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Common.SuccessEmptyResource" } } } }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } }, "delete": { "tags": [ "Domains: Portfolio" ], "summary": "Disable privacy protection", "description": "Disable privacy protection for the domain.\n\nWhen privacy protection is disabled, domain owner's personal information is visible in public WHOIS database.\n\nUse this endpoint to make domain owner's information publicly visible.", "operationId": "domains_disablePrivacyProtectionV1", "parameters": [ { "$ref": "#/components/parameters/domain" } ], "responses": { "200": { "description": "Success empty response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Common.SuccessEmptyResource" } } } }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } } }, "/api/domains/v1/portfolio/{domain}/nameservers": { "put": { "tags": [ "Domains: Portfolio" ], "summary": "Update domain nameservers", "description": "Set nameservers for a specified domain.\n\nBe aware, that improper nameserver configuration can lead to the domain being unresolvable or unavailable.\n\nUse this endpoint to configure custom DNS hosting for domains.", "operationId": "domains_updateDomainNameserversV1", "parameters": [ { "$ref": "#/components/parameters/domain" } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Domains.V1.Portfolio.UpdateNameserversRequest" } } } }, "responses": { "200": { "description": "Success empty response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Common.SuccessEmptyResource" } } } }, "422": { "$ref": "#/components/responses/Common.Response.UnprocessableContentResponse" }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } } }, "/api/domains/v1/whois/{whoisId}": { "get": { "tags": [ "Domains: WHOIS" ], "summary": "Get WHOIS profile", "description": "Retrieve a WHOIS contact profile.\n\nUse this endpoint to view domain registration contact information.", "operationId": "domains_getWHOISProfileV1", "parameters": [ { "$ref": "#/components/parameters/whoisId" } ], "responses": { "200": { "description": "Success response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Domains.V1.WHOIS.ProfileResource" } } } }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } }, "delete": { "tags": [ "Domains: WHOIS" ], "summary": "Delete WHOIS profile", "description": "Delete WHOIS contact profile.\n\nUse this endpoint to remove unused contact profiles from account.", "operationId": "domains_deleteWHOISProfileV1", "parameters": [ { "$ref": "#/components/parameters/whoisId" } ], "responses": { "200": { "description": "Success response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Common.SuccessEmptyResource" } } } }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } } }, "/api/domains/v1/whois": { "get": { "tags": [ "Domains: WHOIS" ], "summary": "Get WHOIS profile list", "description": "Retrieve WHOIS contact profiles.\n\nUse this endpoint to view available contact profiles for domain registration.", "operationId": "domains_getWHOISProfileListV1", "parameters": [ { "$ref": "#/components/parameters/tld" } ], "responses": { "200": { "description": "Success response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Domains.V1.WHOIS.ProfileCollection" } } } }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } }, "post": { "tags": [ "Domains: WHOIS" ], "summary": "Create WHOIS profile", "description": "Create WHOIS contact profile.\n\nUse this endpoint to add new contact information for domain registration.", "operationId": "domains_createWHOISProfileV1", "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Domains.V1.WHOIS.StoreRequest" } } } }, "responses": { "200": { "description": "Success response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Domains.V1.WHOIS.ProfileResource" } } } }, "422": { "$ref": "#/components/responses/Common.Response.UnprocessableContentResponse" }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } } }, "/api/domains/v1/whois/{whoisId}/usage": { "get": { "tags": [ "Domains: WHOIS" ], "summary": "Get WHOIS profile usage", "description": "Retrieve domain list where provided WHOIS contact profile is used.\n\nUse this endpoint to view which domains use specific contact profiles.", "operationId": "domains_getWHOISProfileUsageV1", "parameters": [ { "$ref": "#/components/parameters/whoisId" } ], "responses": { "200": { "description": "Success response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Domains.V1.WHOIS.ProfileUsageResource" } } } }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } } }, "/api/ecommerce/v1/miscellaneous/custom-storefront-instructions": { "get": { "tags": [ "Ecommerce: Miscellaneous" ], "summary": "Get custom storefront setup instructions", "description": "Retrieve step-by-step setup instructions, formatted as Markdown, for connecting a custom sales\nchannel to your store and keeping your catalog, orders, shipping and payments in sync through\nthe Ecommerce API.", "operationId": "ecommerce_getCustomStorefrontSetupInstructionsV1", "responses": { "200": { "description": "Success response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Ecommerce.V1.Miscellaneous.CustomStorefrontInstructionsResource" } } } }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } } }, "/api/ecommerce/v1/stores/{store_id}/payment-methods/manual": { "post": { "tags": [ "Ecommerce: Payments" ], "summary": "Enable manual payment method", "description": "Enable a manual payment method so the store can accept orders without an online payment provider.", "operationId": "ecommerce_enableManualPaymentMethodV1", "parameters": [ { "name": "store_id", "in": "path", "description": "The ID of the store to enable manual payment for.", "required": true, "schema": { "type": "string", "example": "store_01J8Z5F8W9K8M4A7B3C2D1E0FG" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Ecommerce.V1.Payment.EnableManualPaymentRequest" } } } }, "responses": { "201": { "description": "Created response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Ecommerce.V1.Payment.ManualPaymentResource" } } } }, "422": { "$ref": "#/components/responses/Common.Response.UnprocessableContentResponse" }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } } }, "/api/ecommerce/v1/stores/{store_id}/products/digital": { "post": { "tags": [ "Ecommerce: Products" ], "summary": "Create digital product", "description": "Create a published digital product with a single variant and an optional external download link.", "operationId": "ecommerce_createDigitalProductV1", "parameters": [ { "name": "store_id", "in": "path", "description": "The ID of the store to create the product in.", "required": true, "schema": { "type": "string", "example": "store_01J8Z5F8W9K8M4A7B3C2D1E0FG" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Ecommerce.V1.Product.CreateDigitalProductRequest" } } } }, "responses": { "201": { "description": "Created response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Ecommerce.V1.Product.ProductCreationResource" } } } }, "422": { "$ref": "#/components/responses/Common.Response.UnprocessableContentResponse" }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } } }, "/api/ecommerce/v1/stores/{store_id}/products/physical": { "post": { "tags": [ "Ecommerce: Products" ], "summary": "Create physical product", "description": "Create a published physical product with a single variant priced in the store currency.", "operationId": "ecommerce_createPhysicalProductV1", "parameters": [ { "name": "store_id", "in": "path", "description": "The ID of the store to create the product in.", "required": true, "schema": { "type": "string", "example": "store_01J8Z5F8W9K8M4A7B3C2D1E0FG" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Ecommerce.V1.Product.CreatePhysicalProductRequest" } } } }, "responses": { "201": { "description": "Created response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Ecommerce.V1.Product.ProductCreationResource" } } } }, "422": { "$ref": "#/components/responses/Common.Response.UnprocessableContentResponse" }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } } }, "/api/ecommerce/v1/stores/{store_id}/sales-channels": { "get": { "tags": [ "Ecommerce: Sales channels" ], "summary": "List sales channels", "description": "List a store's active sales channels with their full metadata.", "operationId": "ecommerce_listSalesChannelsV1", "parameters": [ { "name": "store_id", "in": "path", "description": "The ID of the store to list sales channels for.", "required": true, "schema": { "type": "string", "example": "store_01J8Z5F8W9K8M4A7B3C2D1E0FG" } } ], "responses": { "200": { "description": "Success response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Ecommerce.V1.SalesChannel.SalesChannelListResource" } } } }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } }, "post": { "tags": [ "Ecommerce: Sales channels" ], "summary": "Create a custom sales channel", "description": "Create a custom sales channel for a store. Build your own frontend and keep your catalog,\norders, shipping and payments in sync through the Ecommerce API.", "operationId": "ecommerce_createACustomSalesChannelV1", "parameters": [ { "name": "store_id", "in": "path", "description": "The ID of the store to create the sales channel for.", "required": true, "schema": { "type": "string", "example": "store_01J8Z5F8W9K8M4A7B3C2D1E0FG" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Ecommerce.V1.SalesChannel.StoreRequest" } } } }, "responses": { "201": { "description": "Created response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Ecommerce.V1.SalesChannel.SalesChannelCreationResource" } } } }, "422": { "$ref": "#/components/responses/Common.Response.UnprocessableContentResponse" }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } } }, "/api/ecommerce/v1/stores/{store_id}/shipping": { "post": { "tags": [ "Ecommerce: Shipping" ], "summary": "Set store shipping", "description": "Set the flat-rate shipping price for a store, creating the shipping zone if it does not exist yet.", "operationId": "ecommerce_setStoreShippingV1", "parameters": [ { "name": "store_id", "in": "path", "description": "The ID of the store to configure shipping for.", "required": true, "schema": { "type": "string", "example": "store_01J8Z5F8W9K8M4A7B3C2D1E0FG" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Ecommerce.V1.Shipping.SetShippingRequest" } } } }, "responses": { "200": { "description": "Success response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Ecommerce.V1.Shipping.ShippingResource" } } } }, "422": { "$ref": "#/components/responses/Common.Response.UnprocessableContentResponse" }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } } }, "/api/ecommerce/v1/stores/{store_id}": { "delete": { "tags": [ "Ecommerce: Stores" ], "summary": "Delete store", "description": "Soft-delete a store owned by your account.\n\nThe underlying store data is preserved; only the store is marked as deleted.", "operationId": "ecommerce_deleteStoreV1", "parameters": [ { "name": "store_id", "in": "path", "description": "The ID of the store to delete.", "required": true, "schema": { "type": "string", "example": "store_01J8Z5F8W9K8M4A7B3C2D1E0FG" } } ], "responses": { "200": { "description": "Success response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Ecommerce.V1.Store.StoreDeleteResource" } } } }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } } }, "/api/ecommerce/v1/stores": { "get": { "tags": [ "Ecommerce: Stores" ], "summary": "Get stores", "description": "Retrieve the stores associated with your account.", "operationId": "ecommerce_getStoresV1", "parameters": [ { "$ref": "#/components/parameters/page" } ], "responses": { "200": { "description": "Success response", "content": { "application/json": { "schema": { "properties": { "data": { "$ref": "#/components/schemas/Ecommerce.V1.Store.StoreCollection" }, "meta": { "$ref": "#/components/schemas/Common.Schema.PaginationMetaSchema" } }, "type": "object" } } } }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } }, "post": { "tags": [ "Ecommerce: Stores" ], "summary": "Create store", "description": "Create a new store for your account.\n\nA primary sales channel is created alongside the store.", "operationId": "ecommerce_createStoreV1", "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Ecommerce.V1.Store.StoreRequest" } } } }, "responses": { "201": { "description": "Created response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Ecommerce.V1.Store.StoreCreationResource" } } } }, "422": { "$ref": "#/components/responses/Common.Response.UnprocessableContentResponse" }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } } }, "/api/horizons/v1/websites": { "post": { "tags": [ "Horizons: Websites" ], "summary": "Create website", "description": "Create new Hostinger Horizons website from the given message.\\n\nUse this tool when user asks you to create a website, landing page, blog\nor any other type of application.\\n\nThis tool initiates the website creation process and returns a website URL and ID.\nThe generation happens asynchronously.\\n\nAfter invoking this tool, your chat reply must be EXACTLY 1 sentence summarizing\nthat Hostinger Horizons is now creating their website and it will be ready in a few minutes\nand you should provide the website URL to the user immediately\nDo not write code.\\n\\nTo edit afterwards, users must go to Hostinger Horizons interface\nin the provided website URL.\nIf the tool call fails with an error, you should provide a clear explanation of the error\nand do not generate code yourself in the chat.\n\\n\nTECHNOLOGY STACK CONSTRAINTS (STRICTLY ENFORCED):\\n\nThe environment is limited to the following technologies.\nYou MUST NOT use, suggest, or implement any technology outside this list:\\n\n\\n\n- Language: JavaScript ONLY.\n- Languages like TypeScript, Rust, Python, Java, PHP, etc., are STRICTLY PROHIBITED.\\n\n- Framework: React.\\n\n- Navigation: React Router.\\n\n- Styling: TailwindCSS.\\n\n- Components: shadcn/ui (built with @radix-ui primitives).\\n\n- Icons: Lucide React.\\n\n- Animations: Framer Motion.\\n\n\\n\nBACKEND & DATA STORAGE:\\n\n- Horizons integrated backend is the EXCLUSIVE solution for persistent data storage,\nauthentication, and database needs.\\n\n- Local databases (SQLite, MySQL, etc.) are STRICTLY PROHIBITED.\\n\n- Third-party services (Firebase, AWS Amplify) are allowed ONLY if explicitly requested by the user.\\n\n\\n\nMAPS:\\n\n- OpenStreetMap is the default provider.\\n\n- Alternative providers (Google Maps, Mapbox) are allowed ONLY if explicitly requested by the user.\\n", "operationId": "horizons_createWebsiteV1", "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Horizons.V1.Websites.CreateWebsiteRequest" } } } }, "responses": { "200": { "description": "Success response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Horizons.V1.Websites.CreatedWebsiteResource" } } } }, "422": { "$ref": "#/components/responses/Common.Response.UnprocessableContentResponse" }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } } }, "/api/horizons/v1/websites/{websiteId}": { "get": { "tags": [ "Horizons: Websites" ], "summary": "Get website", "description": "Get a link for the user to edit their website in Hostinger Horizons interface.\\n\nUse this tool when user wants to modify, edit or add new features to an existing website.\\n\nWebsites can only be edited in Hostinger Horizons interface in the provided website URL.", "operationId": "horizons_getWebsiteV1", "parameters": [ { "$ref": "#/components/parameters/website_id_path" } ], "responses": { "200": { "description": "Success response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Horizons.V1.Websites.WebsiteUrlResource" } } } }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } } }, "/api/hosting/v1/accounts/{username}/cron-jobs": { "get": { "tags": [ "Hosting: Cron Jobs" ], "summary": "List account cron jobs", "description": "Returns the list of cron jobs configured for the specified account, including their schedule and command.", "operationId": "hosting_listAccountCronJobsV1", "parameters": [ { "$ref": "#/components/parameters/username_path" } ], "responses": { "200": { "description": "Success response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Hosting.V1.CronJobs.CronJobCollection" } } } }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } }, "post": { "tags": [ "Hosting: Cron Jobs" ], "summary": "Create account cron job", "description": "Creates a cron job for the specified account from a schedule expression and a command.\n\nReturns the created cron job, including its uid, which is required to delete the cron job or fetch its output.", "operationId": "hosting_createAccountCronJobV1", "parameters": [ { "$ref": "#/components/parameters/username_path" } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Hosting.V1.CronJobs.CreateCronJobRequest" } } } }, "responses": { "200": { "description": "Success response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Hosting.V1.CronJobs.CronJobResource" } } } }, "422": { "$ref": "#/components/responses/Common.Response.UnprocessableContentResponse" }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } } }, "/api/hosting/v1/accounts/{username}/cron-jobs/{uid}": { "delete": { "tags": [ "Hosting: Cron Jobs" ], "summary": "Delete account cron job", "description": "Permanently deletes the cron job identified by its uid.\n\nThe uid is returned by the list cron jobs endpoint.", "operationId": "hosting_deleteAccountCronJobV1", "parameters": [ { "$ref": "#/components/parameters/username_path" }, { "$ref": "#/components/parameters/cron_job_uid_path" } ], "responses": { "200": { "description": "Success empty response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Common.SuccessEmptyResource" } } } }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } } }, "/api/hosting/v1/accounts/{username}/cron-jobs/{uid}/output": { "get": { "tags": [ "Hosting: Cron Jobs" ], "summary": "Get cron job output", "description": "Returns the output captured from the last execution of the cron job identified by its uid.\n\nThe uid is returned by the list cron jobs endpoint.", "operationId": "hosting_getCronJobOutputV1", "parameters": [ { "$ref": "#/components/parameters/username_path" }, { "$ref": "#/components/parameters/cron_job_uid_path" } ], "responses": { "200": { "description": "Success response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Hosting.V1.CronJobs.CronJobOutputResource" } } } }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } } }, "/api/hosting/v1/accounts/{username}/databases/{name}/change-password": { "patch": { "tags": [ "Hosting: Databases" ], "summary": "Change database password", "description": "Changes the password for the specified database user.\n\nThe database name must be the full name returned by the list databases endpoint.\nThe password must also be updated in any website configuration that uses this database.", "operationId": "hosting_changeDatabasePasswordV1", "parameters": [ { "$ref": "#/components/parameters/username_path" }, { "$ref": "#/components/parameters/database_name_path" } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Hosting.V1.Databases.ChangeDatabasePasswordRequest" } } } }, "responses": { "200": { "description": "Success empty response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Common.SuccessEmptyResource" } } } }, "422": { "$ref": "#/components/responses/Common.Response.UnprocessableContentResponse" }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } } }, "/api/hosting/v1/accounts/{username}/databases": { "get": { "tags": [ "Hosting: Databases" ], "summary": "List account databases", "description": "Returns a paginated list of databases for the specified account.\n\nUse the domain and is_assigned filters to find databases assigned to a specific domain.", "operationId": "hosting_listAccountDatabasesV1", "parameters": [ { "$ref": "#/components/parameters/username_path" }, { "$ref": "#/components/parameters/page" }, { "$ref": "#/components/parameters/per_page" }, { "$ref": "#/components/parameters/domain_filter" }, { "$ref": "#/components/parameters/database_is_assigned" }, { "$ref": "#/components/parameters/database_search" } ], "responses": { "200": { "description": "Success response", "content": { "application/json": { "schema": { "properties": { "data": { "$ref": "#/components/schemas/Hosting.V1.Databases.DatabaseCollection" }, "meta": { "$ref": "#/components/schemas/Common.Schema.PaginationMetaSchema" } }, "type": "object" } } } }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } }, "post": { "tags": [ "Hosting: Databases" ], "summary": "Create account database", "description": "Creates a database with a database user and password for the specified account.\n\nThe database name and user are automatically prefixed with the account username when needed.", "operationId": "hosting_createAccountDatabaseV1", "parameters": [ { "$ref": "#/components/parameters/username_path" } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Hosting.V1.Databases.CreateDatabaseRequest" } } } }, "responses": { "200": { "description": "Success empty response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Common.SuccessEmptyResource" } } } }, "422": { "$ref": "#/components/responses/Common.Response.UnprocessableContentResponse" }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } } }, "/api/hosting/v1/accounts/{username}/databases/{name}": { "delete": { "tags": [ "Hosting: Databases" ], "summary": "Delete account database", "description": "Permanently deletes a database and its remote connections.\n\nThe database name must be the full name returned by the list databases endpoint.", "operationId": "hosting_deleteAccountDatabaseV1", "parameters": [ { "$ref": "#/components/parameters/username_path" }, { "$ref": "#/components/parameters/database_name_path" } ], "responses": { "200": { "description": "Success empty response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Common.SuccessEmptyResource" } } } }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } } }, "/api/hosting/v1/accounts/{username}/databases/{name}/remote-connections": { "post": { "tags": [ "Hosting: Databases" ], "summary": "Create account database remote connection", "description": "Allows a remote host to connect to the specified database.\n\nProvide an IPv4/IPv6 address, or \"%\" to allow any host. The database name must be\nthe full name returned by the list databases endpoint.", "operationId": "hosting_createAccountDatabaseRemoteConnectionV1", "parameters": [ { "$ref": "#/components/parameters/username_path" }, { "$ref": "#/components/parameters/database_name_path" } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Hosting.V1.Databases.RemoteConnections.CreateRemoteConnectionRequest" } } } }, "responses": { "200": { "description": "Success empty response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Common.SuccessEmptyResource" } } } }, "422": { "$ref": "#/components/responses/Common.Response.UnprocessableContentResponse" }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } }, "delete": { "tags": [ "Hosting: Databases" ], "summary": "Delete account database remote connection", "description": "Permanently removes a remote-access rule, revoking the given host's remote access to the database.\n\nIdentify the rule with the required ip query parameter (the IPv4/IPv6 address, or \"%\",\nexactly as returned by the list remote connections endpoint). The database name must be\nthe full name returned by the list databases endpoint.", "operationId": "hosting_deleteAccountDatabaseRemoteConnectionV1", "parameters": [ { "$ref": "#/components/parameters/username_path" }, { "$ref": "#/components/parameters/database_name_path" }, { "name": "ip", "in": "query", "description": "Remote host to revoke: the IPv4/IPv6 address, or \"%\",\nexactly as returned by the list remote connections endpoint.", "required": true, "schema": { "type": "string", "example": "192.0.2.10" } } ], "responses": { "200": { "description": "Success empty response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Common.SuccessEmptyResource" } } } }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } } }, "/api/hosting/v1/accounts/{username}/databases/remote-connections": { "get": { "tags": [ "Hosting: Databases" ], "summary": "List account database remote connections", "description": "Returns the remote-access rules for the specified account: the remote hosts\n(IPv4/IPv6 addresses, or \"%\" for any host) allowed to connect to the account databases.\n\nUse the domain filter to only return rules for databases assigned to a specific domain.", "operationId": "hosting_listAccountDatabaseRemoteConnectionsV1", "parameters": [ { "$ref": "#/components/parameters/username_path" }, { "name": "domain", "in": "query", "description": "Filter remote connections by the domain the database is assigned to.\nRules for databases not assigned to any domain are always included.", "required": false, "schema": { "type": "string", "example": "example.com", "nullable": true } } ], "responses": { "200": { "description": "Success response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Hosting.V1.Databases.RemoteConnections.RemoteConnectionCollection" } } } }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } } }, "/api/hosting/v1/accounts/{username}/databases/{name}/repair": { "patch": { "tags": [ "Hosting: Databases" ], "summary": "Repair database", "description": "Repairs corrupted database tables asynchronously.\n\nUse when database errors, crashes, or corruption are reported.\nThe database name must be the full name returned by the list databases endpoint.", "operationId": "hosting_repairDatabaseV1", "parameters": [ { "$ref": "#/components/parameters/username_path" }, { "$ref": "#/components/parameters/database_name_path" } ], "responses": { "200": { "description": "Success empty response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Common.SuccessEmptyResource" } } } }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } } }, "/api/hosting/v1/accounts/{username}/databases/{name}/phpmyadmin-link": { "get": { "tags": [ "Hosting: Databases" ], "summary": "Get phpMyAdmin link", "description": "Returns a direct sign-on link to phpMyAdmin for the specified database.\n\nUse this when a visual database interface is needed for SQL queries, imports, exports, or table management.\nThe database name must be the full name returned by the list databases endpoint.", "operationId": "hosting_getPhpMyAdminLinkV1", "parameters": [ { "$ref": "#/components/parameters/username_path" }, { "$ref": "#/components/parameters/database_name_path" } ], "responses": { "200": { "description": "Success response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Hosting.V1.Databases.PhpMyAdminLinkResource" } } } }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } } }, "/api/hosting/v1/datacenters": { "get": { "tags": [ "Hosting: Datacenters" ], "summary": "List available datacenters", "description": "Retrieve a list of datacenters available for setting up hosting plans\nbased on available datacenter capacity and hosting plan of your order.\nThe first item in the list is the best match for your specific order\nrequirements.", "operationId": "hosting_listAvailableDatacentersV1", "parameters": [ { "$ref": "#/components/parameters/order_id_required" } ], "responses": { "200": { "description": "Success response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Hosting.V1.Datacenter.DatacenterCollection" } } } }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } } }, "/api/hosting/v1/domains/free-subdomains": { "post": { "tags": [ "Hosting: Domains" ], "summary": "Generate a free subdomain", "description": "Generate a unique free subdomain that can be used for hosting services without purchasing custom domains.\nFree subdomains allow you to start using hosting services immediately\nand you can always connect a custom domain to your site later.", "operationId": "hosting_generateAFreeSubdomainV1", "responses": { "200": { "description": "Success response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Hosting.V1.Domains.FreeSubdomainResource" } } } }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } } }, "/api/hosting/v1/accounts/{username}/websites/{domain}/parked-domains": { "get": { "tags": [ "Hosting: Domains" ], "summary": "List website parked domains", "description": "Retrieve all parked or alias domains created under the selected website.\n\nUse this endpoint to inspect parked domain configuration for a specific website,\nincluding the parent domain and root directory assigned to each parked domain.", "operationId": "hosting_listWebsiteParkedDomainsV1", "parameters": [ { "$ref": "#/components/parameters/username_path" }, { "$ref": "#/components/parameters/domain" } ], "responses": { "200": { "description": "Success response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Hosting.V1.Domains.ParkedDomainCollection" } } } }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } }, "post": { "tags": [ "Hosting: Domains" ], "summary": "Create website parked domain", "description": "Create a parked or alias domain for the selected website.\n\nProvide a domain name or IP address to park on the website so it serves the same content\nas the parent domain.", "operationId": "hosting_createWebsiteParkedDomainV1", "parameters": [ { "$ref": "#/components/parameters/username_path" }, { "$ref": "#/components/parameters/domain" } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Hosting.V1.Domains.CreateParkedDomainRequest" } } } }, "responses": { "200": { "description": "Success empty response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Common.SuccessEmptyResource" } } } }, "422": { "$ref": "#/components/responses/Common.Response.UnprocessableContentResponse" }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } } }, "/api/hosting/v1/accounts/{username}/websites/{domain}/parked-domains/{parkedDomain}": { "delete": { "tags": [ "Hosting: Domains" ], "summary": "Delete website parked domain", "description": "Delete an existing parked or alias domain from the selected website.\n\nUse this endpoint to remove parked domains that are no longer needed.", "operationId": "hosting_deleteWebsiteParkedDomainV1", "parameters": [ { "$ref": "#/components/parameters/username_path" }, { "$ref": "#/components/parameters/domain" }, { "$ref": "#/components/parameters/parked_domain_path" } ], "responses": { "200": { "description": "Success empty response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Common.SuccessEmptyResource" } } } }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } } }, "/api/hosting/v1/accounts/{username}/websites/{domain}/subdomains": { "get": { "tags": [ "Hosting: Domains" ], "summary": "List website subdomains", "description": "Retrieve all subdomains created under the selected website.\n\nUse this endpoint to inspect subdomain configuration for a specific website,\nincluding the parent domain and root directory assigned to each subdomain.", "operationId": "hosting_listWebsiteSubdomainsV1", "parameters": [ { "$ref": "#/components/parameters/username_path" }, { "$ref": "#/components/parameters/domain" } ], "responses": { "200": { "description": "Success response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Hosting.V1.Domains.SubdomainCollection" } } } }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } }, "post": { "tags": [ "Hosting: Domains" ], "summary": "Create website subdomain", "description": "Create a new subdomain for the selected website.\n\nProvide a subdomain prefix and, optionally, a custom directory or the\nwebsite public directory to use as the subdomain root.", "operationId": "hosting_createWebsiteSubdomainV1", "parameters": [ { "$ref": "#/components/parameters/username_path" }, { "$ref": "#/components/parameters/domain" } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Hosting.V1.Domains.CreateSubdomainRequest" } } } }, "responses": { "200": { "description": "Success empty response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Common.SuccessEmptyResource" } } } }, "422": { "$ref": "#/components/responses/Common.Response.UnprocessableContentResponse" }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } } }, "/api/hosting/v1/accounts/{username}/websites/{domain}/subdomains/{subdomain}": { "delete": { "tags": [ "Hosting: Domains" ], "summary": "Delete website subdomain", "description": "Delete an existing subdomain from the selected website.\n\nUse this endpoint to remove subdomains that are no longer needed.", "operationId": "hosting_deleteWebsiteSubdomainV1", "parameters": [ { "$ref": "#/components/parameters/username_path" }, { "$ref": "#/components/parameters/domain" }, { "$ref": "#/components/parameters/subdomain_path" } ], "responses": { "200": { "description": "Success empty response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Common.SuccessEmptyResource" } } } }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } } }, "/api/hosting/v1/domains/verify-ownership": { "post": { "tags": [ "Hosting: Domains" ], "summary": "Verify domain ownership", "description": "Verify ownership of a single domain and return the verification status.\n\nUse this endpoint to check if a domain is accessible for you before using it for new websites.\nIf the domain is accessible, the response will have `is_accessible: true`.\nIf not, add the given TXT record to your domain's DNS records and try verifying again.\nKeep in mind that it may take up to 10 minutes for new TXT DNS records to propagate.\n\nSkip this verification when using Hostinger's free subdomains (*.hostingersite.com).", "operationId": "hosting_verifyDomainOwnershipV1", "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Hosting.V1.Domains.VerifyOwnershipRequest" } } } }, "responses": { "200": { "description": "Success response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Hosting.V1.Domains.DomainAccessResource" } } } }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "422": { "$ref": "#/components/responses/Common.Response.UnprocessableContentResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } } }, "/api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/builds": { "get": { "tags": [ "Hosting: NodeJS" ], "summary": "List NodeJS builds", "description": "Retrieve a paginated list of Node.js build processes for a specific website.\n\nEach build represents a single run of the Node.js build pipeline. Use the `states`\nquery parameter to filter results by build state (pending, running, completed, failed).\nUse the `uuid` from a build to poll its output via the `Get Node.js Build Logs` endpoint.", "operationId": "hosting_listNodeJSBuildsV1", "parameters": [ { "$ref": "#/components/parameters/username_path" }, { "$ref": "#/components/parameters/domain" }, { "$ref": "#/components/parameters/page" }, { "$ref": "#/components/parameters/per_page" }, { "name": "states", "in": "query", "description": "Build states to filter by", "required": false, "style": "form", "explode": true, "schema": { "type": "array", "items": { "type": "string", "enum": [ "pending", "running", "completed", "failed" ] } } } ], "responses": { "200": { "description": "Success response", "content": { "application/json": { "schema": { "properties": { "data": { "$ref": "#/components/schemas/Hosting.V1.NodeJs.BuildCollection" }, "meta": { "$ref": "#/components/schemas/Common.Schema.PaginationMetaSchema" } }, "type": "object" } } } }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } } }, "/api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/builds/from-archive": { "post": { "tags": [ "Hosting: NodeJS" ], "summary": "Create NodeJS build from archive", "description": "Upload a project archive, auto-detect build settings, and immediately start a Node.js build.\n\nThis is the recommended single-step approach for deploying a Node.js application.\nThe archive is uploaded to the website's file storage, build settings are auto-detected\nfrom the package.json inside the archive, and the build process starts automatically.\nOptional override fields take precedence over auto-detected values.\nMaximum archive size is 50MB.\n\nBefore archiving, exclude `node_modules/` and any build output directories\n(e.g. `dist/`, `.next/`, `build/`) — they are not needed because the build\nprocess runs the install step automatically, and including them unnecessarily\nincreases the archive size. This also helps keep the archive well under the 50MB limit.\n\nExample (zip):\n```\nzip -r archive.zip . --exclude \"node_modules/*\" --exclude \"dist/*\"\n```\n\nThe returned build `uuid` can be used to poll progress and retrieve logs via\nthe `Get Node.js Build Logs` endpoint.", "operationId": "hosting_createNodeJSBuildFromArchiveV1", "parameters": [ { "$ref": "#/components/parameters/username_path" }, { "$ref": "#/components/parameters/domain" } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Hosting.V1.NodeJs.CreateFromArchiveRequest" } } } }, "responses": { "200": { "description": "Success response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Hosting.V1.NodeJs.BuildResource" } } } }, "422": { "$ref": "#/components/responses/Common.Response.UnprocessableContentResponse" }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } } }, "/api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/builds/{uuid}/logs": { "get": { "tags": [ "Hosting: NodeJS" ], "summary": "Get NodeJS build logs", "description": "Retrieve logs from a specific Node.js build process.\n\nTo stream live output while a build is running, poll this endpoint repeatedly\nwhile the build state is `running`, passing the previously returned `lines` count\nas `from_line` to fetch only new output since the last call.\nLog content may contain ANSI escape sequences (color codes).", "operationId": "hosting_getNodeJSBuildLogsV1", "parameters": [ { "$ref": "#/components/parameters/username_path" }, { "$ref": "#/components/parameters/domain" }, { "$ref": "#/components/parameters/build_uuid_path" }, { "name": "from_line", "in": "query", "description": "Line from which to start retrieving logs", "required": false, "schema": { "type": "integer", "default": 0, "example": 10, "nullable": true } } ], "responses": { "200": { "description": "Success response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Hosting.V1.NodeJs.BuildLogsResource" } } } }, "422": { "$ref": "#/components/responses/Common.Response.UnprocessableContentResponse" }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } } }, "/api/hosting/v1/orders": { "get": { "tags": [ "Hosting: Orders" ], "summary": "List orders", "description": "Retrieve a paginated list of orders accessible to the authenticated client.\n\nThis endpoint returns orders of your hosting accounts as well as orders\nof other client hosting accounts that have shared access with you.\n\nUse the available query parameters to filter results by order statuses\nor specific order IDs for more targeted results.", "operationId": "hosting_listOrdersV1", "parameters": [ { "$ref": "#/components/parameters/page" }, { "$ref": "#/components/parameters/per_page" }, { "$ref": "#/components/parameters/statuses" }, { "$ref": "#/components/parameters/order_ids" } ], "responses": { "200": { "description": "Success response", "content": { "application/json": { "schema": { "properties": { "data": { "$ref": "#/components/schemas/Hosting.V1.Orders.OrderCollection" }, "meta": { "$ref": "#/components/schemas/Common.Schema.PaginationMetaSchema" } }, "type": "object" } } } }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } } }, "/api/hosting/v1/accounts/{username}/websites/{domain}/php/extensions/reset": { "patch": { "tags": [ "Hosting: PHP" ], "summary": "Reset PHP extensions", "description": "Resets all PHP extensions of the website to their default state.\n\nUse it to recover from extension conflicts or restore the original configuration.", "operationId": "hosting_resetPHPExtensionsV1", "parameters": [ { "$ref": "#/components/parameters/username_path" }, { "$ref": "#/components/parameters/domain" } ], "responses": { "200": { "description": "Success empty response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Common.SuccessEmptyResource" } } } }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } } }, "/api/hosting/v1/accounts/{username}/websites/{domain}/php/details": { "get": { "tags": [ "Hosting: PHP" ], "summary": "Get PHP details", "description": "Returns the full PHP configuration for the website: current version, available versions\n(supported and unsupported), enabled/disabled extensions, options with their current value,\ndefault, type and the plan limit (`max`), and conflicting extension groups.\n\nUse it to check the current PHP setup before updating the version, extensions or options.", "operationId": "hosting_getPHPDetailsV1", "parameters": [ { "$ref": "#/components/parameters/username_path" }, { "$ref": "#/components/parameters/domain" } ], "responses": { "200": { "description": "Success response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Hosting.V1.Php.PhpDetailsResource" } } } }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } } }, "/api/hosting/v1/accounts/{username}/websites/{domain}/php/php-info": { "get": { "tags": [ "Hosting: PHP" ], "summary": "Get PHP info", "description": "Returns the full phpinfo page (HTML) for the website.\n\nUse it to debug PHP issues or inspect the complete PHP environment of the website.", "operationId": "hosting_getPHPInfoV1", "parameters": [ { "$ref": "#/components/parameters/username_path" }, { "$ref": "#/components/parameters/domain" } ], "responses": { "200": { "description": "Success response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Hosting.V1.Php.PhpInfoResource" } } } }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } } }, "/api/hosting/v1/accounts/{username}/websites/{domain}/php/extensions": { "patch": { "tags": [ "Hosting: PHP" ], "summary": "Update PHP extensions", "description": "Enables or disables PHP extensions (modules) for the website.\n\nUse the Get PHP details endpoint to check the current extension states before changing them.", "operationId": "hosting_updatePHPExtensionsV1", "parameters": [ { "$ref": "#/components/parameters/username_path" }, { "$ref": "#/components/parameters/domain" } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Hosting.V1.Php.UpdatePhpExtensionsRequest" } } } }, "responses": { "200": { "description": "Success empty response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Common.SuccessEmptyResource" } } } }, "422": { "$ref": "#/components/responses/Common.Response.UnprocessableContentResponse" }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } } }, "/api/hosting/v1/accounts/{username}/websites/{domain}/php/options": { "patch": { "tags": [ "Hosting: PHP" ], "summary": "Update PHP options", "description": "Updates PHP options for the website (e.g. `memory_limit`, `max_execution_time`, `upload_max_filesize`).\nOnly provide the options you want to change, inside the `options` object.\n\nValues above the account plan limit are silently capped to that limit, so the request can succeed\nwith a smaller applied value. Call the Get PHP details endpoint afterwards to read the applied value.", "operationId": "hosting_updatePHPOptionsV1", "parameters": [ { "$ref": "#/components/parameters/username_path" }, { "$ref": "#/components/parameters/domain" } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Hosting.V1.Php.UpdatePhpOptionsRequest" } } } }, "responses": { "200": { "description": "Success empty response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Common.SuccessEmptyResource" } } } }, "422": { "$ref": "#/components/responses/Common.Response.UnprocessableContentResponse" }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } } }, "/api/hosting/v1/accounts/{username}/websites/{domain}/php/version": { "patch": { "tags": [ "Hosting: PHP" ], "summary": "Update PHP version", "description": "Changes the PHP version of the website.\n\nUse the Get PHP details endpoint to see the versions available for the website.", "operationId": "hosting_updatePHPVersionV1", "parameters": [ { "$ref": "#/components/parameters/username_path" }, { "$ref": "#/components/parameters/domain" } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Hosting.V1.Php.UpdatePhpVersionRequest" } } } }, "responses": { "200": { "description": "Success empty response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Common.SuccessEmptyResource" } } } }, "422": { "$ref": "#/components/responses/Common.Response.UnprocessableContentResponse" }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } } }, "/api/hosting/v1/websites": { "get": { "tags": [ "Hosting: Websites" ], "summary": "List websites", "description": "Retrieve a paginated list of websites (main and addon types) accessible to the authenticated client.\n\nThis endpoint returns websites from your hosting accounts as well as\nwebsites from other client hosting accounts that have shared access\nwith you.\n\nUse the available query parameters to filter results by username,\norder ID, enabled status, or domain name for more targeted results.", "operationId": "hosting_listWebsitesV1", "parameters": [ { "$ref": "#/components/parameters/page" }, { "$ref": "#/components/parameters/per_page" }, { "$ref": "#/components/parameters/username" }, { "$ref": "#/components/parameters/order_id" }, { "$ref": "#/components/parameters/is_enabled" }, { "$ref": "#/components/parameters/domain_filter" } ], "responses": { "200": { "description": "Success response", "content": { "application/json": { "schema": { "properties": { "data": { "$ref": "#/components/schemas/Hosting.V1.Websites.WebsiteCollection" }, "meta": { "$ref": "#/components/schemas/Common.Schema.PaginationMetaSchema" } }, "type": "object" } } } }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } }, "post": { "tags": [ "Hosting: Websites" ], "summary": "Create website", "description": "Create a new website for the authenticated client.\n\nProvide the domain name and associated order ID to create a new website.\nThe datacenter_code parameter is required when creating the first website\non a new hosting plan - this will set up and configure new hosting account\nin the selected datacenter.\n\nSubsequent websites will be hosted on the same datacenter automatically.\n\nWebsite creation takes up to a few minutes to complete. Check the\nwebsites list endpoint to see when your new website becomes available.", "operationId": "hosting_createWebsiteV1", "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Hosting.V1.Websites.CreateWebsiteRequest" } } } }, "responses": { "200": { "description": "Success empty response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Common.SuccessEmptyResource" } } } }, "422": { "$ref": "#/components/responses/Common.Response.UnprocessableContentResponse" }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } } }, "/api/reach/v1/contacts/{uuid}": { "delete": { "tags": [ "Reach: Contacts" ], "summary": "Delete a contact", "description": "Delete a contact with the specified UUID.\n\nThis endpoint permanently removes a contact from the email marketing system.", "operationId": "reach_deleteAContactV1", "parameters": [ { "$ref": "#/components/parameters/uuid" } ], "responses": { "200": { "description": "Success response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Common.SuccessEmptyResource" } } } }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } } }, "/api/reach/v1/contacts/groups": { "get": { "tags": [ "Reach: Contacts" ], "summary": "List contact groups", "description": "Get a list of all contact groups.\n\nThis endpoint returns a list of contact groups that can be used to organize contacts.", "operationId": "reach_listContactGroupsV1", "responses": { "200": { "description": "Success response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Reach.V1.Contacts.Groups.ContactGroupCollection" } } } }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } }, "deprecated": true, "x-scalar-ignore": true } }, "/api/reach/v1/contacts": { "get": { "tags": [ "Reach: Contacts" ], "summary": "List contacts", "description": "Get a list of contacts, optionally filtered by group and subscription status.\n\nThis endpoint returns a paginated list of contacts with their basic information.\nYou can filter contacts by group UUID and subscription status.", "operationId": "reach_listContactsV1", "parameters": [ { "$ref": "#/components/parameters/group_uuid" }, { "$ref": "#/components/parameters/subscription_status" }, { "$ref": "#/components/parameters/page" } ], "responses": { "200": { "description": "Success response", "content": { "application/json": { "schema": { "properties": { "data": { "$ref": "#/components/schemas/Reach.V1.Contacts.ContactCollection" }, "meta": { "$ref": "#/components/schemas/Common.Schema.PaginationMetaSchema" } }, "type": "object" } } } }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } }, "post": { "tags": [ "Reach: Contacts" ], "summary": "Create a new contact", "description": "Create a new contact in the email marketing system.\n\nThis endpoint allows you to create a new contact with basic information like name, email, and surname.\n\nIf double opt-in is enabled,\nthe contact will be created with a pending status and a confirmation email will be sent.", "operationId": "reach_createANewContactV1", "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Reach.V1.Contacts.StoreRequest" } } } }, "responses": { "200": { "description": "Success empty response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Common.SuccessEmptyResource" } } } }, "422": { "$ref": "#/components/responses/Common.Response.UnprocessableContentResponse" }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } }, "deprecated": true, "x-scalar-ignore": true } }, "/api/reach/v1/segmentation/segments": { "get": { "tags": [ "Reach: Segments" ], "summary": "List segments", "description": "Get a list of all contact segments.\n\nThis endpoint returns a list of contact segments that can be used to organize contacts.", "operationId": "reach_listSegmentsV1", "responses": { "200": { "description": "Success response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Reach.V1.Contacts.Segments.ContactSegmentCollection" } } } }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } }, "post": { "tags": [ "Reach: Segments" ], "summary": "Create a new contact segment", "description": "Create a new contact segment.\n\nThis endpoint allows creating a new contact segment that can be used to organize contacts.\nThe segment can be configured with specific criteria like email, name, subscription status, etc.", "operationId": "reach_createANewContactSegmentV1", "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Reach.V1.Contacts.Segments.StoreRequest" } } } }, "responses": { "200": { "description": "Success response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Reach.V1.Contacts.Segments.SegmentResource" } } } }, "422": { "$ref": "#/components/responses/Common.Response.UnprocessableContentResponse" }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } } }, "/api/reach/v1/profiles/{profileUuid}/segmentation/segments/{segmentUuid}/contacts": { "get": { "tags": [ "Reach: Segments" ], "summary": "List profile segment contacts", "description": "Retrieve contacts associated with a specific segment for a given profile.\n\nThis endpoint allows you to fetch and filter contacts that belong to a particular segment,\nidentified by its UUID, scoped to a specific profile.", "operationId": "reach_listProfileSegmentContactsV1", "parameters": [ { "$ref": "#/components/parameters/profileUuid" }, { "$ref": "#/components/parameters/segmentUuid" }, { "$ref": "#/components/parameters/page" }, { "$ref": "#/components/parameters/per_page" } ], "responses": { "200": { "description": "Success response", "content": { "application/json": { "schema": { "properties": { "data": { "$ref": "#/components/schemas/Reach.V1.Contacts.Segments.SegmentationContactCollection" }, "meta": { "$ref": "#/components/schemas/Common.Schema.PaginationMetaSchema" } }, "type": "object" } } } }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } } }, "/api/reach/v1/segmentation/segments/{segmentUuid}/contacts": { "get": { "tags": [ "Reach: Segments" ], "summary": "List segment contacts", "description": "Retrieve contacts associated with a specific segment.\n\nThis endpoint allows you to fetch and filter contacts that belong to a particular segment,\nidentified by its UUID.", "operationId": "reach_listSegmentContactsV1", "parameters": [ { "$ref": "#/components/parameters/segmentUuid" }, { "$ref": "#/components/parameters/page" }, { "$ref": "#/components/parameters/per_page" } ], "responses": { "200": { "description": "Success response", "content": { "application/json": { "schema": { "properties": { "data": { "$ref": "#/components/schemas/Reach.V1.Contacts.Segments.SegmentationContactCollection" }, "meta": { "$ref": "#/components/schemas/Common.Schema.PaginationMetaSchema" } }, "type": "object" } } } }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } } }, "/api/reach/v1/segmentation/segments/{segmentUuid}": { "get": { "tags": [ "Reach: Segments" ], "summary": "Get segment details", "description": "Get details of a specific segment.\n\nThis endpoint retrieves information about a single segment identified by UUID.\nSegments are used to organize and group contacts based on specific criteria.", "operationId": "reach_getSegmentDetailsV1", "parameters": [ { "$ref": "#/components/parameters/segmentUuid" } ], "responses": { "200": { "description": "Success response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Reach.V1.Contacts.Segments.SegmentResource" } } } }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } } }, "/api/reach/v1/profiles/{profileUuid}/contacts": { "post": { "tags": [ "Reach: Contacts" ], "summary": "Create new contacts", "description": "Create a new contact in the email marketing system.\n\nThis endpoint allows you to create a new contact with basic information like name, email, and surname.\n\nIf double opt-in is enabled, the contact will be created with a pending status\nand a confirmation email will be sent.", "operationId": "reach_createNewContactsV1", "parameters": [ { "$ref": "#/components/parameters/profileUuid" } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Reach.V1.Contacts.StoreRequest" } } } }, "responses": { "200": { "description": "Success empty response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Common.SuccessEmptyResource" } } } }, "422": { "$ref": "#/components/responses/Common.Response.UnprocessableContentResponse" }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } } }, "/api/reach/v1/profiles/{profileUuid}/domains/dns-status": { "get": { "tags": [ "Reach: Profiles" ], "summary": "Get profile domain DNS status", "description": "Retrieve the DNS configuration status for a profile's domain.\n\nThis endpoint reports the state of MX, SPF, DKIM and DMARC records, including the\nactual records found and the suggested records required for correct email delivery.", "operationId": "reach_getProfileDomainDNSStatusV1", "parameters": [ { "$ref": "#/components/parameters/profileUuid" } ], "responses": { "200": { "description": "Success response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Reach.V1.Profiles.Domains.DnsStatusResource" } } } }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } } }, "/api/reach/v1/profiles": { "get": { "tags": [ "Reach: Profiles" ], "summary": "List Profiles", "description": "This endpoint returns all profiles available to the client, including their basic information.", "operationId": "reach_listProfilesV1", "responses": { "200": { "description": "Success response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Reach.V1.Profiles.ProfileCollection" } } } }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } } }, "/api/vps/v1/data-centers": { "get": { "tags": [ "VPS: Data centers" ], "summary": "Get data center list", "description": "Retrieve all available data centers.\n\nUse this endpoint to view location options before deploying VPS instances.", "operationId": "VPS_getDataCenterListV1", "responses": { "200": { "description": "Success response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/VPS.V1.DataCenter.DataCenterCollection" } } } }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } } }, "/api/vps/v1/virtual-machines/{virtualMachineId}/docker/{projectName}/containers": { "get": { "tags": [ "VPS: Docker Manager" ], "summary": "Get project containers", "description": "Retrieves a list of all containers belonging to a specific Docker Compose project on the virtual machine. \n\nThis endpoint returns detailed information about each container including\ntheir current status, port mappings, and runtime configuration.\n\nUse this to monitor the health and state of all services within your Docker Compose project.", "operationId": "VPS_getProjectContainersV1", "parameters": [ { "$ref": "#/components/parameters/virtualMachineId" }, { "$ref": "#/components/parameters/projectName" } ], "responses": { "200": { "description": "Success response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/VPS.V1.DockerManager.ContainerCollection" } } } }, "422": { "$ref": "#/components/responses/Common.Response.UnprocessableContentResponse" }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } }, "x-scalar-stability": "experimental" } }, "/api/vps/v1/virtual-machines/{virtualMachineId}/docker/{projectName}": { "get": { "tags": [ "VPS: Docker Manager" ], "summary": "Get project contents", "description": "Retrieves the complete project information including the docker-compose.yml\nfile contents, project metadata, and current deployment status.\n\nThis endpoint provides the full configuration and state details of a specific Docker Compose project. \n\nUse this to inspect project settings, review the compose file, or check the overall project health.", "operationId": "VPS_getProjectContentsV1", "parameters": [ { "$ref": "#/components/parameters/virtualMachineId" }, { "$ref": "#/components/parameters/projectName" } ], "responses": { "200": { "description": "Success response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/VPS.V1.DockerManager.ContentResource" } } } }, "422": { "$ref": "#/components/responses/Common.Response.UnprocessableContentResponse" }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } }, "x-scalar-stability": "experimental" } }, "/api/vps/v1/virtual-machines/{virtualMachineId}/docker/{projectName}/down": { "delete": { "tags": [ "VPS: Docker Manager" ], "summary": "Delete project", "description": "Completely removes a Docker Compose project from the virtual machine, stopping all containers and cleaning up \nassociated resources including networks, volumes, and images. \n\nThis operation is irreversible and will delete all project data. \n\nUse this when you want to permanently remove a project and free up system resources.", "operationId": "VPS_deleteProjectV1", "parameters": [ { "$ref": "#/components/parameters/virtualMachineId" }, { "$ref": "#/components/parameters/projectName" } ], "responses": { "200": { "description": "Success response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/VPS.V1.Action.ActionResource" } } } }, "422": { "$ref": "#/components/responses/Common.Response.UnprocessableContentResponse" }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } }, "x-scalar-stability": "experimental" } }, "/api/vps/v1/virtual-machines/{virtualMachineId}/docker": { "get": { "tags": [ "VPS: Docker Manager" ], "summary": "Get project list", "description": "Retrieves a list of all Docker Compose projects currently deployed on the virtual machine. \n\nThis endpoint returns basic information about each project including name,\nstatus, file path and list of containers with details about their names,\nimage, status, health and ports. Container stats are omitted in this\nendpoint. If you need to get detailed information about container with\nstats included, use the `Get project containers` endpoint.\n\nUse this to get an overview of all Docker projects on your VPS instance.", "operationId": "VPS_getProjectListV1", "parameters": [ { "$ref": "#/components/parameters/virtualMachineId" } ], "responses": { "200": { "description": "Success response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/VPS.V1.DockerManager.ProjectCollection" } } } }, "422": { "$ref": "#/components/responses/Common.Response.UnprocessableContentResponse" }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } }, "x-scalar-stability": "experimental" }, "post": { "tags": [ "VPS: Docker Manager" ], "summary": "Create new project", "description": "Deploy new project from docker-compose.yaml contents or download contents from URL. \n\nURL can be Github repository url in format https://github.com/[user]/[repo]\nand it will be automatically resolved to docker-compose.yaml file in\nmaster branch. Any other URL provided must return docker-compose.yaml\nfile contents.\n\nIf project with the same name already exists, existing project will be replaced.", "operationId": "VPS_createNewProjectV1", "parameters": [ { "$ref": "#/components/parameters/virtualMachineId" } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/VPS.V1.VirtualMachine.DockerManager.UpRequest" } } } }, "responses": { "200": { "description": "Success response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/VPS.V1.Action.ActionResource" } } } }, "422": { "$ref": "#/components/responses/Common.Response.UnprocessableContentResponse" }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } }, "x-scalar-stability": "experimental" } }, "/api/vps/v1/virtual-machines/{virtualMachineId}/docker/{projectName}/logs": { "get": { "tags": [ "VPS: Docker Manager" ], "summary": "Get project logs", "description": "Retrieves aggregated log entries from all services within a Docker Compose project. \n\nThis endpoint returns recent log output from each container, organized by service name with timestamps. \nThe response contains the last 300 log entries across all services. \n\nUse this for debugging, monitoring application behavior, and\ntroubleshooting issues across your entire project stack.", "operationId": "VPS_getProjectLogsV1", "parameters": [ { "$ref": "#/components/parameters/virtualMachineId" }, { "$ref": "#/components/parameters/projectName" } ], "responses": { "200": { "description": "Success response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/VPS.V1.DockerManager.LogsCollection" } } } }, "422": { "$ref": "#/components/responses/Common.Response.UnprocessableContentResponse" }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } }, "x-scalar-stability": "experimental" } }, "/api/vps/v1/virtual-machines/{virtualMachineId}/docker/{projectName}/restart": { "post": { "tags": [ "VPS: Docker Manager" ], "summary": "Restart project", "description": "Restarts all services in a Docker Compose project by stopping and starting\ncontainers in the correct dependency order.\n\nThis operation preserves data volumes and network configurations while refreshing the running containers. \n\nUse this to apply configuration changes or recover from service failures.", "operationId": "VPS_restartProjectV1", "parameters": [ { "$ref": "#/components/parameters/virtualMachineId" }, { "$ref": "#/components/parameters/projectName" } ], "responses": { "200": { "description": "Success response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/VPS.V1.Action.ActionResource" } } } }, "422": { "$ref": "#/components/responses/Common.Response.UnprocessableContentResponse" }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } }, "x-scalar-stability": "experimental" } }, "/api/vps/v1/virtual-machines/{virtualMachineId}/docker/{projectName}/start": { "post": { "tags": [ "VPS: Docker Manager" ], "summary": "Start project", "description": "Starts all services in a Docker Compose project that are currently stopped. \n\nThis operation brings up containers in the correct dependency order as defined in the compose file. \n\nUse this to resume a project that was previously stopped or to start services after a system reboot.", "operationId": "VPS_startProjectV1", "parameters": [ { "$ref": "#/components/parameters/virtualMachineId" }, { "$ref": "#/components/parameters/projectName" } ], "responses": { "200": { "description": "Success response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/VPS.V1.Action.ActionResource" } } } }, "422": { "$ref": "#/components/responses/Common.Response.UnprocessableContentResponse" }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } }, "x-scalar-stability": "experimental" } }, "/api/vps/v1/virtual-machines/{virtualMachineId}/docker/{projectName}/stop": { "post": { "tags": [ "VPS: Docker Manager" ], "summary": "Stop project", "description": "Stops all running services in a Docker Compose project while preserving\ncontainer configurations and data volumes.\n\nThis operation gracefully shuts down containers in reverse dependency order. \n\nUse this to temporarily halt a project without removing data or configurations.", "operationId": "VPS_stopProjectV1", "parameters": [ { "$ref": "#/components/parameters/virtualMachineId" }, { "$ref": "#/components/parameters/projectName" } ], "responses": { "200": { "description": "Success response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/VPS.V1.Action.ActionResource" } } } }, "422": { "$ref": "#/components/responses/Common.Response.UnprocessableContentResponse" }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } }, "x-scalar-stability": "experimental" } }, "/api/vps/v1/virtual-machines/{virtualMachineId}/docker/{projectName}/update": { "post": { "tags": [ "VPS: Docker Manager" ], "summary": "Update project", "description": "Updates a Docker Compose project by pulling the latest image versions and\nrecreating containers with new configurations.\n\nThis operation preserves data volumes while applying changes from the compose file. \n\nUse this to deploy application updates, apply configuration changes, or\nrefresh container images to their latest versions.", "operationId": "VPS_updateProjectV1", "parameters": [ { "$ref": "#/components/parameters/virtualMachineId" }, { "$ref": "#/components/parameters/projectName" } ], "responses": { "200": { "description": "Success response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/VPS.V1.Action.ActionResource" } } } }, "422": { "$ref": "#/components/responses/Common.Response.UnprocessableContentResponse" }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } }, "x-scalar-stability": "experimental" } }, "/api/vps/v1/firewall/{firewallId}/activate/{virtualMachineId}": { "post": { "tags": [ "VPS: Firewall" ], "summary": "Activate firewall", "description": "Activate a firewall for a specified virtual machine.\n\nOnly one firewall can be active for a virtual machine at a time.\n\nUse this endpoint to apply firewall rules to VPS instances.", "operationId": "VPS_activateFirewallV1", "parameters": [ { "$ref": "#/components/parameters/firewallId" }, { "$ref": "#/components/parameters/virtualMachineId" } ], "responses": { "200": { "description": "Success response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/VPS.V1.Action.ActionResource" } } } }, "422": { "$ref": "#/components/responses/Common.Response.UnprocessableContentResponse" }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } } }, "/api/vps/v1/firewall/{firewallId}/deactivate/{virtualMachineId}": { "post": { "tags": [ "VPS: Firewall" ], "summary": "Deactivate firewall", "description": "Deactivate a firewall for a specified virtual machine.\n\nUse this endpoint to remove firewall protection from VPS instances.", "operationId": "VPS_deactivateFirewallV1", "parameters": [ { "$ref": "#/components/parameters/firewallId" }, { "$ref": "#/components/parameters/virtualMachineId" } ], "responses": { "200": { "description": "Success response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/VPS.V1.Action.ActionResource" } } } }, "422": { "$ref": "#/components/responses/Common.Response.UnprocessableContentResponse" }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } } }, "/api/vps/v1/firewall/{firewallId}": { "get": { "tags": [ "VPS: Firewall" ], "summary": "Get firewall details", "description": "Retrieve firewall by its ID and rules associated with it.\n\nUse this endpoint to view specific firewall configuration and rules.", "operationId": "VPS_getFirewallDetailsV1", "parameters": [ { "$ref": "#/components/parameters/firewallId" } ], "responses": { "200": { "description": "Success response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/VPS.V1.Firewall.FirewallResource" } } } }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } }, "delete": { "tags": [ "VPS: Firewall" ], "summary": "Delete firewall", "description": "Delete a specified firewall.\n\nAny virtual machine that has this firewall activated will automatically have it deactivated.\n\nUse this endpoint to remove unused firewall configurations.", "operationId": "VPS_deleteFirewallV1", "parameters": [ { "$ref": "#/components/parameters/firewallId" } ], "responses": { "200": { "description": "Success empty response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Common.SuccessEmptyResource" } } } }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } } }, "/api/vps/v1/firewall": { "get": { "tags": [ "VPS: Firewall" ], "summary": "Get firewall list", "description": "Retrieve all available firewalls.\n\nUse this endpoint to view existing firewall configurations.", "operationId": "VPS_getFirewallListV1", "parameters": [ { "$ref": "#/components/parameters/page" } ], "responses": { "200": { "description": "Success response", "content": { "application/json": { "schema": { "properties": { "data": { "$ref": "#/components/schemas/VPS.V1.Firewall.FirewallCollection" }, "meta": { "$ref": "#/components/schemas/Common.Schema.PaginationMetaSchema" } }, "type": "object" } } } }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } }, "post": { "tags": [ "VPS: Firewall" ], "summary": "Create new firewall", "description": "Create a new firewall.\n\nUse this endpoint to set up new firewall configurations for VPS security.", "operationId": "VPS_createNewFirewallV1", "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/VPS.V1.Firewall.StoreRequest" } } } }, "responses": { "200": { "description": "Success response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/VPS.V1.Firewall.FirewallResource" } } } }, "422": { "$ref": "#/components/responses/Common.Response.UnprocessableContentResponse" }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } } }, "/api/vps/v1/firewall/{firewallId}/rules/{ruleId}": { "put": { "tags": [ "VPS: Firewall" ], "summary": "Update firewall rule", "description": "Update a specific firewall rule from a specified firewall.\n\nAny virtual machine that has this firewall activated will lose sync with the firewall\nand will have to be synced again manually.\n\nUse this endpoint to modify existing firewall rules.", "operationId": "VPS_updateFirewallRuleV1", "parameters": [ { "$ref": "#/components/parameters/firewallId" }, { "$ref": "#/components/parameters/ruleId" } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/VPS.V1.Firewall.Rules.StoreRequest" } } } }, "responses": { "200": { "description": "Success response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/VPS.V1.Firewall.FirewallRuleResource" } } } }, "422": { "$ref": "#/components/responses/Common.Response.UnprocessableContentResponse" }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } }, "delete": { "tags": [ "VPS: Firewall" ], "summary": "Delete firewall rule", "description": "Delete a specific firewall rule from a specified firewall.\n\nAny virtual machine that has this firewall activated will lose sync with the firewall\nand will have to be synced again manually.\n\nUse this endpoint to remove specific firewall rules.", "operationId": "VPS_deleteFirewallRuleV1", "parameters": [ { "$ref": "#/components/parameters/firewallId" }, { "$ref": "#/components/parameters/ruleId" } ], "responses": { "200": { "description": "Success empty response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Common.SuccessEmptyResource" } } } }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } } }, "/api/vps/v1/firewall/{firewallId}/rules": { "post": { "tags": [ "VPS: Firewall" ], "summary": "Create firewall rule", "description": "Create new firewall rule for a specified firewall.\n\nBy default, the firewall drops all incoming traffic,\nwhich means you must add accept rules for all ports you want to use.\n\nAny virtual machine that has this firewall activated will lose sync with the firewall\nand will have to be synced again manually.\n\nUse this endpoint to add new security rules to firewalls.", "operationId": "VPS_createFirewallRuleV1", "parameters": [ { "$ref": "#/components/parameters/firewallId" } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/VPS.V1.Firewall.Rules.StoreRequest" } } } }, "responses": { "200": { "description": "Success response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/VPS.V1.Firewall.FirewallRuleResource" } } } }, "422": { "$ref": "#/components/responses/Common.Response.UnprocessableContentResponse" }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } } }, "/api/vps/v1/firewall/{firewallId}/sync/{virtualMachineId}": { "post": { "tags": [ "VPS: Firewall" ], "summary": "Sync firewall", "description": "Sync a firewall for a specified virtual machine.\n\nFirewall can lose sync with virtual machine if the firewall has new rules added, removed or updated.\n\nUse this endpoint to apply updated firewall rules to VPS instances.", "operationId": "VPS_syncFirewallV1", "parameters": [ { "$ref": "#/components/parameters/firewallId" }, { "$ref": "#/components/parameters/virtualMachineId" } ], "responses": { "200": { "description": "Success response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/VPS.V1.Action.ActionResource" } } } }, "422": { "$ref": "#/components/responses/Common.Response.UnprocessableContentResponse" }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } } }, "/api/vps/v1/post-install-scripts/{postInstallScriptId}": { "get": { "tags": [ "VPS: Post-install scripts" ], "summary": "Get post-install script", "description": "Retrieve post-install script by its ID.\n\nUse this endpoint to view specific automation script details.", "operationId": "VPS_getPostInstallScriptV1", "parameters": [ { "$ref": "#/components/parameters/postInstallScriptId" } ], "responses": { "200": { "description": "Success response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/VPS.V1.PostInstallScript.PostInstallScriptResource" } } } }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } }, "put": { "tags": [ "VPS: Post-install scripts" ], "summary": "Update post-install script", "description": "Update a specific post-install script.\n\nUse this endpoint to modify existing automation scripts.", "operationId": "VPS_updatePostInstallScriptV1", "parameters": [ { "$ref": "#/components/parameters/postInstallScriptId" } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/VPS.V1.PostInstallScript.StoreRequest" } } } }, "responses": { "200": { "description": "Success response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/VPS.V1.PostInstallScript.PostInstallScriptResource" } } } }, "422": { "$ref": "#/components/responses/Common.Response.UnprocessableContentResponse" }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } }, "delete": { "tags": [ "VPS: Post-install scripts" ], "summary": "Delete post-install script", "description": "Delete a post-install script from your account.\n \nUse this endpoint to remove unused automation scripts.", "operationId": "VPS_deletePostInstallScriptV1", "parameters": [ { "$ref": "#/components/parameters/postInstallScriptId" } ], "responses": { "200": { "description": "Success empty response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Common.SuccessEmptyResource" } } } }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } } }, "/api/vps/v1/post-install-scripts": { "get": { "tags": [ "VPS: Post-install scripts" ], "summary": "Get post-install scripts", "description": "Retrieve post-install scripts associated with your account.\n\nUse this endpoint to view available automation scripts for VPS deployment.", "operationId": "VPS_getPostInstallScriptsV1", "parameters": [ { "$ref": "#/components/parameters/page" } ], "responses": { "200": { "description": "Success response", "content": { "application/json": { "schema": { "properties": { "data": { "$ref": "#/components/schemas/VPS.V1.PostInstallScript.PostInstallScriptCollection" }, "meta": { "$ref": "#/components/schemas/Common.Schema.PaginationMetaSchema" } }, "type": "object" } } } }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } }, "post": { "tags": [ "VPS: Post-install scripts" ], "summary": "Create post-install script", "description": "Add a new post-install script to your account, which can then be used after virtual machine installation.\n\nThe script contents will be saved to the file `/post_install` with executable attribute set\nand will be executed once virtual machine is installed.\nThe output of the script will be redirected to `/post_install.log`. Maximum script size is 48KB.\n\nUse this endpoint to create automation scripts for VPS setup tasks.", "operationId": "VPS_createPostInstallScriptV1", "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/VPS.V1.PostInstallScript.StoreRequest" } } } }, "responses": { "200": { "description": "Success response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/VPS.V1.PostInstallScript.PostInstallScriptResource" } } } }, "422": { "$ref": "#/components/responses/Common.Response.UnprocessableContentResponse" }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } } }, "/api/vps/v1/public-keys/attach/{virtualMachineId}": { "post": { "tags": [ "VPS: Public Keys" ], "summary": "Attach public key", "description": "Attach existing public keys from your account to a specified virtual machine.\n\nMultiple keys can be attached to a single virtual machine.\n\nUse this endpoint to enable SSH key authentication for VPS instances.", "operationId": "VPS_attachPublicKeyV1", "parameters": [ { "$ref": "#/components/parameters/virtualMachineId" } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/VPS.V1.PublicKey.AttachRequest" } } } }, "responses": { "200": { "description": "Success response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/VPS.V1.Action.ActionResource" } } } }, "422": { "$ref": "#/components/responses/Common.Response.UnprocessableContentResponse" }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } } }, "/api/vps/v1/public-keys/{publicKeyId}": { "delete": { "tags": [ "VPS: Public Keys" ], "summary": "Delete public key", "description": "Delete a public key from your account. \n\n**Deleting public key from account does not remove it from virtual machine** \n \nUse this endpoint to remove unused SSH keys from account.", "operationId": "VPS_deletePublicKeyV1", "parameters": [ { "$ref": "#/components/parameters/publicKeyId" } ], "responses": { "200": { "description": "Success empty response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Common.SuccessEmptyResource" } } } }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } } }, "/api/vps/v1/public-keys": { "get": { "tags": [ "VPS: Public Keys" ], "summary": "Get public keys", "description": "Retrieve public keys associated with your account.\n\nUse this endpoint to view available SSH keys for VPS authentication.", "operationId": "VPS_getPublicKeysV1", "parameters": [ { "$ref": "#/components/parameters/page" } ], "responses": { "200": { "description": "Success response", "content": { "application/json": { "schema": { "properties": { "data": { "$ref": "#/components/schemas/VPS.V1.PublicKey.PublicKeyCollection" }, "meta": { "$ref": "#/components/schemas/Common.Schema.PaginationMetaSchema" } }, "type": "object" } } } }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } }, "post": { "tags": [ "VPS: Public Keys" ], "summary": "Create public key", "description": "Add a new public key to your account.\n\nUse this endpoint to register SSH keys for VPS authentication.", "operationId": "VPS_createPublicKeyV1", "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/VPS.V1.PublicKey.StoreRequest" } } } }, "responses": { "200": { "description": "Success response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/VPS.V1.PublicKey.PublicKeyResource" } } } }, "422": { "$ref": "#/components/responses/Common.Response.UnprocessableContentResponse" }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } } }, "/api/vps/v1/templates/{templateId}": { "get": { "tags": [ "VPS: OS Templates" ], "summary": "Get template details", "description": "Retrieve detailed information about a specific OS template for virtual machines.\n\nUse this endpoint to view specific template specifications before deployment.", "operationId": "VPS_getTemplateDetailsV1", "parameters": [ { "$ref": "#/components/parameters/templateId" } ], "responses": { "200": { "description": "Success response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/VPS.V1.Template.TemplateResource" } } } }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } } }, "/api/vps/v1/templates": { "get": { "tags": [ "VPS: OS Templates" ], "summary": "Get templates", "description": "Retrieve available OS templates for virtual machines.\n\nUse this endpoint to view operating system options before creating or recreating VPS instances.", "operationId": "VPS_getTemplatesV1", "responses": { "200": { "description": "Success response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/VPS.V1.Template.TemplateCollection" } } } }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } } }, "/api/vps/v1/virtual-machines/{virtualMachineId}/actions/{actionId}": { "get": { "tags": [ "VPS: Actions" ], "summary": "Get action details", "description": "Retrieve detailed information about a specific action performed on a specified virtual machine.\n\nUse this endpoint to monitor specific VPS operation status and details.", "operationId": "VPS_getActionDetailsV1", "parameters": [ { "$ref": "#/components/parameters/virtualMachineId" }, { "$ref": "#/components/parameters/actionId" } ], "responses": { "200": { "description": "Success response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/VPS.V1.Action.ActionResource" } } } }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } } }, "/api/vps/v1/virtual-machines/{virtualMachineId}/actions": { "get": { "tags": [ "VPS: Actions" ], "summary": "Get actions", "description": "Retrieve actions performed on a specified virtual machine.\n\nActions are operations or events that have been executed on the virtual\nmachine, such as starting, stopping, or modifying the machine. This endpoint\nallows you to view the history of these actions, providing details about\neach action, such as the action name, timestamp, and status.\n\nUse this endpoint to view VPS operation history and troubleshoot issues.", "operationId": "VPS_getActionsV1", "parameters": [ { "$ref": "#/components/parameters/virtualMachineId" }, { "$ref": "#/components/parameters/page" } ], "responses": { "200": { "description": "Success response", "content": { "application/json": { "schema": { "properties": { "data": { "$ref": "#/components/schemas/VPS.V1.Action.ActionCollection" }, "meta": { "$ref": "#/components/schemas/Common.Schema.PaginationMetaSchema" } }, "type": "object" } } } }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } } }, "/api/vps/v1/virtual-machines/{virtualMachineId}/public-keys": { "get": { "tags": [ "VPS: Virtual machine" ], "summary": "Get attached public keys", "description": "Retrieve public keys attached to a specified virtual machine.\n\nUse this endpoint to view SSH keys configured for specific VPS instances.", "operationId": "VPS_getAttachedPublicKeysV1", "parameters": [ { "$ref": "#/components/parameters/virtualMachineId" }, { "$ref": "#/components/parameters/page" } ], "responses": { "200": { "description": "Success response", "content": { "application/json": { "schema": { "properties": { "data": { "$ref": "#/components/schemas/VPS.V1.PublicKey.PublicKeyCollection" }, "meta": { "$ref": "#/components/schemas/Common.Schema.PaginationMetaSchema" } }, "type": "object" } } } }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } } }, "/api/vps/v1/virtual-machines/{virtualMachineId}/backups": { "get": { "tags": [ "VPS: Backups" ], "summary": "Get backups", "description": "Retrieve backups for a specified virtual machine.\n\nUse this endpoint to view available backup points for VPS data recovery.", "operationId": "VPS_getBackupsV1", "parameters": [ { "$ref": "#/components/parameters/virtualMachineId" }, { "$ref": "#/components/parameters/page" } ], "responses": { "200": { "description": "Success response", "content": { "application/json": { "schema": { "properties": { "data": { "$ref": "#/components/schemas/VPS.V1.Backup.BackupCollection" }, "meta": { "$ref": "#/components/schemas/Common.Schema.PaginationMetaSchema" } }, "type": "object" } } } }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } } }, "/api/vps/v1/virtual-machines/{virtualMachineId}/backups/{backupId}/restore": { "post": { "tags": [ "VPS: Backups" ], "summary": "Restore backup", "description": "Restore a backup for a specified virtual machine.\n\nThe system will then initiate the restore process, which may take some time depending on the size of the backup.\n\n**All data on the virtual machine will be overwritten with the data from the backup.**\n\nUse this endpoint to recover VPS data from backup points.", "operationId": "VPS_restoreBackupV1", "parameters": [ { "$ref": "#/components/parameters/virtualMachineId" }, { "$ref": "#/components/parameters/backupId" } ], "responses": { "200": { "description": "Success response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/VPS.V1.Action.ActionResource" } } } }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } } }, "/api/vps/v1/virtual-machines/{virtualMachineId}/hostname": { "put": { "tags": [ "VPS: Virtual machine" ], "summary": "Set hostname", "description": "Set hostname for a specified virtual machine.\n\nChanging hostname does not update PTR record automatically.\nIf you want your virtual machine to be reachable by a hostname, \nyou need to point your domain A/AAAA records to virtual machine IP as well.\n\nUse this endpoint to configure custom hostnames for VPS instances.", "operationId": "VPS_setHostnameV1", "parameters": [ { "$ref": "#/components/parameters/virtualMachineId" } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/VPS.V1.VirtualMachine.HostnameUpdateRequest" } } } }, "responses": { "200": { "description": "Success response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/VPS.V1.Action.ActionResource" } } } }, "422": { "$ref": "#/components/responses/Common.Response.UnprocessableContentResponse" }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } }, "delete": { "tags": [ "VPS: Virtual machine" ], "summary": "Reset hostname", "description": "Reset hostname and PTR record of a specified virtual machine to default value.\n\nUse this endpoint to restore default hostname configuration for VPS instances.", "operationId": "VPS_resetHostnameV1", "parameters": [ { "$ref": "#/components/parameters/virtualMachineId" } ], "responses": { "200": { "description": "Success response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/VPS.V1.Action.ActionResource" } } } }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } } }, "/api/vps/v1/virtual-machines/{virtualMachineId}": { "get": { "tags": [ "VPS: Virtual machine" ], "summary": "Get virtual machine details", "description": "Retrieve detailed information about a specified virtual machine.\n\nUse this endpoint to view comprehensive VPS configuration and status.", "operationId": "VPS_getVirtualMachineDetailsV1", "parameters": [ { "$ref": "#/components/parameters/virtualMachineId" } ], "responses": { "200": { "description": "Success response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/VPS.V1.VirtualMachine.VirtualMachineResource" } } } }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } } }, "/api/vps/v1/virtual-machines": { "get": { "tags": [ "VPS: Virtual machine" ], "summary": "Get virtual machines", "description": "Retrieve all available virtual machines.\n\nUse this endpoint to view available VPS instances.", "operationId": "VPS_getVirtualMachinesV1", "responses": { "200": { "description": "Success response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/VPS.V1.VirtualMachine.VirtualMachineCollection" } } } }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } }, "post": { "tags": [ "VPS: Virtual machine" ], "summary": "Purchase new virtual machine", "description": "Purchase and setup a new virtual machine.\n\nIf virtual machine setup fails for any reason, login to\n[hPanel](https://hpanel.hostinger.com/) and complete the setup manually.\n\nIf no payment method is provided, your default payment method will be used automatically.\n\nUse this endpoint to create new VPS instances.", "operationId": "VPS_purchaseNewVirtualMachineV1", "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/VPS.V1.VirtualMachine.PurchaseRequest" } } } }, "responses": { "200": { "description": "Success response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Billing.V1.Order.VirtualMachineOrderResource" } } } }, "422": { "$ref": "#/components/responses/Common.Response.UnprocessableContentResponse" }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } } }, "/api/vps/v1/virtual-machines/{virtualMachineId}/monarx": { "get": { "tags": [ "VPS: Malware scanner" ], "summary": "Get scan metrics", "description": "Retrieve scan metrics for the [Monarx](https://www.monarx.com/) malware scanner\ninstalled on a specified virtual machine.\n\nThe scan metrics provide detailed information about malware scans performed\nby Monarx, including number of scans, detected threats, and other relevant\nstatistics. This information is useful for monitoring security status of the\nvirtual machine and assessing effectiveness of the malware scanner.\n\nUse this endpoint to monitor VPS security scan results and threat detection.", "operationId": "VPS_getScanMetricsV1", "parameters": [ { "$ref": "#/components/parameters/virtualMachineId" } ], "responses": { "200": { "description": "Success response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/VPS.V1.Malware.MetricsResource" } } } }, "422": { "$ref": "#/components/responses/Common.Response.UnprocessableContentResponse" }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } }, "post": { "tags": [ "VPS: Malware scanner" ], "summary": "Install Monarx", "description": "Install the Monarx malware scanner on a specified virtual machine.\n\n[Monarx](https://www.monarx.com/) is a security tool designed to detect and\nprevent malware infections on virtual machines. By installing Monarx, users\ncan enhance the security of their virtual machines, ensuring that they are\nprotected against malicious software.\n\nUse this endpoint to enable malware protection on VPS instances.", "operationId": "VPS_installMonarxV1", "parameters": [ { "$ref": "#/components/parameters/virtualMachineId" } ], "responses": { "200": { "description": "Success response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/VPS.V1.Action.ActionResource" } } } }, "422": { "$ref": "#/components/responses/Common.Response.UnprocessableContentResponse" }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } }, "delete": { "tags": [ "VPS: Malware scanner" ], "summary": "Uninstall Monarx", "description": "Uninstall the Monarx malware scanner on a specified virtual machine.\n\nIf Monarx is not installed, the request will still be processed without any effect.\n\nUse this endpoint to remove malware scanner from VPS instances.", "operationId": "VPS_uninstallMonarxV1", "parameters": [ { "$ref": "#/components/parameters/virtualMachineId" } ], "responses": { "200": { "description": "Success response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/VPS.V1.Action.ActionResource" } } } }, "422": { "$ref": "#/components/responses/Common.Response.UnprocessableContentResponse" }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } } }, "/api/vps/v1/virtual-machines/{virtualMachineId}/metrics": { "get": { "tags": [ "VPS: Virtual machine" ], "summary": "Get metrics", "description": "Retrieve historical metrics for a specified virtual machine.\n\nIt includes the following metrics: \n- CPU usage\n- Memory usage\n- Disk usage\n- Network usage\n- Uptime\n\nUse this endpoint to monitor VPS performance and resource utilization over time.", "operationId": "VPS_getMetricsV1", "parameters": [ { "$ref": "#/components/parameters/virtualMachineId" }, { "name": "date_from", "in": "query", "required": true, "schema": { "type": "string", "format": "date-time", "default": null, "example": "2025-05-01T00:00:00Z" } }, { "name": "date_to", "in": "query", "required": true, "schema": { "type": "string", "format": "date-time", "default": null, "example": "2025-06-01T00:00:00Z" } } ], "responses": { "200": { "description": "Success response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/VPS.V1.Metrics.MetricsCollection" } } } }, "422": { "$ref": "#/components/responses/Common.Response.UnprocessableContentResponse" }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } }, "x-optic-ignore-example": true } }, "/api/vps/v1/virtual-machines/{virtualMachineId}/nameservers": { "put": { "tags": [ "VPS: Virtual machine" ], "summary": "Set nameservers", "description": "Set nameservers for a specified virtual machine.\n\nBe aware, that improper nameserver configuration can lead to the virtual\nmachine being unable to resolve domain names.\n\nUse this endpoint to configure custom DNS resolvers for VPS instances.", "operationId": "VPS_setNameserversV1", "parameters": [ { "$ref": "#/components/parameters/virtualMachineId" } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/VPS.V1.VirtualMachine.NameserversUpdateRequest" } } } }, "responses": { "200": { "description": "Success response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/VPS.V1.Action.ActionResource" } } } }, "422": { "$ref": "#/components/responses/Common.Response.UnprocessableContentResponse" }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } } }, "/api/vps/v1/virtual-machines/{virtualMachineId}/ptr/{ipAddressId}": { "post": { "tags": [ "VPS: PTR records" ], "summary": "Create PTR record", "description": "Create or update a PTR (Pointer) record for a specified virtual machine.\n\nUse this endpoint to configure reverse DNS lookup for VPS IP addresses.", "operationId": "VPS_createPTRRecordV1", "parameters": [ { "$ref": "#/components/parameters/virtualMachineId" }, { "$ref": "#/components/parameters/ipAddressId" } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/VPS.V1.VirtualMachine.PTR.StoreRequest" } } } }, "responses": { "200": { "description": "Success response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/VPS.V1.Action.ActionResource" } } } }, "422": { "$ref": "#/components/responses/Common.Response.UnprocessableContentResponse" }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } }, "delete": { "tags": [ "VPS: PTR records" ], "summary": "Delete PTR record", "description": "Delete a PTR (Pointer) record for a specified virtual machine.\n\nOnce deleted, reverse DNS lookups to the virtual machine's IP address will\nno longer return the previously configured hostname.\n\nUse this endpoint to remove reverse DNS configuration from VPS instances.", "operationId": "VPS_deletePTRRecordV1", "parameters": [ { "$ref": "#/components/parameters/virtualMachineId" }, { "$ref": "#/components/parameters/ipAddressId" } ], "responses": { "200": { "description": "Success response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/VPS.V1.Action.ActionResource" } } } }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } } }, "/api/vps/v1/virtual-machines/{virtualMachineId}/panel-password": { "put": { "tags": [ "VPS: Virtual machine" ], "summary": "Set panel password", "description": "Set panel password for a specified virtual machine.\n\nIf virtual machine does not use panel OS, the request will still be processed without any effect.\nRequirements for password are same as in the [recreate virtual machine\nendpoint](/#tag/vps-virtual-machine/POST/api/vps/v1/virtual-machines/{virtualMachineId}/recreate).\n\nUse this endpoint to configure control panel access credentials for VPS instances.", "operationId": "VPS_setPanelPasswordV1", "parameters": [ { "$ref": "#/components/parameters/virtualMachineId" } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/VPS.V1.VirtualMachine.PanelPasswordUpdateRequest" } } } }, "responses": { "200": { "description": "Success response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/VPS.V1.Action.ActionResource" } } } }, "422": { "$ref": "#/components/responses/Common.Response.UnprocessableContentResponse" }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } } }, "/api/vps/v1/virtual-machines/{virtualMachineId}/recovery": { "post": { "tags": [ "VPS: Recovery" ], "summary": "Start recovery mode", "description": "Initiate recovery mode for a specified virtual machine.\n\nRecovery mode is a special state that allows users to perform system rescue operations, \nsuch as repairing file systems, recovering data, or troubleshooting issues that prevent the virtual machine \nfrom booting normally. \n\nVirtual machine will boot recovery disk image and original disk image will be mounted in `/mnt` directory.\n\nUse this endpoint to enable system rescue operations on VPS instances.", "operationId": "VPS_startRecoveryModeV1", "parameters": [ { "$ref": "#/components/parameters/virtualMachineId" } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/VPS.V1.VirtualMachine.Recovery.StartRequest" } } } }, "responses": { "200": { "description": "Success response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/VPS.V1.Action.ActionResource" } } } }, "422": { "$ref": "#/components/responses/Common.Response.UnprocessableContentResponse" }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } }, "delete": { "tags": [ "VPS: Recovery" ], "summary": "Stop recovery mode", "description": "Stop recovery mode for a specified virtual machine.\n\nIf virtual machine is not in recovery mode, this operation will fail.\n\nUse this endpoint to exit system rescue mode and return VPS to normal operation.", "operationId": "VPS_stopRecoveryModeV1", "parameters": [ { "$ref": "#/components/parameters/virtualMachineId" } ], "responses": { "200": { "description": "Success response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/VPS.V1.Action.ActionResource" } } } }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } } }, "/api/vps/v1/virtual-machines/{virtualMachineId}/recreate": { "post": { "tags": [ "VPS: Virtual machine" ], "summary": "Recreate virtual machine", "description": "Recreate a virtual machine from scratch.\n\nThe recreation process involves reinstalling the operating system and\nresetting the virtual machine to its initial state.\nSnapshots, if there are any, will be deleted.\n\n## Password Requirements\nPassword will be checked against leaked password databases. \nRequirements for the password are:\n- At least 12 characters long\n- At least one uppercase letter\n- At least one lowercase letter\n- At least one number\n- Is not leaked publicly\n\n**This operation is irreversible and will result in the loss of all data stored on the virtual machine!**\n\nUse this endpoint to completely rebuild VPS instances with fresh OS installation.", "operationId": "VPS_recreateVirtualMachineV1", "parameters": [ { "$ref": "#/components/parameters/virtualMachineId" } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/VPS.V1.VirtualMachine.RecreateRequest" } } } }, "responses": { "200": { "description": "Success response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/VPS.V1.Action.ActionResource" } } } }, "422": { "$ref": "#/components/responses/Common.Response.UnprocessableContentResponse" }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } } }, "/api/vps/v1/virtual-machines/{virtualMachineId}/restart": { "post": { "tags": [ "VPS: Virtual machine" ], "summary": "Restart virtual machine", "description": "Restart a specified virtual machine by fully stopping and starting it.\n\nIf the virtual machine was stopped, it will be started.\n\nUse this endpoint to reboot VPS instances.", "operationId": "VPS_restartVirtualMachineV1", "parameters": [ { "$ref": "#/components/parameters/virtualMachineId" } ], "responses": { "200": { "description": "Success response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/VPS.V1.Action.ActionResource" } } } }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } } }, "/api/vps/v1/virtual-machines/{virtualMachineId}/root-password": { "put": { "tags": [ "VPS: Virtual machine" ], "summary": "Set root password", "description": "Set root password for a specified virtual machine.\n\nRequirements for password are same as in the [recreate virtual machine\nendpoint](/#tag/vps-virtual-machine/POST/api/vps/v1/virtual-machines/{virtualMachineId}/recreate).\n\nUse this endpoint to update administrator credentials for VPS instances.", "operationId": "VPS_setRootPasswordV1", "parameters": [ { "$ref": "#/components/parameters/virtualMachineId" } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/VPS.V1.VirtualMachine.RootPasswordUpdateRequest" } } } }, "responses": { "200": { "description": "Success response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/VPS.V1.Action.ActionResource" } } } }, "422": { "$ref": "#/components/responses/Common.Response.UnprocessableContentResponse" }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } } }, "/api/vps/v1/virtual-machines/{virtualMachineId}/setup": { "post": { "tags": [ "VPS: Virtual machine" ], "summary": "Setup purchased virtual machine", "description": "Setup newly purchased virtual machine with `initial` state.\n\nUse this endpoint to configure and initialize purchased VPS instances.", "operationId": "VPS_setupPurchasedVirtualMachineV1", "parameters": [ { "$ref": "#/components/parameters/virtualMachineId" } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/VPS.V1.VirtualMachine.SetupRequest" } } } }, "responses": { "200": { "description": "Success response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/VPS.V1.VirtualMachine.VirtualMachineResource" } } } }, "422": { "$ref": "#/components/responses/Common.Response.UnprocessableContentResponse" }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } } }, "/api/vps/v1/virtual-machines/{virtualMachineId}/snapshot": { "get": { "tags": [ "VPS: Snapshots" ], "summary": "Get snapshot", "description": "Retrieve snapshot for a specified virtual machine.\n\nUse this endpoint to view current VPS snapshot information.", "operationId": "VPS_getSnapshotV1", "parameters": [ { "$ref": "#/components/parameters/virtualMachineId" } ], "responses": { "200": { "description": "Success response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/VPS.V1.Snapshot.SnapshotResource" } } } }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } }, "post": { "tags": [ "VPS: Snapshots" ], "summary": "Create snapshot", "description": "Create a snapshot of a specified virtual machine.\n\nA snapshot captures the state and data of the virtual machine at a specific point in time, \nallowing users to restore the virtual machine to that state if needed. \nThis operation is useful for backup purposes, system recovery, \nand testing changes without affecting the current state of the virtual machine.\n\n**Creating new snapshot will overwrite the existing snapshot!**\n\nUse this endpoint to capture VPS state for backup and recovery purposes.", "operationId": "VPS_createSnapshotV1", "parameters": [ { "$ref": "#/components/parameters/virtualMachineId" } ], "responses": { "200": { "description": "Success response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/VPS.V1.Action.ActionResource" } } } }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } }, "delete": { "tags": [ "VPS: Snapshots" ], "summary": "Delete snapshot", "description": "Delete a snapshot of a specified virtual machine.\n\nUse this endpoint to remove VPS snapshots.", "operationId": "VPS_deleteSnapshotV1", "parameters": [ { "$ref": "#/components/parameters/virtualMachineId" } ], "responses": { "200": { "description": "Success response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/VPS.V1.Action.ActionResource" } } } }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } } }, "/api/vps/v1/virtual-machines/{virtualMachineId}/snapshot/restore": { "post": { "tags": [ "VPS: Snapshots" ], "summary": "Restore snapshot", "description": "Restore a specified virtual machine to a previous state using a snapshot.\n\nRestoring from a snapshot allows users to revert the virtual machine to that state,\nwhich is useful for system recovery, undoing changes, or testing.\n\nUse this endpoint to revert VPS instances to previous saved states.", "operationId": "VPS_restoreSnapshotV1", "parameters": [ { "$ref": "#/components/parameters/virtualMachineId" } ], "responses": { "200": { "description": "Success response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/VPS.V1.Action.ActionResource" } } } }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } } }, "/api/vps/v1/virtual-machines/{virtualMachineId}/start": { "post": { "tags": [ "VPS: Virtual machine" ], "summary": "Start virtual machine", "description": "Start a specified virtual machine.\n\nIf the virtual machine is already running, the request will still be processed without any effect.\n\nUse this endpoint to power on stopped VPS instances.", "operationId": "VPS_startVirtualMachineV1", "parameters": [ { "$ref": "#/components/parameters/virtualMachineId" } ], "responses": { "200": { "description": "Success response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/VPS.V1.Action.ActionResource" } } } }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } } }, "/api/vps/v1/virtual-machines/{virtualMachineId}/stop": { "post": { "tags": [ "VPS: Virtual machine" ], "summary": "Stop virtual machine", "description": "Stop a specified virtual machine.\n\nIf the virtual machine is already stopped, the request will still be processed without any effect.\n\nUse this endpoint to power off running VPS instances.", "operationId": "VPS_stopVirtualMachineV1", "parameters": [ { "$ref": "#/components/parameters/virtualMachineId" } ], "responses": { "200": { "description": "Success response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/VPS.V1.Action.ActionResource" } } } }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } } }, "/api/hosting/v1/accounts/{username}/wordpress/installations": { "post": { "tags": [ "WordPress: Installations" ], "summary": "Install WordPress", "description": "Install WordPress on an existing website.\n\nThe website must already exist before calling this endpoint. To create a new\nwebsite first, use POST /api/hosting/v1/websites and poll\nGET /api/hosting/v1/websites until it appears.\n\nCall GET /api/hosting/v1/wordpress/installations filtered by username and\ndomain before proceeding to check whether WordPress is already installed on\nthe target domain/path. If WordPress already exists and `overwrite` is false\n(the default), the async job will fail.\n\nThis operation is asynchronous: a successful response only means the install\njob has been queued, not that WordPress is ready. Installation typically\ntakes 1-2 minutes. Poll GET /api/hosting/v1/wordpress/installations filtered\nby username and domain to track progress. When the installation appears in\nthat list, WordPress is ready.", "operationId": "hosting_installWordPressV1", "parameters": [ { "$ref": "#/components/parameters/username_path" } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/WordPress.V1.Installations.InstallWordPressRequest" } } } }, "responses": { "200": { "description": "Success empty response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Common.SuccessEmptyResource" } } } }, "422": { "$ref": "#/components/responses/Common.Response.UnprocessableContentResponse" }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } } }, "/api/hosting/v1/wordpress/installations": { "get": { "tags": [ "WordPress: Installations" ], "summary": "List WordPress installations", "description": "List WordPress installations accessible to the authenticated client.\n\nUse this endpoint to discover existing WordPress installations and to poll\nfor installation status after calling the install endpoint. When a newly\nrequested installation appears in this list, WordPress is ready. Filter by\nusername and domain to narrow results to a specific website.\n\nEach installation includes a `valid` flag and, when invalid, a\n`validationError` describing why.", "operationId": "hosting_listWordPressInstallationsV1", "parameters": [ { "$ref": "#/components/parameters/username" }, { "$ref": "#/components/parameters/domain_filter" }, { "name": "ownership", "in": "query", "description": "Filter by ownership type. Defaults to \"owned\". Use \"all\" to include both owned and managed installations.", "required": false, "schema": { "type": "string", "enum": [ "owned", "managed", "all" ], "example": "owned", "nullable": true } } ], "responses": { "200": { "description": "Success response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/WordPress.V1.Installations.WordPressInstallationCollection" } } } }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } } }, "/api/hosting/v1/accounts/{username}/wordpress/{software}/plugins/activate": { "post": { "tags": [ "WordPress: Plugins" ], "summary": "Activate WordPress plugin", "description": "Activate an installed plugin on a WordPress installation.\n\nProvide the WordPress installation (software) identifier in the path. It can\nbe obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).\n\nThis operation is asynchronous: a successful response only means the activation\njob has been queued.", "operationId": "hosting_activateWordPressPluginV1", "parameters": [ { "$ref": "#/components/parameters/username_path" }, { "$ref": "#/components/parameters/software_path" } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/WordPress.V1.Plugins.ActivatePluginRequest" } } } }, "responses": { "200": { "description": "Success empty response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Common.SuccessEmptyResource" } } } }, "422": { "$ref": "#/components/responses/Common.Response.UnprocessableContentResponse" }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } } }, "/api/hosting/v1/accounts/{username}/wordpress/{software}/plugins/deactivate": { "post": { "tags": [ "WordPress: Plugins" ], "summary": "Deactivate WordPress plugin", "description": "Deactivate an installed plugin on a WordPress installation.\n\nProvide the WordPress installation (software) identifier in the path. It can\nbe obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).\n\nThis operation is asynchronous: a successful response only means the\ndeactivation job has been queued.", "operationId": "hosting_deactivateWordPressPluginV1", "parameters": [ { "$ref": "#/components/parameters/username_path" }, { "$ref": "#/components/parameters/software_path" } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/WordPress.V1.Plugins.DeactivatePluginRequest" } } } }, "responses": { "200": { "description": "Success empty response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Common.SuccessEmptyResource" } } } }, "422": { "$ref": "#/components/responses/Common.Response.UnprocessableContentResponse" }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } } }, "/api/hosting/v1/accounts/{username}/wordpress/{software}/plugins/install": { "post": { "tags": [ "WordPress: Plugins" ], "summary": "Install WordPress plugins", "description": "Install one or more plugins on an existing WordPress installation.\n\nProvide the WordPress installation (software) identifier in the path. It can\nbe obtained from GET /api/hosting/v1/wordpress/installations (the `id`\nfield). Use GET /api/hosting/v1/wordpress/plugins to discover the plugin\nslugs available for installation.\n\nThis operation is asynchronous: a successful response only means the install\njob has been queued, not that the plugins are ready.", "operationId": "hosting_installWordPressPluginsV1", "parameters": [ { "$ref": "#/components/parameters/username_path" }, { "$ref": "#/components/parameters/software_path" } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/WordPress.V1.Plugins.InstallPluginsRequest" } } } }, "responses": { "200": { "description": "Success empty response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Common.SuccessEmptyResource" } } } }, "422": { "$ref": "#/components/responses/Common.Response.UnprocessableContentResponse" }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } } }, "/api/hosting/v1/accounts/{username}/wordpress/{software}/plugins/available": { "get": { "tags": [ "WordPress: Plugins" ], "summary": "List available WordPress plugins", "description": "List plugins recommended for installation on a WordPress installation that are\nnot yet installed.\n\nProvide the WordPress installation (software) identifier in the path. It can\nbe obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).", "operationId": "hosting_listAvailableWordPressPluginsV1", "parameters": [ { "$ref": "#/components/parameters/username_path" }, { "$ref": "#/components/parameters/software_path" } ], "responses": { "200": { "description": "Success response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/WordPress.V1.Plugins.AvailablePluginCollection" } } } }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } } }, "/api/hosting/v1/accounts/{username}/wordpress/{software}/plugins": { "get": { "tags": [ "WordPress: Plugins" ], "summary": "List installed WordPress plugins", "description": "List plugins installed on a WordPress installation, including their status,\navailable updates and known vulnerabilities.\n\nProvide the WordPress installation (software) identifier in the path. It can\nbe obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).", "operationId": "hosting_listInstalledWordPressPluginsV1", "parameters": [ { "$ref": "#/components/parameters/username_path" }, { "$ref": "#/components/parameters/software_path" }, { "name": "category", "in": "query", "description": "Filter installed plugins by category.", "required": false, "schema": { "type": "string", "enum": [ "cache" ], "example": "cache", "nullable": true } } ], "responses": { "200": { "description": "Success response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/WordPress.V1.Plugins.InstalledPluginCollection" } } } }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } } }, "/api/hosting/v1/wordpress/plugins": { "get": { "tags": [ "WordPress: Plugins" ], "summary": "Search WordPress plugins", "description": "Search the WordPress.org plugin directory for plugins available to install.\n\nUse the returned `slug` values with\nPOST /api/hosting/v1/accounts/{username}/wordpress/{software}/plugins/install.", "operationId": "hosting_searchWordPressPluginsV1", "parameters": [ { "name": "search", "in": "query", "description": "Search term to match against plugin names. Minimum 3 characters.", "required": true, "schema": { "type": "string", "minLength": 3, "example": "seo" } } ], "responses": { "200": { "description": "Success response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/WordPress.V1.Plugins.PluginCollection" } } } }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } } }, "/api/hosting/v1/wordpress/plugins/suggested": { "get": { "tags": [ "WordPress: Plugins" ], "summary": "List suggested WordPress plugins", "description": "List curated plugin suggestions grouped by website type.\n\nUse the returned `slug` values with\nPOST /api/hosting/v1/accounts/{username}/wordpress/{software}/plugins/install.", "operationId": "hosting_listSuggestedWordPressPluginsV1", "parameters": [ { "name": "order_id", "in": "query", "description": "Optionally scope suggestions to a specific order.", "required": false, "schema": { "type": "integer", "example": 123456, "nullable": true } } ], "responses": { "200": { "description": "Success response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/WordPress.V1.Plugins.SuggestedPluginGroupCollection" } } } }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } } }, "/api/hosting/v1/wordpress/plugins/is-woocommerce-installed": { "get": { "tags": [ "WordPress: Plugins" ], "summary": "Check if WooCommerce is installed", "description": "Check whether WooCommerce is installed on any WordPress installation of a\ndomain. Optionally filter by domain to scope the check.", "operationId": "hosting_checkIfWooCommerceIsInstalledV1", "parameters": [ { "$ref": "#/components/parameters/domain_filter" } ], "responses": { "200": { "description": "Success response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/WordPress.V1.Plugins.WoocommerceInstalledResource" } } } }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } } }, "/api/hosting/v1/accounts/{username}/wordpress/{software}/plugins/uninstall": { "post": { "tags": [ "WordPress: Plugins" ], "summary": "Uninstall WordPress plugins", "description": "Uninstall one or more plugins from a WordPress installation.\n\nProvide the WordPress installation (software) identifier in the path. It can\nbe obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).\n\nThis operation is asynchronous: a successful response only means the uninstall\njob has been queued.", "operationId": "hosting_uninstallWordPressPluginsV1", "parameters": [ { "$ref": "#/components/parameters/username_path" }, { "$ref": "#/components/parameters/software_path" } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/WordPress.V1.Plugins.UninstallPluginsRequest" } } } }, "responses": { "200": { "description": "Success empty response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Common.SuccessEmptyResource" } } } }, "422": { "$ref": "#/components/responses/Common.Response.UnprocessableContentResponse" }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } } }, "/api/hosting/v1/accounts/{username}/wordpress/{software}/plugins/hostinger/update": { "post": { "tags": [ "WordPress: Plugins" ], "summary": "Update Hostinger WordPress plugin", "description": "Update a Hostinger plugin to its latest version on a WordPress installation.\n\nProvide the WordPress installation (software) identifier in the path. It can\nbe obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).\n\nThis operation is asynchronous: a successful response only means the update job\nhas been queued.", "operationId": "hosting_updateHostingerWordPressPluginV1", "parameters": [ { "$ref": "#/components/parameters/username_path" }, { "$ref": "#/components/parameters/software_path" } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/WordPress.V1.Plugins.UpdateHostingerPluginRequest" } } } }, "responses": { "200": { "description": "Success empty response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Common.SuccessEmptyResource" } } } }, "422": { "$ref": "#/components/responses/Common.Response.UnprocessableContentResponse" }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } } }, "/api/hosting/v1/accounts/{username}/wordpress/{software}/plugins/update": { "post": { "tags": [ "WordPress: Plugins" ], "summary": "Update WordPress plugins", "description": "Update one or more installed plugins to their latest version on a WordPress\ninstallation.\n\nProvide the WordPress installation (software) identifier in the path. It can\nbe obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).\n\nThis operation is asynchronous: a successful response only means the update job\nhas been queued.", "operationId": "hosting_updateWordPressPluginsV1", "parameters": [ { "$ref": "#/components/parameters/username_path" }, { "$ref": "#/components/parameters/software_path" } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/WordPress.V1.Plugins.UpdatePluginsRequest" } } } }, "responses": { "200": { "description": "Success empty response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Common.SuccessEmptyResource" } } } }, "422": { "$ref": "#/components/responses/Common.Response.UnprocessableContentResponse" }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } } }, "/api/hosting/v1/accounts/{username}/wordpress/{software}/themes/activate": { "post": { "tags": [ "WordPress: Themes" ], "summary": "Activate WordPress theme", "description": "Activate an installed theme on a WordPress installation.\n\nProvide the WordPress installation (software) identifier in the path. It can\nbe obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).\n\nThis operation is asynchronous: a successful response only means the activation\njob has been queued.", "operationId": "hosting_activateWordPressThemeV1", "parameters": [ { "$ref": "#/components/parameters/username_path" }, { "$ref": "#/components/parameters/software_path" } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/WordPress.V1.Themes.ActivateThemeRequest" } } } }, "responses": { "200": { "description": "Success empty response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Common.SuccessEmptyResource" } } } }, "422": { "$ref": "#/components/responses/Common.Response.UnprocessableContentResponse" }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } } }, "/api/hosting/v1/accounts/{username}/wordpress/{software}/themes/install": { "post": { "tags": [ "WordPress: Themes" ], "summary": "Install WordPress theme", "description": "Install a theme on an existing WordPress installation.\n\nProvide the WordPress installation (software) identifier in the path. It can\nbe obtained from GET /api/hosting/v1/wordpress/installations (the `id`\nfield).\n\nWhen the theme is one of the Hostinger themes (hostinger-blog,\nhostinger-affiliate-theme, hostinger-ai-theme), the optional `palette`,\n`layout`, and `font` fields are forwarded to the custom installer (defaults:\npalette1, layout1, default). For any other theme they are ignored.\n\nThis operation is asynchronous: a successful response only means the install\njob has been queued, not that the theme is ready.", "operationId": "hosting_installWordPressThemeV1", "parameters": [ { "$ref": "#/components/parameters/username_path" }, { "$ref": "#/components/parameters/software_path" } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/WordPress.V1.Themes.InstallThemeRequest" } } } }, "responses": { "200": { "description": "Success empty response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Common.SuccessEmptyResource" } } } }, "422": { "$ref": "#/components/responses/Common.Response.UnprocessableContentResponse" }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } } }, "/api/hosting/v1/accounts/{username}/wordpress/{software}/themes": { "get": { "tags": [ "WordPress: Themes" ], "summary": "List installed WordPress themes", "description": "List themes installed on a WordPress installation, including their status,\navailable updates and known vulnerabilities.\n\nProvide the WordPress installation (software) identifier in the path. It can\nbe obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).", "operationId": "hosting_listInstalledWordPressThemesV1", "parameters": [ { "$ref": "#/components/parameters/username_path" }, { "$ref": "#/components/parameters/software_path" } ], "responses": { "200": { "description": "Success response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/WordPress.V1.Themes.InstalledThemeCollection" } } } }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } } }, "/api/hosting/v1/wordpress/themes": { "get": { "tags": [ "WordPress: Themes" ], "summary": "List WordPress themes", "description": "List WordPress themes available to install.\n\nUse the returned `slug` values with\nPOST /api/hosting/v1/accounts/{username}/wordpress/{software}/themes/install.", "operationId": "hosting_listWordPressThemesV1", "parameters": [ { "name": "order_id", "in": "query", "description": "Optionally scope themes to a specific order.", "required": false, "schema": { "type": "integer", "example": 123456, "nullable": true } }, { "name": "search", "in": "query", "description": "Search term to match against theme names.", "required": false, "schema": { "type": "string", "example": "blog", "nullable": true } } ], "responses": { "200": { "description": "Success response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/WordPress.V1.Themes.ThemeCollection" } } } }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } } }, "/api/hosting/v1/accounts/{username}/wordpress/{software}/themes/uninstall": { "post": { "tags": [ "WordPress: Themes" ], "summary": "Uninstall WordPress themes", "description": "Uninstall one or more themes from a WordPress installation.\n\nProvide the WordPress installation (software) identifier in the path. It can\nbe obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).\n\nThis operation is asynchronous: a successful response only means the uninstall\njob has been queued.", "operationId": "hosting_uninstallWordPressThemesV1", "parameters": [ { "$ref": "#/components/parameters/username_path" }, { "$ref": "#/components/parameters/software_path" } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/WordPress.V1.Themes.UninstallThemesRequest" } } } }, "responses": { "200": { "description": "Success empty response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Common.SuccessEmptyResource" } } } }, "422": { "$ref": "#/components/responses/Common.Response.UnprocessableContentResponse" }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } } }, "/api/hosting/v1/accounts/{username}/wordpress/{software}/themes/update": { "post": { "tags": [ "WordPress: Themes" ], "summary": "Update WordPress themes", "description": "Update one or more installed themes to their latest version on a WordPress\ninstallation.\n\nProvide the WordPress installation (software) identifier in the path. It can\nbe obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).\n\nThis operation is asynchronous: a successful response only means the update job\nhas been queued.", "operationId": "hosting_updateWordPressThemesV1", "parameters": [ { "$ref": "#/components/parameters/username_path" }, { "$ref": "#/components/parameters/software_path" } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/WordPress.V1.Themes.UpdateThemesRequest" } } } }, "responses": { "200": { "description": "Success empty response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Common.SuccessEmptyResource" } } } }, "422": { "$ref": "#/components/responses/Common.Response.UnprocessableContentResponse" }, "401": { "$ref": "#/components/responses/Common.Response.UnauthorizedResponse" }, "500": { "$ref": "#/components/responses/Common.Response.ErrorResponse" } } } } }, "components": { "schemas": { "Common.Schema.PaginationMetaSchema": { "properties": { "current_page": { "type": "integer", "example": 1 }, "per_page": { "type": "integer", "example": 15 }, "total": { "type": "integer", "example": 100 } }, "type": "object", "x-scalar-ignore": true }, "Billing.V1.Subscription.CancelRequest": { "properties": { "reason_code": { "description": "Cancellation reason code", "type": "string", "enum": [ "other" ], "example": "other", "nullable": true }, "cancel_option": { "description": "Cancellation option", "type": "string", "enum": [ "immediately" ], "example": "immediately", "nullable": true } }, "type": "object" }, "DNS.V1.Zone.DestroyRequest": { "required": [ "filters" ], "properties": { "filters": { "description": "Filter records for deletion", "type": "array", "items": { "required": [ "name", "type" ], "properties": { "name": { "description": "Name of the record", "type": "string", "example": "@" }, "type": { "description": "Type of the record", "type": "string", "enum": [ "A", "AAAA", "CNAME", "ALIAS", "MX", "TXT", "NS", "SOA", "SRV", "CAA" ], "example": "A" } }, "type": "object" } } }, "type": "object" }, "DNS.V1.Zone.ResetRequest": { "properties": { "sync": { "description": "Determines if operation should be run synchronously", "type": "boolean", "default": true, "example": true }, "reset_email_records": { "description": "Determines if email records should be reset", "type": "boolean", "default": true, "example": true }, "whitelisted_record_types": { "description": "Specifies which record types to not reset", "type": "array", "items": { "type": "string" }, "example": [ "MX", "TXT" ] } }, "type": "object" }, "DNS.V1.Zone.UpdateRequest": { "required": [ "zone" ], "properties": { "overwrite": { "description": "If `true`, resource records (RRs) matching name and type will be deleted and new RRs will be created,\notherwise resource records' ttl's are updated and new records are appended.\nIf no matching RRs are found, they are created.", "type": "boolean", "default": true, "example": true }, "zone": { "type": "array", "items": { "required": [ "name", "records", "type" ], "properties": { "name": { "description": "Name of the record (use `@` for wildcard name)", "type": "string", "example": "www" }, "records": { "description": "Records assigned to the name", "type": "array", "items": { "required": [ "content" ], "properties": { "content": { "description": "Content of the name record", "type": "string", "example": "mydomain.tld." } }, "type": "object" } }, "ttl": { "description": "TTL (Time-To-Live) of the record", "type": "integer", "example": 14400 }, "type": { "description": "Type of the record", "type": "string", "enum": [ "A", "AAAA", "CNAME", "ALIAS", "MX", "TXT", "NS", "SOA", "SRV", "CAA" ], "example": "A" } }, "type": "object" } } }, "type": "object" }, "DomainAccessVerifier.V2.Verifications.ListRequest": { "required": [ "domains" ], "properties": { "domains": { "description": "The list of domains for which to get verification details for.", "type": "array", "items": { "type": "string", "example": "example.com" } } }, "type": "object" }, "Domains.V1.Availability.AvailabilityRequest": { "required": [ "domain", "tlds" ], "properties": { "domain": { "description": "Domain name (without TLD)", "type": "string", "example": "mydomain" }, "tlds": { "description": "TLDs list", "type": "array", "items": { "description": "TLD without leading dot", "type": "string" }, "example": [ "com", "net", "org" ] }, "with_alternatives": { "description": "Should response include alternatives", "type": "boolean", "default": false, "example": true } }, "type": "object" }, "Domains.V1.Forwarding.StoreRequest": { "required": [ "domain", "redirect_type", "redirect_url" ], "properties": { "domain": { "description": "Domain name", "type": "string", "example": "mydomain.tld" }, "redirect_type": { "description": "Redirect type", "type": "string", "enum": [ "301", "302" ], "example": "301", "x-enum-descriptions": { "301": "Permanent", "302": "Temporary" } }, "redirect_url": { "description": "URL to forward domain to", "type": "string", "example": "https://forward.to.my.url" } }, "type": "object" }, "Domains.V1.Portfolio.PurchaseRequest": { "required": [ "domain", "item_id" ], "properties": { "domain": { "description": "Domain name", "type": "string", "example": "my-new-domain.tld" }, "item_id": { "description": "Catalog price item ID", "type": "string", "example": "hostingercom-domain-com-usd-1y" }, "payment_method_id": { "description": "Payment method ID, default will be used if not provided", "type": "integer", "example": 1327362 }, "domain_contacts": { "description": "Domain contact information", "properties": { "owner_id": { "description": "Owner contact WHOIS record ID", "type": "integer", "example": 741288 }, "admin_id": { "description": "Administrative contact WHOIS record ID", "type": "integer", "example": 546123 }, "billing_id": { "description": "Billing contact WHOIS record ID", "type": "integer", "example": 741288 }, "tech_id": { "description": "Technical contact WHOIS record ID", "type": "integer", "example": 741288 } }, "type": "object" }, "additional_details": { "description": "Additional registration data, possible values depends on TLD", "type": "object" }, "coupons": { "description": "Discount coupon codes", "type": "array", "items": { "example": [ "Coupon 3" ] } } }, "type": "object" }, "Domains.V1.Portfolio.UpdateNameserversRequest": { "required": [ "ns1", "ns2" ], "properties": { "ns1": { "description": "First name server", "type": "string", "example": "ns1.some-nameserver.tld" }, "ns2": { "description": "Second name server", "type": "string", "example": "ns2.some-nameserver.tld" }, "ns3": { "description": "Third name server", "type": "string", "example": "ns3.some-nameserver.tld" }, "ns4": { "description": "Fourth name server", "type": "string", "example": "ns4.some-nameserver.tld" } }, "type": "object" }, "Domains.V1.WHOIS.StoreRequest": { "required": [ "tld", "entity_type", "country", "whois_details" ], "properties": { "tld": { "description": "TLD of the domain (without leading dot)", "type": "string", "example": "com" }, "country": { "description": "ISO 3166 2-letter country code", "type": "string", "example": "NL" }, "entity_type": { "description": "Legal entity type", "type": "string", "enum": [ "individual", "organization" ], "example": "individual" }, "tld_details": { "description": "TLD details", "type": "object" }, "whois_details": { "description": "WHOIS details", "type": "object" } }, "type": "object" }, "Ecommerce.V1.Payment.EnableManualPaymentRequest": { "properties": { "title": { "description": "Optional display name shown to customers at checkout.", "type": "string", "maxLength": 255, "example": "Cash on delivery", "nullable": true } }, "type": "object" }, "Ecommerce.V1.Product.CreateDigitalProductRequest": { "required": [ "name", "price" ], "properties": { "name": { "description": "The product name.", "type": "string", "maxLength": 255, "example": "My eBook" }, "price": { "description": "Price in the smallest currency unit (e.g. cents). Must be positive.", "type": "integer", "minimum": 1, "example": 999 }, "description": { "description": "The product description.", "type": "string", "maxLength": 5000, "example": "A digital download.", "nullable": true }, "currency": { "description": "ISO 4217 currency code. Defaults to the store's default currency when omitted.", "type": "string", "maxLength": 3, "minLength": 3, "example": "usd", "nullable": true }, "download_url": { "description": "Optional external download link delivered to the customer after purchase.", "type": "string", "maxLength": 2048, "example": "https://example.com/downloads/ebook.pdf", "nullable": true } }, "type": "object" }, "Ecommerce.V1.Product.CreatePhysicalProductRequest": { "required": [ "name", "price" ], "properties": { "name": { "description": "The product name.", "type": "string", "maxLength": 255, "example": "My Product" }, "price": { "description": "Price in the smallest currency unit (e.g. cents). Must be positive.", "type": "integer", "minimum": 1, "example": 1000 }, "description": { "description": "The product description.", "type": "string", "maxLength": 5000, "example": "A great product.", "nullable": true }, "currency": { "description": "ISO 4217 currency code. Defaults to the store's default currency when omitted.", "type": "string", "maxLength": 3, "minLength": 3, "example": "usd", "nullable": true } }, "type": "object" }, "Ecommerce.V1.SalesChannel.StoreRequest": { "required": [ "type", "name" ], "properties": { "type": { "description": "Sales channel type. Only \"custom\" channels can be created via the API.", "type": "string", "enum": [ "custom" ], "example": "custom" }, "name": { "description": "Merchant-facing custom name shown in the sales channels list.", "type": "string", "maxLength": 100, "example": "Vintagio Onepager" }, "url": { "description": "Optional public address where the custom sales channel lives.", "type": "string", "maxLength": 2048, "example": "https://www.bestshirt.vintagio.com", "nullable": true } }, "type": "object" }, "Ecommerce.V1.Shipping.SetShippingRequest": { "required": [ "price" ], "properties": { "price": { "description": "Flat shipping rate in the smallest currency unit (e.g. cents). Use 0 for free shipping.", "type": "integer", "minimum": 0, "example": 500 } }, "type": "object" }, "Ecommerce.V1.Store.StoreRequest": { "properties": { "name": { "type": "string", "maxLength": 255, "example": "My Store" }, "country_code": { "description": "ISO 3166-1 alpha-2 country code.", "type": "string", "maxLength": 2, "minLength": 2, "example": "us" }, "company_email": { "type": "string", "example": "owner@example.com" }, "company_name": { "type": "string", "example": "My Company" }, "language": { "description": "ISO 639-1 language code.", "type": "string", "maxLength": 2, "minLength": 2, "example": "en" }, "sales_channel": { "properties": { "type": { "description": "Sales channel type. Only \"custom\" channels can be created via the API.", "type": "string", "enum": [ "custom" ], "example": "custom" }, "external_id": { "description": "External identifier for the sales channel.", "type": "string", "maxLength": 255, "example": null, "nullable": true } }, "type": "object" } }, "type": "object" }, "Horizons.V1.Websites.CreateWebsiteRequest": { "required": [ "message" ], "properties": { "message": { "type": "array", "items": { "required": [ "type", "text" ], "properties": { "type": { "type": "string", "enum": [ "text" ], "example": "text" }, "text": { "description": "Detailed project specification.\nInclude purpose, key features, user flows, data models, and design preferences.\nThe specification should be detailed and comprehensive, covering all aspects of the project.", "type": "string", "maxLength": 20000, "example": "Create a landing page for a coffee shop with a hero section, menu, and contact form" } }, "type": "object" } } }, "type": "object" }, "Hosting.V1.CronJobs.CreateCronJobRequest": { "required": [ "time", "command" ], "properties": { "time": { "description": "Cron schedule expression (for example \"0 2 * * *\" runs daily at 02:00).", "type": "string", "example": "0 2 * * *" }, "command": { "description": "Command to execute on the schedule.", "type": "string", "example": "php /home/u123456789/cleanup.php" } }, "type": "object" }, "Hosting.V1.Databases.ChangeDatabasePasswordRequest": { "required": [ "password" ], "properties": { "password": { "description": "New database user password.", "type": "string", "format": "password", "example": "Secu4ePa$$wor!D" } }, "type": "object" }, "Hosting.V1.Databases.CreateDatabaseRequest": { "required": [ "name", "user", "password", "website_domain" ], "properties": { "name": { "description": "Database name. If the account username prefix is omitted, it is added automatically.", "type": "string", "example": "u123456789_test_db" }, "user": { "description": "Database user. If the account username prefix is omitted, it is added automatically.", "type": "string", "example": "u123456789_admin" }, "password": { "description": "Database user password.", "type": "string", "format": "password", "example": "Str0ngP@ssword!" }, "website_domain": { "description": "Website domain assigned to the database.", "type": "string", "example": "example.com" } }, "type": "object" }, "Hosting.V1.Databases.RemoteConnections.CreateRemoteConnectionRequest": { "required": [ "ip" ], "properties": { "ip": { "description": "Remote host to allow: an IPv4/IPv6 address, or \"%\" for any host.", "type": "string", "example": "192.0.2.10" } }, "type": "object" }, "Hosting.V1.Datacenters.ListRequest": { "required": [ "order_id" ], "properties": { "order_id": { "type": "integer", "example": 12345 } }, "type": "object" }, "Hosting.V1.Domains.CreateParkedDomainRequest": { "required": [ "parked_domain" ], "properties": { "parked_domain": { "description": "Domain name or IP address to park on the selected website", "type": "string", "example": "parked-domain.com" } }, "type": "object" }, "Hosting.V1.Domains.CreateSubdomainRequest": { "required": [ "subdomain" ], "properties": { "subdomain": { "description": "Subdomain prefix to create under the selected website", "type": "string", "example": "blog" }, "directory": { "description": "Directory name for the subdomain relative to the website root", "type": "string", "example": "blog", "nullable": true }, "is_using_public_directory": { "description": "Use the website public directory as the subdomain root directory", "type": "boolean", "example": true } }, "type": "object" }, "Hosting.V1.Domains.VerifyOwnershipRequest": { "required": [ "domain" ], "properties": { "domain": { "description": "Domain to verify ownership for", "type": "string", "example": "example.com" } }, "type": "object" }, "Hosting.V1.NodeJs.CreateFromArchiveRequest": { "required": [ "archive" ], "properties": { "archive": { "description": "Project archive file (.zip, .tar.gz, or .tgz), maximum 50MB", "type": "string" }, "node_version": { "description": "Node.js version override (auto-detected from package.json if omitted)", "type": "integer", "enum": [ 18, 20, 22, 24 ], "example": 20, "nullable": true }, "app_type": { "description": "Node.js application type override", "type": "string", "enum": [ "create-react-app", "vite", "angular", "react", "vue", "parcel", "express", "fastify", "nest" ], "example": "vite", "nullable": true }, "root_directory": { "description": "Application root directory override (where package.json is located) relative to public_html", "type": "string", "maxLength": 200, "minLength": 1, "example": "webapp", "nullable": true }, "output_directory": { "description": "Build output directory override relative to the root directory", "type": "string", "maxLength": 200, "minLength": 1, "example": "dist", "nullable": true }, "build_script": { "description": "Build script override", "type": "string", "maxLength": 64, "minLength": 1, "example": "build", "nullable": true }, "entry_file": { "description": "Main entry point file override", "type": "string", "maxLength": 200, "minLength": 1, "example": "server.js", "nullable": true }, "package_manager": { "description": "Package manager override", "type": "string", "enum": [ "npm", "yarn", "pnpm" ], "example": "npm", "nullable": true } }, "type": "object" }, "Hosting.V1.Php.UpdatePhpExtensionsRequest": { "properties": { "enable": { "description": "PHP extensions to enable.", "type": "array", "items": { "type": "string" }, "example": [ "json", "yaml" ] }, "disable": { "description": "PHP extensions to disable.", "type": "array", "items": { "type": "string" }, "example": [ "imagick" ] } }, "type": "object" }, "Hosting.V1.Php.UpdatePhpOptionsRequest": { "required": [ "options" ], "properties": { "options": { "description": "Map of PHP options to update, keyed by option name. Only include options you want to change.", "type": "object", "example": { "memory_limit": "512M", "max_execution_time": 300, "upload_max_filesize": "256M" }, "additionalProperties": { "oneOf": [ { "type": "string" }, { "type": "integer" } ] } } }, "type": "object" }, "Hosting.V1.Php.UpdatePhpVersionRequest": { "required": [ "version" ], "properties": { "version": { "description": "PHP version to switch the website to.", "type": "string", "example": "8.1" } }, "type": "object" }, "Hosting.V1.Websites.CreateWebsiteRequest": { "required": [ "domain", "order_id" ], "properties": { "domain": { "description": "Domain name for the website. Cannot start with \"www.\"", "type": "string", "example": "example.com" }, "order_id": { "description": "ID of the associated order", "type": "integer", "example": 12345 }, "datacenter_code": { "description": "Datacenter code. This parameter is required when creating the first website on a new hosting plan.", "type": "string", "example": "us-east-1", "nullable": true } }, "type": "object" }, "Reach.V1.Contacts.Segments.StoreRequest": { "required": [ "name", "conditions", "logic" ], "properties": { "name": { "type": "string", "example": "New segment name" }, "conditions": { "type": "array", "items": { "properties": { "operator": { "type": "string", "enum": [ "equals", "not_equals", "contains", "not_contains", "gte", "lte", "exists", "within_last_days", "not_within_last_days", "older_than_days", "processed", "not_processed", "delivered", "not_delivered", "dropped", "not_dropped", "bounced", "not_bounced", "opened", "not_opened", "clicked", "not_clicked", "unsubscribed", "not_unsubscribed" ], "example": "equals" }, "value": { "oneOf": [ { "type": "string", "example": "example@example.com" }, { "type": "integer", "example": 10 } ] }, "attribute": { "type": "string", "enum": [ "note", "comment", "domain", "integration", "source", "name", "surname", "email", "subscribed_at", "unsubscribed_at", "subscription_status", "processed", "opened", "clicked", "delivered", "bounced", "unsubscribed", "dropped", "tag", "campaigns" ], "example": "note" } }, "type": "object" }, "maxItems": 5, "minItems": 1 }, "logic": { "type": "string", "enum": [ "AND", "OR" ], "example": "AND" } }, "type": "object" }, "Reach.V1.Contacts.StoreRequest": { "required": [ "email" ], "properties": { "email": { "type": "string", "example": "john.doe@example.com" }, "name": { "type": "string", "example": "John", "nullable": true }, "surname": { "type": "string", "example": "Doe", "nullable": true }, "phone": { "description": "Phone number in E.164 format (leading \"+\" then 7-15 digits)", "type": "string", "maxLength": 20, "example": "+14155552671", "nullable": true }, "note": { "type": "string", "maxLength": 75, "example": "VIP customer", "nullable": true } }, "type": "object" }, "VPS.V1.Firewall.Rules.StoreRequest": { "required": [ "protocol", "port", "source", "source_detail" ], "properties": { "protocol": { "type": "string", "enum": [ "TCP", "UDP", "ICMP", "GRE", "any", "ESP", "AH", "ICMPv6", "SSH", "HTTP", "HTTPS", "MySQL", "PostgreSQL" ], "example": "TCP" }, "port": { "description": "Port or port range, ex: 1024:2048", "type": "string", "example": "443" }, "source": { "type": "string", "enum": [ "any", "custom" ], "example": "any" }, "source_detail": { "description": "IP range, CIDR, single IP or `any`", "type": "string", "example": "351.15.24.0/24" } }, "type": "object" }, "VPS.V1.Firewall.StoreRequest": { "required": [ "name" ], "properties": { "name": { "type": "string", "example": "My Firewall Group" } }, "type": "object" }, "VPS.V1.PostInstallScript.StoreRequest": { "required": [ "name", "content" ], "properties": { "name": { "description": "Name of the script", "type": "string", "example": "My Script" }, "content": { "description": "Content of the script", "type": "string", "example": "#!/bin/bash\n\necho 'Hello, World!'" } }, "type": "object" }, "VPS.V1.PublicKey.AttachRequest": { "required": [ "ids" ], "properties": { "ids": { "description": "Public Key IDs to attach", "type": "array", "items": { "type": "integer" }, "example": [ 18232, 10230230 ] } }, "type": "object" }, "VPS.V1.PublicKey.StoreRequest": { "required": [ "name", "key" ], "properties": { "name": { "type": "string", "example": "My Public Key" }, "key": { "type": "string", "example": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQD..." } }, "type": "object" }, "VPS.V1.VirtualMachine.DockerManager.UpRequest": { "required": [ "project_name", "content" ], "properties": { "project_name": { "description": "Docker Compose project name using alphanumeric characters, dashes, and underscores only", "type": "string", "maxLength": 64, "minLength": 3, "example": "my-project-1" }, "content": { "description": "URL pointing to docker-compose.yaml file, Github repository or raw YAML content of the compose file", "type": "string", "maxLength": 8192 }, "environment": { "description": "Project environment variables", "type": "string", "maxLength": 8192, "nullable": true } }, "type": "object" }, "VPS.V1.VirtualMachine.HostnameUpdateRequest": { "required": [ "hostname" ], "properties": { "hostname": { "type": "string", "example": "my.server.tld" } }, "type": "object" }, "VPS.V1.VirtualMachine.MetricGetRequest": { "required": [ "date_from", "date_to" ], "properties": { "date_from": { "type": "string", "format": "date-time", "example": "2025-05-01T00:00:00Z" }, "date_to": { "type": "string", "format": "date-time", "example": "2025-06-01T00:00:00Z" } }, "type": "object" }, "VPS.V1.VirtualMachine.NameserversUpdateRequest": { "required": [ "ns1" ], "properties": { "ns1": { "type": "string", "example": "4.3.2.1" }, "ns2": { "type": "string", "example": "1.2.3.4", "nullable": true }, "ns3": { "type": "string", "example": "5.2.3.4", "nullable": true } }, "type": "object" }, "VPS.V1.VirtualMachine.PTR.StoreRequest": { "required": [ "domain" ], "properties": { "domain": { "description": "Pointer record domain", "type": "string", "example": "example.tld" } }, "type": "object" }, "VPS.V1.VirtualMachine.PanelPasswordUpdateRequest": { "required": [ "password" ], "properties": { "password": { "description": "Panel password for the virtual machine", "type": "string", "format": "password", "minLength": 8, "example": "oMeNRustosIO" } }, "type": "object" }, "VPS.V1.VirtualMachine.PurchaseRequest": { "required": [ "item_id", "setup" ], "properties": { "item_id": { "description": "Catalog price item ID", "type": "string", "example": "hostingercom-vps-kvm2-usd-1m" }, "payment_method_id": { "description": "Payment method ID, default will be used if not provided", "type": "integer", "example": 1327362 }, "setup": { "$ref": "#/components/schemas/VPS.V1.VirtualMachine.SetupRequest" }, "coupons": { "description": "Discount coupon codes", "type": "array", "items": { "example": [ "Coupon 3" ] } } }, "type": "object" }, "VPS.V1.VirtualMachine.Recovery.StartRequest": { "required": [ "root_password" ], "properties": { "root_password": { "description": "Temporary root password for recovery mode", "type": "string", "example": "oMeNRustosIO" } }, "type": "object" }, "VPS.V1.VirtualMachine.RecreateRequest": { "required": [ "template_id" ], "properties": { "template_id": { "description": "Template ID", "type": "integer", "example": 1130 }, "password": { "description": "Root password for the virtual machine. If not provided, random password will be generated.\nPassword will not be shown in the response.", "type": "string", "format": "password", "minLength": 12, "example": "oMeNRustosIO" }, "panel_password": { "description": "Panel password for the panel-based OS template. If not provided, random password will be generated.\nIf OS does not support panel_password this field will be ignored.\nPassword will not be shown in the response.", "type": "string", "format": "password", "minLength": 12, "example": "Mna58c17a4d" }, "post_install_script_id": { "description": "Post-install script to execute after virtual machine was recreated", "type": "integer", "example": 6324 } }, "type": "object" }, "VPS.V1.VirtualMachine.RootPasswordUpdateRequest": { "required": [ "password" ], "properties": { "password": { "description": "Root password for the virtual machine", "type": "string", "format": "password", "minLength": 12, "example": "oMeNRustosIO" } }, "type": "object" }, "VPS.V1.VirtualMachine.SetupRequest": { "required": [ "data_center_id", "template_id" ], "properties": { "template_id": { "description": "Template ID", "type": "integer", "example": 1130 }, "data_center_id": { "description": "Data center ID", "type": "integer", "example": 19 }, "post_install_script_id": { "description": "Post-install script ID", "type": "integer", "example": 6324 }, "password": { "description": "Password for the virtual machine. If not provided, random password will be generated.\nPassword will not be shown in the response.", "type": "string", "format": "password", "minLength": 12, "example": "oMeNRustosIO" }, "hostname": { "description": "Override default hostname of the virtual machine", "type": "string", "example": "my.server.tld" }, "install_monarx": { "description": "Install Monarx malware scanner (if supported)", "type": "boolean", "default": false, "example": false }, "enable_backups": { "description": "Enable weekly backup schedule", "type": "boolean", "default": true, "example": true }, "ns1": { "description": "Name server 1", "type": "string", "example": "4.3.2.1" }, "ns2": { "description": "Name server 2", "type": "string", "example": "1.2.3.4" }, "public_key": { "description": "Use SSH key", "properties": { "name": { "description": "Name of the SSH key", "type": "string", "example": "my-key" }, "key": { "description": "Contents of the SSH key", "type": "string", "example": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQC2X..." } }, "type": "object" } }, "type": "object" }, "WordPress.V1.Installations.InstallWordPressRequest": { "required": [ "domain", "site_title", "credentials" ], "properties": { "domain": { "description": "Domain of the existing website where WordPress will be installed", "type": "string", "example": "example.com" }, "site_title": { "description": "Title of the WordPress site", "type": "string", "example": "My site" }, "language": { "description": "WordPress locale. Defaults to en_US when omitted.", "type": "string", "example": "en_US", "nullable": true }, "directory": { "description": "Relative directory to install WordPress into. Defaults to the website root when omitted.", "type": "string", "example": "public_html", "nullable": true }, "overwrite": { "description": "When false (default), does not replace an existing installation. If WordPress is already installed on the domain/path, the async install job fails unless true.", "type": "boolean", "example": false, "nullable": true }, "auto_updates": { "description": "WordPress core auto-update policy", "type": "string", "enum": [ "all", "none", "minor" ], "example": "minor", "nullable": true }, "version": { "description": "WordPress core version to install. If omitted, the latest core version compatible with the account vhost PHP version is selected.", "type": "string", "example": "6.5.2", "nullable": true }, "credentials": { "description": "WordPress admin credentials", "required": [ "email", "login", "password" ], "properties": { "email": { "type": "string", "example": "owner@example.com" }, "login": { "description": "WordPress admin username", "type": "string", "example": "admin" }, "password": { "type": "string", "format": "password", "example": "********" } }, "type": "object" }, "database": { "description": "Optional. If the named database already exists, it will be used for this WordPress install. Otherwise a new database is created with a generated name and random credentials.", "properties": { "name": { "description": "Database name (username prefix added if missing)", "type": "string", "example": "mydb" }, "password": { "type": "string", "format": "password", "example": "********", "nullable": true } }, "type": "object", "nullable": true } }, "type": "object" }, "WordPress.V1.Plugins.ActivatePluginRequest": { "required": [ "plugin" ], "properties": { "plugin": { "description": "Slug of the installed plugin to activate.", "type": "string", "maxLength": 255, "minLength": 1, "example": "akismet" } }, "type": "object" }, "WordPress.V1.Plugins.DeactivatePluginRequest": { "required": [ "plugin" ], "properties": { "plugin": { "description": "Slug of the installed plugin to deactivate.", "type": "string", "maxLength": 255, "minLength": 1, "example": "akismet" } }, "type": "object" }, "WordPress.V1.Plugins.InstallPluginsRequest": { "required": [ "plugins" ], "properties": { "plugins": { "description": "Plugin slugs to install. Use GET /api/hosting/v1/wordpress/plugins to discover available slugs.", "type": "array", "items": { "description": "Plugin slug", "type": "string", "example": "akismet" }, "maxItems": 20, "minItems": 1, "example": [ "akismet", "hello-dolly" ] } }, "type": "object" }, "WordPress.V1.Plugins.UninstallPluginsRequest": { "required": [ "plugins" ], "properties": { "plugins": { "description": "Slugs of the installed plugins to uninstall.", "type": "array", "items": { "description": "Plugin slug", "type": "string", "example": "akismet" }, "maxItems": 20, "minItems": 1, "example": [ "akismet", "hello-dolly" ] } }, "type": "object" }, "WordPress.V1.Plugins.UpdateHostingerPluginRequest": { "required": [ "slug" ], "properties": { "slug": { "description": "Slug of the Hostinger plugin to update to its latest version.", "type": "string", "enum": [ "hostinger", "hostinger-ai-assistant", "hostinger-affiliate-plugin", "hostinger-easy-onboarding", "hostinger-reach" ], "example": "hostinger-affiliate-plugin" } }, "type": "object" }, "WordPress.V1.Plugins.UpdatePluginsRequest": { "required": [ "plugins" ], "properties": { "plugins": { "description": "Slugs of the installed plugins to update to their latest version.", "type": "array", "items": { "description": "Plugin slug", "type": "string", "example": "akismet" }, "maxItems": 20, "minItems": 1, "example": [ "akismet", "hello-dolly" ] } }, "type": "object" }, "WordPress.V1.Themes.ActivateThemeRequest": { "required": [ "theme" ], "properties": { "theme": { "description": "Slug of the installed theme to activate.", "type": "string", "maxLength": 50, "minLength": 1, "example": "twentytwentyone" } }, "type": "object" }, "WordPress.V1.Themes.InstallThemeRequest": { "required": [ "theme" ], "properties": { "theme": { "description": "Slug of the theme to install. Hostinger theme slugs (hostinger-blog, hostinger-affiliate-theme, hostinger-ai-theme) trigger the custom installer and forward the optional palette/layout/font fields; any other WordPress theme slug uses the standard installer and ignores those fields.", "type": "string", "maxLength": 50, "minLength": 1, "example": "hostinger-blog" }, "palette": { "description": "Palette identifier. Only applied when the theme is a Hostinger theme; the default is used when omitted.", "type": "string", "default": "palette1", "maxLength": 50, "minLength": 1, "example": "palette1", "nullable": true }, "layout": { "description": "Layout identifier. Only applied when the theme is a Hostinger theme; the default is used when omitted.", "type": "string", "default": "layout1", "maxLength": 50, "minLength": 1, "example": "layout1", "nullable": true }, "font": { "description": "Font identifier. Only applied when the theme is a Hostinger theme; the default is used when omitted.", "type": "string", "default": "default", "enum": [ "professional", "modern", "elegant", "creative", "dynamic", "default" ], "example": "default", "nullable": true } }, "type": "object" }, "WordPress.V1.Themes.UninstallThemesRequest": { "required": [ "themes" ], "properties": { "themes": { "description": "Slugs of the installed themes to uninstall.", "type": "array", "items": { "description": "Theme slug", "type": "string", "example": "twentytwentyone" }, "maxItems": 20, "minItems": 1, "example": [ "twentytwenty", "twentytwentyone" ] } }, "type": "object" }, "WordPress.V1.Themes.UpdateThemesRequest": { "required": [ "themes" ], "properties": { "themes": { "description": "Slugs of the installed themes to update to their latest version.", "type": "array", "items": { "description": "Theme slug", "type": "string", "example": "twentytwentyone" }, "maxItems": 20, "minItems": 1, "example": [ "twentytwenty", "twentytwentyone" ] } }, "type": "object" }, "Billing.V1.Catalog.CatalogItemCollection": { "description": "Array of [`Billing.V1.Catalog.CatalogItemResource`](#model/billingv1catalogcatalogitemresource)", "type": "array", "items": { "$ref": "#/components/schemas/Billing.V1.Catalog.CatalogItemResource" } }, "Billing.V1.Catalog.CatalogItemPriceCollection": { "description": "Array of [`Billing.V1.Catalog.CatalogItemPriceResource`](#model/billingv1catalogcatalogitempriceresource)", "type": "array", "items": { "$ref": "#/components/schemas/Billing.V1.Catalog.CatalogItemPriceResource" } }, "Billing.V1.Catalog.CatalogItemPriceResource": { "properties": { "id": { "description": "Price item ID", "type": "string", "example": "hostingercom-vps-kvm2-usd-1m" }, "name": { "description": "Price item name", "type": "string", "example": "KVM 2 (billed every month)" }, "currency": { "description": "Currency code", "type": "string", "example": "USD" }, "price": { "description": "Price in cents", "type": "integer", "example": 1799 }, "first_period_price": { "description": "First period price in cents", "type": "integer", "example": 899 }, "period": { "description": "Period", "type": "integer", "example": 1 }, "period_unit": { "description": "Period unit", "type": "string", "enum": [ "day", "week", "month", "year", "none" ], "example": "day" } }, "type": "object" }, "Billing.V1.Catalog.CatalogItemResource": { "properties": { "id": { "description": "Catalog item ID", "type": "string", "example": "hostingercom-vps-kvm2" }, "name": { "type": "string", "example": "KVM 2" }, "category": { "type": "string", "example": "VPS" }, "metadata": { "description": "\n Flexible key-value storage containing category-specific metadata for the catalog item.\n The structure and available fields vary depending on the item category.\n ", "type": "object", "example": { "field": "value" }, "nullable": true }, "prices": { "$ref": "#/components/schemas/Billing.V1.Catalog.CatalogItemPriceCollection" } }, "type": "object" }, "Billing.V1.Order.OrderBillingAddressResource": { "properties": { "first_name": { "type": "string", "example": "John" }, "last_name": { "type": "string", "example": "Doe" }, "company": { "type": "string", "example": null, "nullable": true }, "address_1": { "type": "string", "example": null, "nullable": true }, "address_2": { "type": "string", "example": null, "nullable": true }, "city": { "type": "string", "example": null, "nullable": true }, "state": { "type": "string", "example": null, "nullable": true }, "zip": { "type": "string", "example": null, "nullable": true }, "country": { "type": "string", "example": "NL", "nullable": true }, "phone": { "type": "string", "example": null, "nullable": true }, "email": { "type": "string", "example": "john@doe.tld" } }, "type": "object" }, "Billing.V1.Order.OrderResource": { "properties": { "id": { "description": "Order ID", "type": "integer", "example": 2957086 }, "subscription_id": { "description": "Subscription ID", "type": "string", "example": "Azz353Uhl1xC54pR0" }, "status": { "type": "string", "enum": [ "completed", "pending", "processing", "failed", "refunded", "cancelled", "awaiting_payment", "payment_initiated", "fraud_refund" ], "example": "completed" }, "currency": { "description": "Currency code", "type": "string", "example": "USD" }, "subtotal": { "description": "Subtotal price (exc. VAT) in cents", "type": "integer", "example": 899 }, "total": { "description": "Total price (inc. VAT) in cents", "type": "integer", "example": 1088 }, "billing_address": { "$ref": "#/components/schemas/Billing.V1.Order.OrderBillingAddressResource" }, "created_at": { "type": "string", "format": "date-time", "example": "2025-02-27T11:54:22Z" }, "updated_at": { "type": "string", "format": "date-time", "example": "2025-03-27T11:54:22Z" } }, "type": "object" }, "Billing.V1.Order.VirtualMachineOrderResource": { "properties": { "order": { "$ref": "#/components/schemas/Billing.V1.Order.OrderResource" }, "virtual_machine": { "$ref": "#/components/schemas/VPS.V1.VirtualMachine.VirtualMachineResource" } }, "type": "object" }, "Billing.V1.PaymentMethod.PaymentMethodCollection": { "description": "Array of [`Billing.V1.PaymentMethod.PaymentMethodResource`](#model/billingv1paymentmethodpaymentmethodresource)", "type": "array", "items": { "$ref": "#/components/schemas/Billing.V1.PaymentMethod.PaymentMethodResource" } }, "Billing.V1.PaymentMethod.PaymentMethodResource": { "properties": { "id": { "description": "Payment method ID", "type": "integer", "example": 6523 }, "name": { "type": "string", "example": "Credit Card" }, "identifier": { "type": "string", "example": "1234*****6464" }, "payment_method": { "type": "string", "example": "card" }, "is_default": { "type": "boolean", "example": true }, "is_expired": { "type": "boolean", "example": false }, "is_suspended": { "type": "boolean", "example": false }, "created_at": { "type": "string", "format": "date-time", "example": "2025-02-27T11:54:22Z" }, "expires_at": { "type": "string", "format": "date-time", "example": "2025-03-27T11:54:22Z" } }, "type": "object" }, "Billing.V1.Subscription.SubscriptionCollection": { "description": "Array of [`Billing.V1.Subscription.SubscriptionResource`](#model/billingv1subscriptionsubscriptionresource)", "type": "array", "items": { "$ref": "#/components/schemas/Billing.V1.Subscription.SubscriptionResource" } }, "Billing.V1.Subscription.SubscriptionResource": { "properties": { "id": { "description": "Subscription ID", "type": "string", "example": "Azz36nUfKX1S1MSF" }, "name": { "type": "string", "example": "KVM 1" }, "status": { "type": "string", "enum": [ "active", "paused", "cancelled", "not_renewing", "transferred", "in_trial", "future" ], "example": "active" }, "billing_period": { "type": "integer", "example": 1 }, "billing_period_unit": { "type": "string", "example": "day" }, "currency_code": { "type": "string", "example": "USD" }, "total_price": { "description": "Total price in cents", "type": "integer", "example": 1799 }, "renewal_price": { "description": "Renewal price in cents", "type": "integer", "example": 1799 }, "is_auto_renewed": { "type": "boolean", "example": true }, "created_at": { "type": "string", "format": "date-time", "example": "2025-02-27T11:54:22Z" }, "expires_at": { "type": "string", "format": "date-time", "example": "2025-03-27T11:54:22Z", "nullable": true }, "next_billing_at": { "type": "string", "format": "date-time", "example": "2025-02-28T11:54:22Z", "nullable": true } }, "type": "object" }, "Common.SuccessEmptyResource": { "properties": { "message": { "type": "string", "example": "Request accepted" } }, "type": "object", "x-scalar-ignore": true }, "DNS.V1.Snapshot.SnapshotCollection": { "description": "Array of [`DNS.V1.Snapshot.SnapshotResource`](#model/dnsv1snapshotsnapshotresource)", "type": "array", "items": { "$ref": "#/components/schemas/DNS.V1.Snapshot.SnapshotResource" } }, "DNS.V1.Snapshot.SnapshotResource": { "properties": { "id": { "description": "Snapshot ID", "type": "integer", "example": 5341 }, "reason": { "description": "Reason of the update", "type": "string", "example": "Zone records update request" }, "created_at": { "type": "string", "format": "date-time", "example": "2025-02-27T11:54:22Z" } }, "type": "object" }, "DNS.V1.Snapshot.SnapshotWithContentResource": { "properties": { "id": { "description": "Snapshot ID", "type": "integer", "example": 5341 }, "reason": { "description": "Reason of the update", "type": "string", "example": "Zone records update request" }, "snapshot": { "$ref": "#/components/schemas/DNS.V1.Zone.RecordCollection" }, "created_at": { "type": "string", "format": "date-time", "example": "2025-02-27T11:54:22Z" } }, "type": "object" }, "DNS.V1.Zone.NameRecordCollection": { "description": "Array of [`DNS.V1.Zone.NameRecordResource`](#model/dnsv1zonenamerecordresource)", "type": "array", "items": { "$ref": "#/components/schemas/DNS.V1.Zone.NameRecordResource" } }, "DNS.V1.Zone.NameRecordResource": { "properties": { "content": { "description": "Content of the name record", "type": "string", "example": "mydomain.tld." }, "is_disabled": { "description": "Flag to mark name record as disabled", "type": "boolean", "example": false } }, "type": "object" }, "DNS.V1.Zone.RecordCollection": { "description": "Array of [`DNS.V1.Zone.RecordResource`](#model/dnsv1zonerecordresource)", "type": "array", "items": { "$ref": "#/components/schemas/DNS.V1.Zone.RecordResource" } }, "DNS.V1.Zone.RecordResource": { "properties": { "name": { "description": "Name of the record (use `@` for wildcard name)", "type": "string", "example": "www" }, "records": { "$ref": "#/components/schemas/DNS.V1.Zone.NameRecordCollection" }, "ttl": { "description": "TTL (Time-To-Live) of the record", "type": "integer", "example": 14400 }, "type": { "description": "Type of the record", "type": "string", "enum": [ "A", "AAAA", "CNAME", "ALIAS", "MX", "TXT", "NS", "SOA", "SRV", "CAA" ], "example": "A" } }, "type": "object" }, "DomainAccessVerifier.V2.Verifications.ActiveVerificationsCollection": { "description": "Returns active verifications (PENDING and VERIFIED) grouped by status and domain. Includes last and next verification attempt dates and expiration for PENDING verifications.", "properties": { "data": { "description": "List of active verifications by status. If no verifications are found, this will return an empty array.", "properties": { "PENDING": { "description": "Pending verifications grouped by domain. Keys are domain names (e.g., \"pixel.tld\"). This property will not be returned if no pending verifications are found.", "properties": { "DOMAIN.TLD": { "description": "Domain name (example). Contains verification types as properties.", "properties": { "VERIFICATION_TYPE": { "description": "Verification type (\"NAMESERVERS\" or \"TXT\"). Only verification types that exist for this domain will be present.", "properties": { "records": { "description": "Verification records", "type": "array", "items": { "type": "string" } }, "last_verification_attempt": { "description": "Datetime when last verification attempt occurred", "type": "string", "example": "2025-08-05 13:15:00" }, "next_verification_attempt": { "description": "Datetime when next verification attempt will occur", "type": "string", "example": "2025-08-05 14:30:00" }, "verification_expiration": { "description": "Datetime when verification expires", "type": "string", "example": "2025-08-12 13:15:00" } }, "type": "object" } }, "type": "object" } }, "type": "object" }, "VERIFIED": { "description": "Verified verifications grouped by domain. Keys are domain names (e.g., \"byte.tld\"). This property will not be returned if no verified verifications are found.", "properties": { "DOMAIN.TLD": { "description": "Domain name (example). Contains verification types as properties.", "properties": { "VERIFICATION_TYPE": { "description": "Verification type (e.g., \"NAMESERVERS\", \"TXT\"). Only verification types that exist for this domain will be present.", "properties": { "records": { "description": "Verification records", "type": "array", "items": { "type": "string" } } }, "type": "object" } }, "type": "object" } }, "type": "object" } }, "type": "object" } }, "type": "object", "example": { "data": { "PENDING": { "pixel.tld": { "NAMESERVERS": { "records": [ "ns1.nameserver.com", "ns2.nameserver.com" ], "last_verification_attempt": "2025-08-05 13:15:00", "next_verification_attempt": "2025-08-05 14:30:00", "verification_expiration": "2025-08-12 13:15:00" }, "TXT": { "records": [ "txt-verification-hash" ], "last_verification_attempt": "2025-08-05 14:45:00", "next_verification_attempt": "2025-08-05 15:00:00", "verification_expiration": "2025-08-12 14:45:00" } } }, "VERIFIED": { "byte.tld": { "TXT": { "records": [ "other-txt-verification-hash" ] } } } } } }, "Domains.V1.Availability.AvailabilityCollection": { "description": "Array of [`Domains.V1.Availability.AvailabilityResource`](#model/domainsv1availabilityavailabilityresource)", "type": "array", "items": { "$ref": "#/components/schemas/Domains.V1.Availability.AvailabilityResource" } }, "Domains.V1.Availability.AvailabilityResource": { "properties": { "domain": { "description": "Domain name, `null` when not claimed free domain", "type": "string", "example": "mydomain.tld", "nullable": true }, "is_available": { "description": "`true` if domain is available for registration", "type": "boolean", "example": true }, "is_alternative": { "description": "`true` if domain is provided as an alternative", "type": "boolean", "example": false }, "restriction": { "description": "Special rules and/or restrictions applied for registering TLD", "type": "string", "nullable": true } }, "type": "object" }, "Domains.V1.Domain.DomainCollection": { "description": "Array of [`Domains.V1.Domain.DomainResource`](#model/domainsv1domaindomainresource)", "type": "array", "items": { "$ref": "#/components/schemas/Domains.V1.Domain.DomainResource" } }, "Domains.V1.Domain.DomainExtendedResource": { "properties": { "domain": { "description": "Domain name", "type": "string", "example": "mydomain.tld" }, "status": { "description": "Status of the domain", "type": "string", "enum": [ "active", "pending_setup", "expired", "requested", "pending_verification", "deleted", "suspended", "failed" ], "example": "active" }, "message": { "type": "string", "nullable": true }, "is_privacy_protection_allowed": { "description": "Is privacy protection allowed for the domain", "type": "boolean", "example": true }, "is_privacy_protected": { "description": "Is privacy protection enabled for the domain", "type": "boolean", "example": false }, "is_lockable": { "description": "Is domain allowed to be locked", "type": "boolean", "example": true }, "is_locked": { "description": "Is domain locked", "type": "boolean", "example": true }, "name_servers": { "description": "Name servers", "properties": { "ns1": { "description": "Name server 1", "type": "string", "example": "ns1.example.tld" }, "ns2": { "description": "Name server 2", "type": "string", "example": "ns2.example.tld" } }, "type": "object", "example": { "ns1": "ns1.example.tld", "ns2": "ns2.example.tld" } }, "child_name_servers": { "description": "Child name servers", "type": "array", "items": { "type": "array", "items": { "type": "string" } }, "example": { "ns1.example.tld": [ "258.231.55.321", "258.231.55.322" ] } }, "domain_contacts": { "description": "WHOIS profiles", "properties": { "admin_id": { "description": "Admin WHOIS profile ID", "type": "integer", "example": 114698 }, "owner_id": { "description": "Owner WHOIS profile ID", "type": "integer", "example": 614698 }, "billing_id": { "description": "Billing WHOIS profile ID", "type": "integer", "example": 154698 }, "tech_id": { "description": "Technician WHOIS profile ID", "type": "integer", "example": 524248 } }, "type": "object" }, "created_at": { "type": "string", "format": "date-time", "example": "2025-02-27T11:54:22Z" }, "updated_at": { "type": "string", "format": "date-time", "example": "2025-02-27T11:54:22Z" }, "60_days_lock_expires_at": { "type": "string", "format": "date-time", "example": "2025-04-27T11:54:22Z", "nullable": true }, "registered_at": { "type": "string", "format": "date-time", "example": "2025-02-27T12:54:22Z", "nullable": true }, "expires_at": { "type": "string", "format": "date-time", "example": "2025-03-27T11:54:22Z", "nullable": true } }, "type": "object" }, "Domains.V1.Domain.DomainResource": { "properties": { "id": { "description": "Domain ID", "type": "integer", "example": 13632 }, "domain": { "description": "Domain name, `null` when not claimed free domain", "type": "string", "example": "mydomain.tld", "nullable": true }, "type": { "type": "string", "enum": [ "domain", "free_domain", "domain_transfer", "free_domain_transfer" ], "example": "domain" }, "status": { "type": "string", "enum": [ "active", "pending_setup", "expired", "requested", "pending_verification", "deleted", "suspended", "failed" ], "example": "active" }, "created_at": { "type": "string", "format": "date-time", "example": "2025-02-27T11:54:22Z" }, "expires_at": { "type": "string", "format": "date-time", "example": "2025-03-27T11:54:22Z", "nullable": true } }, "type": "object" }, "Domains.V1.Forwarding.ForwardingResource": { "properties": { "domain": { "description": "Domain name", "type": "string", "example": "mydomain.tld", "nullable": true }, "redirect_type": { "description": "Redirect type", "type": "string", "enum": [ "301", "302" ], "example": "301", "x-enum-descriptions": { "301": "Permanent", "302": "Temporary" } }, "redirect_url": { "description": "URL domain is forwarded to", "type": "string", "example": "https://forward.to.my.url" }, "created_at": { "type": "string", "format": "date-time", "example": "2025-02-27T11:54:22Z" }, "updated_at": { "type": "string", "format": "date-time", "example": "2025-03-27T11:54:22Z", "nullable": true } }, "type": "object" }, "Domains.V1.WHOIS.ProfileCollection": { "description": "Array of [`Domains.V1.WHOIS.ProfileResource`](#model/domainsv1whoisprofileresource)", "type": "array", "items": { "$ref": "#/components/schemas/Domains.V1.WHOIS.ProfileResource" } }, "Domains.V1.WHOIS.ProfileResource": { "properties": { "id": { "description": "WHOIS Profile ID", "type": "integer", "example": 746263 }, "tld": { "description": "TLD to which contact profile can be applied to", "type": "string", "example": "com" }, "country": { "description": "ISO 3166 2-letter country code", "type": "string", "example": "NL" }, "entity_type": { "description": "WHOIS profile entity type", "type": "string", "enum": [ "individual", "organization" ], "example": "individual" }, "whois_details": { "description": "WHOIS profile details", "type": "object", "example": { "first_name": "John", "last_name": "Doe", "email": "john@doe.tld" } }, "tld_details": { "description": "TLD details", "type": "object" }, "created_at": { "type": "string", "format": "date-time", "example": "2025-02-27T11:54:22Z" }, "updated_at": { "type": "string", "format": "date-time", "example": "2025-03-19T11:54:22Z" } }, "type": "object" }, "Domains.V1.WHOIS.ProfileUsageResource": { "description": "Array of domains", "type": "array", "items": { "type": "string" }, "example": [ "mydomain1.tld", "mydomain2.tld" ] }, "Ecommerce.V1.Miscellaneous.CustomStorefrontInstructionsResource": { "properties": { "instructions": { "description": "Markdown setup instructions for connecting a custom sales channel to your store.", "type": "string", "example": "# Connect your custom storefront\n\nUse the Ecommerce API to sync your store." } }, "type": "object" }, "Ecommerce.V1.Payment.ManualPaymentResource": { "properties": { "payment_method": { "properties": { "id": { "description": "Store payment provider ID.", "type": "string", "example": "spp_01J8Z5F8W9K8M4A7B3C2D1E0FG" }, "provider_id": { "description": "The payment provider identifier.", "type": "string", "example": "manual" }, "is_enabled": { "description": "Whether the payment method is shown at checkout.", "type": "boolean", "example": true }, "title": { "description": "Display name shown to customers at checkout.", "type": "string", "example": "Cash on delivery" } }, "type": "object" }, "admin_url": { "description": "Admin UI deep-link to manage payment settings.", "type": "string", "example": "https://admin.example.com/store_01.../store-settings/payment-management" } }, "type": "object" }, "Ecommerce.V1.Product.ProductCreationResource": { "properties": { "product": { "properties": { "id": { "description": "Product ID.", "type": "string", "example": "prod_01J8Z5F8W9K8M4A7B3C2D1E0FG" }, "title": { "description": "Product name.", "type": "string", "example": "My Product" }, "type": { "description": "Product type.", "type": "string", "enum": [ "physical", "digital" ], "example": "physical" }, "status": { "description": "Product status.", "type": "string", "example": "published" }, "price": { "description": "Price in the smallest currency unit (e.g. cents).", "type": "integer", "example": 1000 }, "currency_code": { "description": "Currency the product is priced in (ISO 4217, lowercase).", "type": "string", "example": "usd" } }, "type": "object" }, "admin_url": { "description": "Admin UI deep-link to manage the product.", "type": "string", "example": "https://admin.example.com/store_01.../products/edit?product=prod_01..." } }, "type": "object" }, "Ecommerce.V1.SalesChannel.SalesChannelCreationResource": { "properties": { "sales_channel": { "properties": { "id": { "description": "Sales channel ID", "type": "string", "example": "scha_01J8Z5F8W9K8M4A7B3C2D1E0FG" }, "type": { "description": "Sales channel type", "type": "string", "enum": [ "builder", "horizons", "tiktok", "custom", "quick-link", "wordpress" ], "example": "custom" }, "is_primary": { "description": "Whether this is the primary sales channel.", "type": "boolean", "example": false }, "is_active": { "description": "Whether the sales channel is active.", "type": "boolean", "example": true }, "external_id": { "description": "External identifier for the sales channel.", "type": "string", "example": null, "nullable": true }, "name": { "description": "Merchant-facing custom name.", "type": "string", "example": "Vintagio Onepager", "nullable": true }, "domain": { "description": "Public address where the custom sales channel lives.", "type": "string", "example": "https://www.bestshirt.vintagio.com", "nullable": true } }, "type": "object" } }, "type": "object" }, "Ecommerce.V1.SalesChannel.SalesChannelListResource": { "properties": { "sales_channels": { "description": "The store's active sales channels.", "type": "array", "items": { "properties": { "id": { "description": "Sales channel ID", "type": "string", "example": "scha_01J8Z5F8W9K8M4A7B3C2D1E0FG" }, "type": { "description": "Sales channel type", "type": "string", "enum": [ "builder", "horizons", "tiktok", "custom", "quick-link", "wordpress" ], "example": "custom" }, "is_primary": { "description": "Whether this is the primary sales channel.", "type": "boolean", "example": false }, "is_active": { "description": "Whether the sales channel is active.", "type": "boolean", "example": true }, "external_id": { "description": "External identifier for the sales channel.", "type": "string", "example": null, "nullable": true }, "name": { "description": "Merchant-facing custom name.", "type": "string", "example": "Vintagio Onepager", "nullable": true }, "domain": { "description": "Public address where the sales channel lives.", "type": "string", "example": "https://www.bestshirt.vintagio.com", "nullable": true } }, "type": "object" } } }, "type": "object" }, "Ecommerce.V1.Shipping.ShippingResource": { "properties": { "shipping_option": { "properties": { "id": { "description": "Shipping option ID.", "type": "string", "example": "so_01J8Z5F8W9K8M4A7B3C2D1E0FG" }, "amount": { "description": "Flat shipping rate in the smallest currency unit (e.g. cents).", "type": "integer", "example": 500 }, "currency_code": { "description": "Currency code the rate is charged in (ISO 4217, lowercase).", "type": "string", "example": "usd" } }, "type": "object" }, "admin_url": { "description": "Admin UI deep-link to manage shipping settings.", "type": "string", "example": "https://admin.example.com/store_01.../store-settings/shipping" } }, "type": "object" }, "Ecommerce.V1.Store.StoreCollection": { "description": "Array of [`Ecommerce.V1.Store.StoreResource`](#model/ecommercev1storestoreresource)", "type": "array", "items": { "$ref": "#/components/schemas/Ecommerce.V1.Store.StoreResource" } }, "Ecommerce.V1.Store.StoreCreationResource": { "properties": { "store": { "properties": { "id": { "description": "Store ID", "type": "string", "example": "store_01J8Z5F8W9K8M4A7B3C2D1E0FG" }, "name": { "description": "Store name", "type": "string", "example": "My Store", "nullable": true }, "company_name": { "description": "Company name", "type": "string", "example": "My Company", "nullable": true }, "h_panel_id": { "description": "Identifier of the hPanel account that owns the store.", "type": "string", "example": "1234567" }, "created_at": { "description": "Creation date", "type": "string", "format": "date-time", "example": "2026-01-21T07:35:04.000000Z" }, "default_currency_code": { "description": "Default currency code (ISO 4217), in lowercase.", "type": "string", "example": "usd" } }, "type": "object" }, "sales_channel": { "properties": { "id": { "description": "Sales channel ID", "type": "string", "example": "scha_01J8Z5F8W9K8M4A7B3C2D1E0FG" }, "type": { "description": "Sales channel type", "type": "string", "enum": [ "builder", "horizons", "tiktok", "custom", "quick-link", "wordpress" ], "example": "custom" }, "external_id": { "description": "External identifier for the sales channel", "type": "string", "example": null, "nullable": true } }, "type": "object" } }, "type": "object" }, "Ecommerce.V1.Store.StoreDeleteResource": { "properties": { "id": { "description": "The ID of the deleted store.", "type": "string", "example": "store_01J8Z5F8W9K8M4A7B3C2D1E0FG" }, "is_deleted": { "description": "Always true when the store was soft-deleted.", "type": "boolean", "example": true } }, "type": "object" }, "Ecommerce.V1.Store.StoreResource": { "properties": { "id": { "description": "Store ID", "type": "string", "example": "store_01J8Z5F8W9K8M4A7B3C2D1E0FG" }, "name": { "description": "Store name", "type": "string", "example": "My Store", "nullable": true }, "created_at": { "description": "Creation date", "type": "string", "format": "date-time", "example": "2026-01-21T07:35:04.000000Z" }, "updated_at": { "description": "Last update date", "type": "string", "format": "date-time", "example": "2026-01-21T07:35:04.000000Z" }, "version": { "description": "Store platform version identifier (e.g. \"v2_standalone\").", "type": "string", "example": "v2_standalone" }, "company_name": { "description": "Company name", "type": "string", "example": "My Company", "nullable": true } }, "type": "object" }, "Horizons.V1.Websites.CreatedWebsiteResource": { "required": [ "website_url", "website_id" ], "properties": { "website_url": { "description": "The website URL for the user to access their website in Hostinger Horizons interface", "type": "string", "example": "https://horizons.hostinger.com/123e4567-e89b-12d3-a456-426614174000?location=chatgpt" }, "website_id": { "description": "The website ID", "type": "string", "example": "123e4567-e89b-12d3-a456-426614174000" } }, "type": "object" }, "Horizons.V1.Websites.WebsiteUrlResource": { "required": [ "website_url" ], "properties": { "website_url": { "description": "The website URL for the user to access their website in Hostinger Horizons interface", "type": "string", "example": "https://horizons.hostinger.com/123e4567-e89b-12d3-a456-426614174000?location=chatgpt" } }, "type": "object" }, "Hosting.V1.CronJobs.CronJobCollection": { "description": "Array of [`Hosting.V1.CronJobs.CronJobResource`](#model/hostingv1cronjobscronjobresource)", "type": "array", "items": { "$ref": "#/components/schemas/Hosting.V1.CronJobs.CronJobResource" } }, "Hosting.V1.CronJobs.CronJobOutputResource": { "required": [ "output" ], "properties": { "output": { "description": "Output captured from the last cron job execution. Empty when the cron job has not run yet.", "type": "string", "example": "" } }, "type": "object" }, "Hosting.V1.CronJobs.CronJobResource": { "properties": { "uid": { "description": "Unique identifier of the cron job. Use it to delete the cron job or fetch its output.", "type": "string", "example": "cron_abc123" }, "username": { "description": "Username of the account that owns the cron job.", "type": "string", "example": "u123456789" }, "time": { "description": "Cron schedule expression.", "type": "string", "example": "0 2 * * *" }, "command": { "description": "Command executed on the schedule.", "type": "string", "example": "php /home/u123456789/cleanup.php" } }, "type": "object" }, "Hosting.V1.Databases.DatabaseCollection": { "description": "Array of [`Hosting.V1.Databases.DatabaseResource`](#model/hostingv1databasesdatabaseresource)", "type": "array", "items": { "$ref": "#/components/schemas/Hosting.V1.Databases.DatabaseResource" } }, "Hosting.V1.Databases.DatabaseResource": { "properties": { "name": { "description": "Database name.", "type": "string", "example": "u123456789_test_db" }, "user": { "description": "Database user.", "type": "string", "example": "u123456789_admin" }, "domain": { "description": "Domain assigned to the database, or null when the database is unassigned.", "type": "string", "example": "example.com", "nullable": true }, "permissions": { "description": "Database user permissions keyed by permission name.", "type": "object", "example": { "Alter": 1, "Drop": 0 } }, "created_at": { "description": "Database creation date in ISO 8601 format.", "type": "string", "format": "date-time", "example": "2024-05-29T05:49:49+00:00" }, "updated_at": { "description": "Database last update date in ISO 8601 format.", "type": "string", "format": "date-time", "example": "2024-05-29T05:49:49+00:00" }, "disk_usage_mb": { "description": "Current database disk usage in megabytes.", "type": "integer", "example": 32, "nullable": true }, "max_size_mb": { "description": "Maximum allowed database size in megabytes.", "type": "integer", "example": 3072 } }, "type": "object" }, "Hosting.V1.Databases.PhpMyAdminLinkResource": { "required": [ "link" ], "properties": { "link": { "description": "Direct sign-on URL to phpMyAdmin for the specified database.", "type": "string", "example": "https://auth-db123.hostinger.com/signon.php?sid=abc123" } }, "type": "object" }, "Hosting.V1.Databases.RemoteConnections.RemoteConnectionCollection": { "description": "Array of [`Hosting.V1.Databases.RemoteConnections.RemoteConnectionResource`](#model/hostingv1databasesremoteconnectionsremoteconnectionresource)", "type": "array", "items": { "$ref": "#/components/schemas/Hosting.V1.Databases.RemoteConnections.RemoteConnectionResource" } }, "Hosting.V1.Databases.RemoteConnections.RemoteConnectionResource": { "properties": { "database_name": { "description": "Full name of the database the rule applies to.", "type": "string", "example": "u123456789_shop" }, "database_user": { "description": "Database user the rule applies to.", "type": "string", "example": "u123456789_admin" }, "ip": { "description": "Allowed remote host: an IPv4/IPv6 address, or \"%\" for any host.", "type": "string", "example": "192.0.2.10" } }, "type": "object" }, "Hosting.V1.Datacenter.CoordinatesResource": { "properties": { "latitude": { "description": "Latitude coordinate", "type": "number", "format": "float", "example": 51.5074 }, "longitude": { "description": "Longitude coordinate", "type": "number", "format": "float", "example": 0.1278 } }, "type": "object" }, "Hosting.V1.Datacenter.DatacenterCollection": { "description": "Array of [`Hosting.V1.Datacenter.DatacenterResource`](#model/hostingv1datacenterdatacenterresource)", "type": "array", "items": { "$ref": "#/components/schemas/Hosting.V1.Datacenter.DatacenterResource" } }, "Hosting.V1.Datacenter.DatacenterResource": { "properties": { "title": { "description": "Data center title", "type": "string", "example": "Europe (UK)" }, "code": { "description": "Data center code", "type": "string", "example": "uk-fast" }, "coordinates": { "$ref": "#/components/schemas/Hosting.V1.Datacenter.CoordinatesResource" } }, "type": "object" }, "Hosting.V1.Domains.DomainAccessResource": { "properties": { "domain": { "description": "Domain name", "type": "string", "example": "example.com" }, "is_accessible": { "description": "Whether domain is accessible", "type": "boolean", "example": false }, "txt_to_verify": { "description": "TXT record for verification", "type": "string", "example": "example.com=example-verification-code" } }, "type": "object" }, "Hosting.V1.Domains.FreeSubdomainResource": { "properties": { "domain": { "description": "Generated free subdomain", "type": "string", "example": "palegreen-fox-548498.hostingersite.com" } }, "type": "object" }, "Hosting.V1.Domains.ParkedDomainCollection": { "description": "Array of [`Hosting.V1.Domains.ParkedDomainResource`](#model/hostingv1domainsparkeddomainresource)", "type": "array", "items": { "$ref": "#/components/schemas/Hosting.V1.Domains.ParkedDomainResource" } }, "Hosting.V1.Domains.ParkedDomainResource": { "properties": { "username": { "description": "Website username", "type": "string", "example": "u123456789" }, "domain": { "description": "Parked domain name or IP address", "type": "string", "example": "parked-domain.com" }, "parent_domain": { "description": "Parent website domain", "type": "string", "example": "example.com" }, "root_directory": { "description": "Parked domain root directory", "type": "string", "example": "/home/u123456789/domains/example.com/public_html" }, "type": { "description": "Whether the parked value is a domain name or an IP address (IPv4 or IPv6)", "type": "string", "enum": [ "domain", "ip" ], "example": "domain" } }, "type": "object" }, "Hosting.V1.Domains.SubdomainCollection": { "description": "Array of [`Hosting.V1.Domains.SubdomainResource`](#model/hostingv1domainssubdomainresource)", "type": "array", "items": { "$ref": "#/components/schemas/Hosting.V1.Domains.SubdomainResource" } }, "Hosting.V1.Domains.SubdomainResource": { "properties": { "username": { "description": "Website username", "type": "string", "example": "u123456789" }, "domain": { "description": "Full subdomain", "type": "string", "example": "blog.example.com" }, "parent_domain": { "description": "Parent website domain", "type": "string", "example": "example.com" }, "root_directory": { "description": "Subdomain root directory", "type": "string", "example": "/home/u123456789/domains/blog.example.com/public_html" }, "subdomain": { "description": "Subdomain prefix", "type": "string", "example": "blog" } }, "type": "object" }, "Hosting.V1.NodeJs.BuildCollection": { "description": "Array of [`Hosting.V1.NodeJs.BuildResource`](#model/hostingv1nodejsbuildresource)", "type": "array", "items": { "$ref": "#/components/schemas/Hosting.V1.NodeJs.BuildResource" } }, "Hosting.V1.NodeJs.BuildLogsResource": { "required": [ "logs", "lines" ], "properties": { "logs": { "description": "Logs from the build process, may contain ANSI escape sequences (for colors, etc.)", "type": "string", "example": "added 10 packages, and audited 11 packages in 8s\n\n3 packages are looking for funding\n run `npm fund` for details", "nullable": true }, "lines": { "description": "Number of log lines returned", "type": "integer", "example": 3 } }, "type": "object" }, "Hosting.V1.NodeJs.BuildOptionsResource": { "required": [ "node_version", "app_type", "root_directory", "output_directory", "build_script", "entry_file", "package_manager", "source_type", "source_options" ], "properties": { "node_version": { "description": "Node.js version", "type": "integer", "example": 24 }, "app_type": { "description": "Node.js application type", "type": "string", "enum": [ "create-react-app", "vite", "angular", "react", "vue", "parcel" ], "example": "vite", "nullable": true }, "root_directory": { "description": "Application root directory", "type": "string", "example": "src", "nullable": true }, "output_directory": { "description": "Build output directory", "type": "string", "example": "dist", "nullable": true }, "build_script": { "description": "The npm script to run to build the application", "type": "string", "example": "build", "nullable": true }, "entry_file": { "description": "The main entry point file for the application", "type": "string", "example": "server.js", "nullable": true }, "package_manager": { "description": "Package manager", "type": "string", "enum": [ "npm", "yarn", "pnpm" ], "example": "npm", "nullable": true }, "source_type": { "description": "Source type for the build", "type": "string", "enum": [ "archive" ], "example": "archive", "nullable": true }, "source_options": { "oneOf": [ { "$ref": "#/components/schemas/Hosting.V1.NodeJs.SourceOptionsResource" } ], "nullable": true, "description": "Source options, varies based on sourceType" } }, "type": "object" }, "Hosting.V1.NodeJs.BuildResource": { "properties": { "uuid": { "description": "Build UUID", "type": "string", "example": "69f07fe2-197a-4fb3-9dae-606f965ad13d" }, "state": { "description": "Build state", "type": "string", "enum": [ "pending", "running", "completed", "failed" ], "example": "pending" }, "options": { "oneOf": [ { "$ref": "#/components/schemas/Hosting.V1.NodeJs.BuildOptionsResource" } ], "nullable": true, "description": "Build options" }, "created_at": { "description": "Creation timestamp", "type": "string", "format": "date-time", "example": "2024-05-29T05:49:49.067239Z" }, "updated_at": { "description": "Last update timestamp", "type": "string", "format": "date-time", "example": "2024-05-29T05:49:49.067239Z" } }, "type": "object" }, "Hosting.V1.NodeJs.SourceOptionsResource": { "properties": { "archive_path": { "description": "Present if sourceType is \"archive\"", "type": "string", "example": "archive.zip", "nullable": true } }, "type": "object" }, "Hosting.V1.Orders.OrderCollection": { "description": "Array of [`Hosting.V1.Orders.OrderResource`](#model/hostingv1ordersorderresource)", "type": "array", "items": { "$ref": "#/components/schemas/Hosting.V1.Orders.OrderResource" } }, "Hosting.V1.Orders.OrderResource": { "properties": { "id": { "description": "Order ID", "type": "integer", "example": 12345 }, "client_id": { "description": "Client ID", "type": "integer", "example": 67890 }, "subscription_id": { "description": "Subscription ID", "type": "string", "example": "sub_abc123", "nullable": true }, "created_at": { "description": "Creation date", "type": "string", "format": "date-time", "example": "2023-10-08T12:00:00+00:00" }, "plan": { "$ref": "#/components/schemas/Hosting.V1.Orders.PlanResource" }, "status": { "description": "Order status", "type": "string", "example": "active" } }, "type": "object" }, "Hosting.V1.Orders.PlanResource": { "properties": { "name": { "description": "Plan name", "type": "string", "example": "hostinger_business" } }, "type": "object" }, "Hosting.V1.Php.PhpDetailsResource": { "properties": { "php_version": { "description": "Current PHP version name", "type": "string", "example": "8.1" }, "php_version_full": { "description": "Full PHP version name", "type": "string", "example": "8.1.27" }, "php_versions": { "$ref": "#/components/schemas/Hosting.V1.Php.PhpVersionsResource" }, "options": { "description": "PHP options keyed by option name", "type": "object", "additionalProperties": { "$ref": "#/components/schemas/Hosting.V1.Php.PhpOptionResource" } }, "extensions": { "description": "PHP extensions keyed by extension name", "type": "object", "example": { "yaml": { "state": "enabled", "description": "" } } }, "conflicting_extensions": { "description": "Groups of extensions that conflict with each other", "type": "array", "items": { "type": "array", "items": { "type": "string" }, "example": [ "apc", "opcache" ] } } }, "type": "object" }, "Hosting.V1.Php.PhpInfoResource": { "properties": { "info": { "description": "HTML string containing the full phpinfo page", "type": "string", "example": "..." } }, "type": "object" }, "Hosting.V1.Php.PhpOptionResource": { "properties": { "type": { "description": "Declared option type (e.g. bool, string)", "type": "string", "example": "bool" }, "value": { "description": "Current value for this website", "type": "string", "example": "On" }, "comment": { "description": "Human-readable description", "type": "string", "example": "Allows PHP file functions to retrieve data from remote locations" }, "default": { "description": "Default value", "type": "string", "example": "On" }, "range": { "description": "Allowed value range or limits, when applicable", "type": "string", "example": "8M-512M", "nullable": true }, "max": { "description": "Maximum value allowed by the account hosting plan, when applicable", "type": "string", "example": "512M", "nullable": true } }, "type": "object" }, "Hosting.V1.Php.PhpVersionsResource": { "properties": { "supported": { "description": "Key-value pairs of supported versions", "type": "object", "example": { "8.1": "PHP 8.1" } }, "unsupported": { "description": "Key-value pairs of unsupported versions", "type": "object", "example": { "5.2": "PHP 5.2" } } }, "type": "object" }, "Hosting.V1.Websites.WebsiteCollection": { "description": "Array of [`Hosting.V1.Websites.WebsiteResource`](#model/hostingv1websiteswebsiteresource)", "type": "array", "items": { "$ref": "#/components/schemas/Hosting.V1.Websites.WebsiteResource" } }, "Hosting.V1.Websites.WebsiteResource": { "properties": { "domain": { "description": "Website domain", "type": "string", "example": "example.com" }, "vhost_type": { "description": "Virtual host type", "type": "string", "enum": [ "main", "addon", "parked", "subdomain" ], "example": "main" }, "is_enabled": { "description": "Whether website is enabled", "type": "boolean", "example": true }, "username": { "description": "Username", "type": "string", "example": "cl_user123" }, "client_id": { "description": "Client ID", "type": "integer", "example": 67890 }, "order_id": { "description": "Order ID", "type": "integer", "example": 12345 }, "created_at": { "description": "Creation date", "type": "string", "format": "date-time", "example": "2024-01-15T10:30:00+00:00" }, "root_directory": { "description": "Root directory path", "type": "string", "example": "/home/u123456798/domains/example.com/public_html" }, "parent_domain": { "description": "Parent domain", "type": "string", "example": "parent.com", "nullable": true } }, "type": "object" }, "Reach.V1.Contacts.ContactCollection": { "description": "Array of [`Reach.V1.Contacts.ContactResource`](#model/reachv1contactscontactresource)", "type": "array", "items": { "$ref": "#/components/schemas/Reach.V1.Contacts.ContactResource" } }, "Reach.V1.Contacts.ContactResource": { "properties": { "uuid": { "type": "string", "example": "550e8400-e29b-41d4-a716-446655440000" }, "name": { "type": "string", "example": "John", "nullable": true }, "surname": { "type": "string", "example": "Doe", "nullable": true }, "email": { "type": "string", "example": "john.doe@example.com" }, "subscription_status": { "type": "string", "enum": [ "subscribed", "unsubscribed" ], "example": "subscribed" }, "subscribed_at": { "type": "string", "format": "date-time", "example": "2023-01-01T00:00:00Z" }, "source": { "type": "string", "enum": [ "sync", "import", "manual" ], "example": "sync", "nullable": true }, "note": { "type": "string", "maxLength": 75, "example": "VIP customer", "nullable": true } }, "type": "object" }, "Reach.V1.Contacts.Groups.ContactGroupCollection": { "description": "Array of [`Reach.V1.Contacts.Groups.ContactGroupResource`](#model/reachv1contactsgroupscontactgroupresource)", "type": "array", "items": { "$ref": "#/components/schemas/Reach.V1.Contacts.Groups.ContactGroupResource" } }, "Reach.V1.Contacts.Groups.ContactGroupResource": { "properties": { "uuid": { "type": "string", "example": "550e8400-e29b-41d4-a716-446655440000" }, "title": { "type": "string", "example": "Newsletter Subscribers" } }, "type": "object" }, "Reach.V1.Contacts.Segments.ContactSegmentCollection": { "description": "Array of [`Reach.V1.Contacts.Segments.ContactSegmentResource`](#model/reachv1contactssegmentscontactsegmentresource)", "type": "array", "items": { "$ref": "#/components/schemas/Reach.V1.Contacts.Segments.ContactSegmentResource" } }, "Reach.V1.Contacts.Segments.ContactSegmentResource": { "properties": { "uuid": { "type": "string", "example": "550e8400-e29b-41d4-a716-446655440000" }, "name": { "type": "string", "example": "Newsletter Subscribers" }, "created_at": { "type": "string", "format": "date-time", "example": "2025-02-27T11:54:22Z" }, "updated_at": { "type": "string", "format": "date-time", "example": "2025-02-27T11:54:22Z" } }, "type": "object" }, "Reach.V1.Contacts.Segments.SegmentResource": { "properties": { "uuid": { "type": "string", "example": "550e8400-e29b-41d4-a716-446655440000" }, "name": { "type": "string", "example": "Segment name" }, "query": { "type": "array", "items": {}, "example": { "conditions": [ { "attribute": "email", "operator": "contains", "value": "example.com" } ], "logic": "and" } }, "created_at": { "type": "string", "format": "date-time", "example": "2025-02-27T11:54:22Z" }, "updated_at": { "type": "string", "format": "date-time", "example": "2025-02-27T11:54:22Z" } }, "type": "object" }, "Reach.V1.Contacts.Segments.SegmentationContactCollection": { "description": "Array of [`Reach.V1.Contacts.Segments.SegmentationContactResource`](#model/reachv1contactssegmentssegmentationcontactresource)", "type": "array", "items": { "$ref": "#/components/schemas/Reach.V1.Contacts.Segments.SegmentationContactResource" } }, "Reach.V1.Contacts.Segments.SegmentationContactResource": { "properties": { "uuid": { "type": "string", "example": "550e8400-e29b-41d4-a716-446655440000" }, "name": { "type": "string", "example": "John", "nullable": true }, "surname": { "type": "string", "example": "Doe", "nullable": true }, "email": { "type": "string", "example": "john.doe@example.com" }, "subscription_status": { "type": "string", "enum": [ "subscribed", "unsubscribed" ], "example": "subscribed" }, "subscribed_at": { "type": "string", "format": "date-time", "example": "2023-01-01T00:00:00Z" }, "source": { "type": "string", "enum": [ "sync", "import", "manual" ], "example": "sync", "nullable": true }, "note": { "type": "string", "maxLength": 75, "example": "VIP customer", "nullable": true } }, "type": "object" }, "Reach.V1.Profiles.Domains.DnsRecordStatus": { "properties": { "actual": { "type": "array", "items": { "properties": { "type": { "type": "string", "example": "MX" }, "value": { "type": "string", "example": "mx1.example.com" } }, "type": "object" } }, "suggested": { "type": "array", "items": { "properties": { "name": { "type": "string", "example": "@" }, "type": { "type": "string", "example": "MX" }, "value": { "type": "string", "example": "mx1.example.com" } }, "type": "object" } }, "is_valid": { "type": "boolean", "example": true } }, "type": "object" }, "Reach.V1.Profiles.Domains.DnsStatusResource": { "properties": { "domain": { "type": "string", "example": "example.com" }, "mx": { "$ref": "#/components/schemas/Reach.V1.Profiles.Domains.DnsRecordStatus" }, "spf": { "$ref": "#/components/schemas/Reach.V1.Profiles.Domains.DnsRecordStatus" }, "dkim": { "$ref": "#/components/schemas/Reach.V1.Profiles.Domains.DnsRecordStatus" }, "dmarc": { "$ref": "#/components/schemas/Reach.V1.Profiles.Domains.DnsRecordStatus" } }, "type": "object" }, "Reach.V1.Profiles.ProfileCollection": { "description": "Array of [`Reach.V1.Profiles.ProfileResource`](#model/reachv1profilesprofileresource)", "type": "array", "items": { "$ref": "#/components/schemas/Reach.V1.Profiles.ProfileResource" } }, "Reach.V1.Profiles.ProfileResource": { "properties": { "limits": { "properties": { "ai_messages_limit": { "type": "integer", "example": 10 }, "subscribers_limit": { "type": "integer", "example": 500 }, "emails_monthly_limit": { "type": "integer", "example": 3500 }, "ai_messages_additional": { "type": "integer", "example": 1096 } }, "type": "object" }, "is_trial": { "type": "boolean", "example": false }, "expires_at": { "type": "string", "format": "date-time", "example": "2027-10-21T05:38:23.000000Z" }, "resource_id": { "type": "integer", "example": 44340307 }, "status": { "type": "string", "example": "active" }, "profiles": { "type": "array", "items": { "properties": { "uuid": { "type": "string", "example": "550e8400-e29b-41d4-a716-446655440000" }, "domain": { "type": "string", "example": "example.com" }, "created_at": { "type": "string", "format": "date-time", "example": "2026-01-21T07:35:04.000000Z" }, "updated_at": { "type": "string", "format": "date-time", "example": "2026-01-21T07:35:04.000000Z" } }, "type": "object" } } }, "type": "object" }, "VPS.V1.Action.ActionCollection": { "description": "Array of [`VPS.V1.Action.ActionResource`](#model/vpsv1actionactionresource)", "type": "array", "items": { "$ref": "#/components/schemas/VPS.V1.Action.ActionResource" } }, "VPS.V1.Action.ActionResource": { "properties": { "id": { "description": "Action ID", "type": "integer", "example": 8123712 }, "name": { "description": "Action name", "type": "string", "example": "action_name" }, "state": { "description": "Action state", "type": "string", "enum": [ "success", "error", "delayed", "sent", "created" ], "example": "success", "x-enum-descriptions": { "success": "Action was successful", "error": "Action failed", "delayed": "Action is delayed", "sent": "Action was sent", "created": "Action was created" } }, "created_at": { "type": "string", "format": "date-time", "example": "2025-02-27T11:54:00Z" }, "updated_at": { "type": "string", "format": "date-time", "example": "2025-02-27T11:58:00Z" } }, "type": "object" }, "VPS.V1.Backup.BackupCollection": { "description": "Array of [`VPS.V1.Backup.BackupResource`](#model/vpsv1backupbackupresource)", "type": "array", "items": { "$ref": "#/components/schemas/VPS.V1.Backup.BackupResource" } }, "VPS.V1.Backup.BackupResource": { "properties": { "id": { "description": "Backup ID", "type": "integer", "example": 325 }, "size": { "description": "Backup size in kilobytes", "type": "integer", "example": 15240192 }, "restore_time": { "description": "Estimated backup restore time in seconds", "type": "integer", "example": 3600 }, "location": { "description": "Location of the backup", "type": "string", "example": "nl-srv-nodebackups" }, "created_at": { "type": "string", "format": "date-time", "example": "2025-02-27T11:54:22Z" } }, "type": "object" }, "VPS.V1.DataCenter.DataCenterCollection": { "description": "Array of [`VPS.V1.DataCenter.DataCenterResource`](#model/vpsv1datacenterdatacenterresource)", "type": "array", "items": { "$ref": "#/components/schemas/VPS.V1.DataCenter.DataCenterResource" } }, "VPS.V1.DataCenter.DataCenterResource": { "properties": { "id": { "description": "Data center ID", "type": "integer", "example": 29 }, "name": { "description": "Data center name", "type": "string", "example": "phx", "nullable": true }, "location": { "description": "Data center location country (two letter code)", "type": "string", "example": "us", "nullable": true }, "city": { "description": "Data center location city", "type": "string", "example": "Phoenix", "nullable": true }, "continent": { "description": "Data center location continent", "type": "string", "example": "North America", "nullable": true } }, "type": "object" }, "VPS.V1.DockerManager.ContainerCollection": { "description": "Array of [`VPS.V1.DockerManager.ContainerResource`](#model/vpsv1dockermanagercontainerresource)", "type": "array", "items": { "$ref": "#/components/schemas/VPS.V1.DockerManager.ContainerResource" } }, "VPS.V1.DockerManager.ContainerPortCollection": { "description": "Array of [`VPS.V1.DockerManager.ContainerPortResource`](#model/vpsv1dockermanagercontainerportresource)", "type": "array", "items": { "$ref": "#/components/schemas/VPS.V1.DockerManager.ContainerPortResource" } }, "VPS.V1.DockerManager.ContainerPortResource": { "properties": { "type": { "description": "Port mapping type - published (accessible from host), exposed (only internal), or range variants", "type": "string", "enum": [ "published", "published_range", "exposed", "exposed_range" ], "example": "published", "x-enum-descriptions": { "published": "\n A single port mapped from the host to the container (e.g., host:8080 -> container:80)\n ", "published_range": "\n A range of ports mapped from the host to the container\n (e.g., host:8000-8010 -> container:3000-3010)\n ", "exposed": "\n A single port made available for inter-container communication within Docker networks\n ", "exposed_range": "\n A range of ports made available for inter-container communication within Docker networks\n " } }, "protocol": { "description": "Network protocol used for communication", "type": "string", "enum": [ "tcp", "udp" ], "example": "tcp" }, "host_ip": { "description": "IP address on host where port is bound (null for exposed-only ports)", "type": "string", "example": "0.0.0.0", "nullable": true }, "host_port": { "description": "Port number on host machine (null for exposed-only or range ports)", "type": "integer", "example": 8080, "nullable": true }, "container_port": { "description": "Port number inside container (null for range ports)", "type": "integer", "example": 80, "nullable": true }, "host_port_start": { "description": "Starting port number in host port range (null for single ports)", "type": "integer", "nullable": true }, "host_port_end": { "description": "Ending port number in host port range (null for single ports)", "type": "integer", "nullable": true }, "container_port_start": { "description": "Starting port number in container port range (null for single ports)", "type": "integer", "nullable": true }, "container_port_end": { "description": "Ending port number in container port range (null for single ports)", "type": "integer", "nullable": true } }, "type": "object" }, "VPS.V1.DockerManager.ContainerResource": { "properties": { "id": { "description": "Unique container identifier (short form of Docker container ID)", "type": "string", "example": "bbd4c89e850d" }, "name": { "description": "Container name as defined in docker-compose or assigned by Docker", "type": "string", "example": "nginx" }, "image": { "description": "Docker image name and tag used to create this container", "type": "string", "example": "nginx:latest" }, "command": { "description": "Command being executed inside the container (may be truncated with ...)", "type": "string", "example": "/docker-entrypoint.sh nginx -g daemon off;" }, "status": { "description": "Human-readable container status including uptime, exit codes, or error information", "type": "string", "example": "Up 4 hours" }, "state": { "description": "Programmatic container lifecycle state for automated processing", "type": "string", "enum": [ "created", "running", "restarting", "exited", "paused", "dead", "stopping" ], "example": "running", "x-enum-descriptions": { "created": "Container has been created but never started", "running": "Container is actively running and performing its tasks", "restarting": "Container is in the process of being restarted", "exited": "Container ran and completed/stopped", "paused": "\n Container's processes have been paused, but container is still allocated\n ", "dead": "\n Container that the daemon tried and failed to stop\n (usually due to the busy device or resource used by the container)\n ", "stopping": "Container is in the process of being stopped" } }, "health": { "description": "Container health status", "type": "string", "enum": [ "starting", "healthy", "unhealthy", "" ], "example": "healthy", "x-enum-descriptions": { "": "\n No health check is configured for the container\n (this is the default when no HEALTHCHECK is defined)\n ", "healthy": "\n The container has passed its health checks and is operating normally\n ", "unhealthy": "\n The container has failed its health checks (exceeded the failure threshold)\n ", "starting": "\n The container is still within its startup period (health checks are running but\n haven't passed the required number of consecutive checks yet)\n " } }, "ports": { "$ref": "#/components/schemas/VPS.V1.DockerManager.ContainerPortCollection" }, "stats": { "oneOf": [ { "$ref": "#/components/schemas/VPS.V1.DockerManager.ContainerStatsResource" } ], "nullable": true, "description": "Real-time resource usage statistics (only available for running containers)" } }, "type": "object" }, "VPS.V1.DockerManager.ContainerStatsResource": { "properties": { "cpu_percentage": { "description": "CPU usage in percentage", "type": "number", "format": "float", "example": 15.4 }, "memory_percentage": { "description": "Memory usage in percentage", "type": "number", "format": "float", "example": 0.4 }, "memory_used": { "description": "Used memory in bytes", "type": "number", "format": "float", "example": 66532147.2 }, "memory_total": { "description": "Total available memory in bytes", "type": "number", "format": "float", "example": 16771847290.88 }, "net_in": { "description": "Inbound network traffic in bytes", "type": "integer", "example": 2110000 }, "net_out": { "description": "Outbound network traffic in bytes", "type": "integer", "example": 30100 } }, "type": "object" }, "VPS.V1.DockerManager.ContentResource": { "properties": { "content": { "description": "Contents of docker-compose file", "type": "string", "example": "services:\n my-app:\n image: nginx\n ports:\n - \"80:80\"\n my-db:\n image: mysql" }, "environment": { "description": "Project environment variables", "type": "string", "example": "VARIABLE1=value1\nVARIABLE2=value2", "nullable": true } }, "type": "object" }, "VPS.V1.DockerManager.LogEntryCollection": { "description": "Array of [`VPS.V1.DockerManager.LogEntryResource`](#model/vpsv1dockermanagerlogentryresource)", "type": "array", "items": { "$ref": "#/components/schemas/VPS.V1.DockerManager.LogEntryResource" } }, "VPS.V1.DockerManager.LogEntryResource": { "properties": { "timestamp": { "description": "ISO 8601 formatted timestamp when the log entry was generated by the container", "type": "string", "example": "2024-01-15T10:30:45.123456Z" }, "line": { "description": "Raw log message content as output by the application inside the container", "type": "string", "example": "127.0.0.1 - - [15/Jan/2024:10:30:45 +0000] \"GET / HTTP/1.1\" 200 612" } }, "type": "object" }, "VPS.V1.DockerManager.LogsCollection": { "description": "Array of [`VPS.V1.DockerManager.LogsResource`](#model/vpsv1dockermanagerlogsresource)", "type": "array", "items": { "$ref": "#/components/schemas/VPS.V1.DockerManager.LogsResource" } }, "VPS.V1.DockerManager.LogsResource": { "properties": { "service": { "description": "Name of the Docker Compose service that generated these log entries", "type": "string", "example": "web" }, "entries": { "$ref": "#/components/schemas/VPS.V1.DockerManager.LogEntryCollection" } }, "type": "object" }, "VPS.V1.DockerManager.ProjectCollection": { "description": "Array of [`VPS.V1.DockerManager.ProjectResource`](#model/vpsv1dockermanagerprojectresource)", "type": "array", "items": { "$ref": "#/components/schemas/VPS.V1.DockerManager.ProjectResource" } }, "VPS.V1.DockerManager.ProjectResource": { "properties": { "name": { "description": "Docker Compose project name (derived from directory name or compose file)", "type": "string", "example": "my-project" }, "status": { "description": "Raw output from docker compose ps command showing service count and states", "type": "string", "example": "running(2)" }, "state": { "description": "Derived project state parsed from the raw docker compose status", "type": "string", "enum": [ "running", "stopped", "created", "mixed", "unknown" ], "example": "running", "x-enum-descriptions": { "running": "Project is running and all services are healthy", "stopped": "Project is not running and all services are stopped", "created": "Project is created and not built yet, services are not running", "mixed": "Project is running with some services not healthy or not running", "unknown": "Could not determine the state of the project" } }, "path": { "description": "Full filesystem path to the docker-compose.yml file", "type": "string", "example": "/docker/my-project/docker-compose.yaml" }, "containers": { "$ref": "#/components/schemas/VPS.V1.DockerManager.ContainerCollection" } }, "type": "object" }, "VPS.V1.Firewall.FirewallCollection": { "description": "Array of [`VPS.V1.Firewall.FirewallResource`](#model/vpsv1firewallfirewallresource)", "type": "array", "items": { "$ref": "#/components/schemas/VPS.V1.Firewall.FirewallResource" } }, "VPS.V1.Firewall.FirewallResource": { "properties": { "id": { "description": "Firewall ID", "type": "integer", "example": 65224 }, "name": { "description": "Firewall name", "type": "string", "example": "HTTP and SSH only" }, "is_synced": { "description": "Is current firewall synced with VPS", "type": "boolean", "example": false }, "rules": { "$ref": "#/components/schemas/VPS.V1.Firewall.FirewallRuleCollection" }, "created_at": { "type": "string", "format": "date-time", "example": "2021-09-01T12:00:00Z" }, "updated_at": { "type": "string", "format": "date-time", "example": "2021-09-01T12:00:00Z" } }, "type": "object" }, "VPS.V1.Firewall.FirewallRuleCollection": { "description": "Array of [`VPS.V1.Firewall.FirewallRuleResource`](#model/vpsv1firewallfirewallruleresource)", "type": "array", "items": { "$ref": "#/components/schemas/VPS.V1.Firewall.FirewallRuleResource" } }, "VPS.V1.Firewall.FirewallRuleResource": { "properties": { "id": { "description": "Firewall rule ID", "type": "integer", "example": 24541 }, "action": { "description": "Firewall rule action", "type": "string", "enum": [ "accept", "drop" ], "example": "accept" }, "protocol": { "description": "Firewall rule protocol", "type": "string", "enum": [ "TCP", "UDP", "ICMP", "GRE", "any", "ESP", "AH", "ICMPv6", "SSH", "HTTP", "HTTPS", "MySQL", "PostgreSQL" ], "example": "TCP" }, "port": { "description": "Firewall rule destination port: single or port range", "type": "string", "example": "1024:2048" }, "source": { "description": "Firewall rule source. Can be `any` or `custom`", "type": "string", "example": "any" }, "source_detail": { "description": "Firewall rule source detail. Can be `any` or IP address, CIDR or range", "type": "string", "example": "any" } }, "type": "object" }, "VPS.V1.IPAddress.IPAddressCollection": { "description": "Array of [`VPS.V1.IPAddress.IPAddressResource`](#model/vpsv1ipaddressipaddressresource)", "type": "array", "items": { "$ref": "#/components/schemas/VPS.V1.IPAddress.IPAddressResource" } }, "VPS.V1.IPAddress.IPAddressResource": { "properties": { "id": { "description": "IP address ID", "type": "integer", "example": 52347 }, "address": { "description": "IP address: IPv4 or IPv6", "type": "string", "example": "213.331.273.15" }, "ptr": { "description": "IP address PTR record", "type": "string", "example": "something.domain.tld", "nullable": true } }, "type": "object" }, "VPS.V1.Malware.MetricsResource": { "properties": { "records": { "description": "Records found during last scan", "type": "integer", "example": 1 }, "malicious": { "description": "Malicious files found during last scan", "type": "integer", "example": 2 }, "compromised": { "description": "Compromised files found during last scan", "type": "integer", "example": 3 }, "scanned_files": { "description": "Total number of files scanned during last scan", "type": "integer", "example": 193218 }, "scan_started_at": { "type": "string", "format": "date-time", "example": "2025-02-27T11:54:22Z" }, "scan_ended_at": { "type": "string", "format": "date-time", "example": "2025-03-27T11:54:22Z", "nullable": true } }, "type": "object" }, "VPS.V1.Metrics.MetricsCollection": { "properties": { "cpu_usage": { "oneOf": [ { "$ref": "#/components/schemas/VPS.V1.Metrics.MetricsResource" } ], "nullable": true, "description": "CPU usage in percentage, 0 - 100%", "type": "object", "example": { "unit": "%", "usage": { "1742269632": 1.45 } } }, "ram_usage": { "oneOf": [ { "$ref": "#/components/schemas/VPS.V1.Metrics.MetricsResource" } ], "nullable": true, "description": "RAM usage in bytes", "type": "object", "example": { "unit": "bytes", "usage": { "1742269632": 554176512 } } }, "disk_space": { "oneOf": [ { "$ref": "#/components/schemas/VPS.V1.Metrics.MetricsResource" } ], "nullable": true, "description": "Disk space usage in bytes", "type": "object", "example": { "unit": "bytes", "usage": { "1742269632": 2620018688 } } }, "outgoing_traffic": { "oneOf": [ { "$ref": "#/components/schemas/VPS.V1.Metrics.MetricsResource" } ], "nullable": true, "description": "Outgoing traffic in bytes", "type": "object", "example": { "unit": "bytes", "usage": { "1742269632": 784800 } } }, "incoming_traffic": { "oneOf": [ { "$ref": "#/components/schemas/VPS.V1.Metrics.MetricsResource" } ], "nullable": true, "description": "Incoming traffic in bytes", "type": "object", "example": { "unit": "bytes", "usage": { "1742269632": 8978400 } } }, "uptime": { "oneOf": [ { "$ref": "#/components/schemas/VPS.V1.Metrics.MetricsResource" } ], "nullable": true, "description": "Uptime in milliseconds", "type": "object", "example": { "unit": "milliseconds", "usage": { "1742269632": 455248 } } } }, "type": "object" }, "VPS.V1.Metrics.MetricsResource": { "properties": { "unit": { "description": "Measurement unit", "type": "string", "example": "measurement-unit" }, "usage": { "description": "Object, containing UNIX timestamps as a key and measurement as a value.", "type": "object", "example": { "timestamp": 123 } } }, "type": "object" }, "VPS.V1.PostInstallScript.PostInstallScriptCollection": { "description": "Array of [`VPS.V1.PostInstallScript.PostInstallScriptResource`](#model/vpsv1postinstallscriptpostinstallscriptresource)", "type": "array", "items": { "$ref": "#/components/schemas/VPS.V1.PostInstallScript.PostInstallScriptResource" } }, "VPS.V1.PostInstallScript.PostInstallScriptResource": { "properties": { "id": { "description": "Post-install script ID", "type": "integer", "example": 325 }, "name": { "description": "Name of the script", "type": "string", "example": "My Setup Script" }, "content": { "description": "Content of the script", "type": "string", "example": "#!/bin/bash\\napt-get update\\napt-get install -y nginx" }, "created_at": { "type": "string", "format": "date-time", "example": "2025-02-27T11:54:22Z" }, "updated_at": { "type": "string", "format": "date-time", "example": "2025-03-19T11:54:22Z" } }, "type": "object" }, "VPS.V1.PublicKey.PublicKeyCollection": { "description": "Array of [`VPS.V1.PublicKey.PublicKeyResource`](#model/vpsv1publickeypublickeyresource)", "type": "array", "items": { "$ref": "#/components/schemas/VPS.V1.PublicKey.PublicKeyResource" } }, "VPS.V1.PublicKey.PublicKeyResource": { "properties": { "id": { "description": "Public key ID", "type": "integer", "example": 325 }, "name": { "description": "Public key name", "type": "string", "example": "My public key" }, "key": { "description": "Public key content", "type": "string", "example": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQD..." } }, "type": "object" }, "VPS.V1.Snapshot.SnapshotResource": { "properties": { "id": { "description": "Snapshot ID", "type": "integer", "example": 325 }, "restore_time": { "description": "Estimated snapshot restore time in seconds", "type": "integer", "example": 1800 }, "created_at": { "type": "string", "format": "date-time", "example": "2025-02-27T11:54:22Z" }, "expires_at": { "type": "string", "format": "date-time", "example": "2025-03-19T11:54:22Z" } }, "type": "object" }, "VPS.V1.Template.TemplateCollection": { "description": "Array of [`VPS.V1.Template.TemplateResource`](#model/vpsv1templatetemplateresource)", "type": "array", "items": { "$ref": "#/components/schemas/VPS.V1.Template.TemplateResource" } }, "VPS.V1.Template.TemplateResource": { "properties": { "id": { "description": "Template ID", "type": "integer", "example": 6523 }, "name": { "description": "Template name", "type": "string", "example": "Ubuntu 20.04 LTS" }, "description": { "description": "Template description", "type": "string", "example": "Ubuntu 20.04 LTS" }, "documentation": { "description": "Link to official OS documentation", "type": "string", "example": "https://docs.ubuntu.com", "nullable": true } }, "type": "object" }, "VPS.V1.VirtualMachine.VirtualMachineCollection": { "description": "Array of [`VPS.V1.VirtualMachine.VirtualMachineResource`](#model/vpsv1virtualmachinevirtualmachineresource)", "type": "array", "items": { "$ref": "#/components/schemas/VPS.V1.VirtualMachine.VirtualMachineResource" } }, "VPS.V1.VirtualMachine.VirtualMachineResource": { "properties": { "id": { "description": "Virtual machine ID", "type": "integer", "example": 17923 }, "firewall_group_id": { "description": "Active firewall ID, `null` if disabled", "type": "integer", "example": null, "nullable": true }, "subscription_id": { "description": "Subscription ID", "type": "string", "example": "Azz353Uhl1xC54pR0", "nullable": true }, "data_center_id": { "description": "Data center ID", "type": "integer", "example": 521, "nullable": true }, "plan": { "description": "VPS plan name", "type": "string", "example": "KVM 4", "nullable": true }, "hostname": { "type": "string", "example": "srv17923.hstgr.cloud" }, "state": { "type": "string", "enum": [ "running", "starting", "stopping", "stopped", "creating", "initial", "error", "suspending", "unsuspending", "suspended", "destroying", "destroyed", "recreating", "restoring", "recovery", "stopping_recovery" ], "example": "running" }, "actions_lock": { "type": "string", "enum": [ "unlocked", "locked" ], "example": "unlocked" }, "cpus": { "description": "CPUs count assigned to virtual machine", "type": "integer", "example": 4 }, "memory": { "description": "Memory available to virtual machine (in megabytes)", "type": "integer", "example": 8192 }, "disk": { "description": "Virtual machine disk size (in megabytes)", "type": "integer", "example": 51200 }, "bandwidth": { "description": "Monthly internet traffic available to virtual machine (in megabytes)", "type": "integer", "example": 1073741824 }, "ns1": { "description": "Primary DNS resolver", "type": "string", "example": "1.1.1.1", "nullable": true }, "ns2": { "description": "Secondary DNS resolver", "type": "string", "example": "8.8.8.8", "nullable": true }, "ipv4": { "oneOf": [ { "$ref": "#/components/schemas/VPS.V1.IPAddress.IPAddressCollection" } ], "nullable": true, "description": "IPv4 address of virtual machine" }, "ipv6": { "oneOf": [ { "$ref": "#/components/schemas/VPS.V1.IPAddress.IPAddressCollection" } ], "nullable": true, "description": "IPv6 address of virtual machine, `null` if not assigned" }, "template": { "oneOf": [ { "$ref": "#/components/schemas/VPS.V1.Template.TemplateResource" } ], "nullable": true, "description": "OS template installed in virtual machine" }, "created_at": { "type": "string", "format": "date-time", "example": "2024-09-05T07:25:36.00000Z" } }, "type": "object" }, "WordPress.V1.Common.VulnerabilityResource": { "properties": { "title": { "description": "Short title of the vulnerability", "type": "string", "example": "Cross-Site Scripting (XSS)" }, "description": { "description": "Details about the vulnerability", "type": "string", "example": "A stored XSS vulnerability affecting older versions." }, "affected_in": { "description": "Version in which the vulnerability was introduced or is present", "type": "string", "example": "4.7.0" }, "fixed_in": { "description": "Version in which the vulnerability was fixed", "type": "string", "example": "4.7.1" }, "direct_url": { "description": "Link to the vulnerability advisory", "type": "string", "example": "https://www.wordfence.com/threat-intel/vulnerabilities/id/example" } }, "type": "object" }, "WordPress.V1.Installations.WordPressInstallationCollection": { "description": "Array of [`WordPress.V1.Installations.WordPressInstallationResource`](#model/wordpressv1installationswordpressinstallationresource)", "type": "array", "items": { "$ref": "#/components/schemas/WordPress.V1.Installations.WordPressInstallationResource" } }, "WordPress.V1.Installations.WordPressInstallationResource": { "properties": { "id": { "description": "WordPress installation (software) id", "type": "string", "example": "123" }, "username": { "description": "Hosting account username", "type": "string", "example": "u123456789" }, "domain": { "description": "Domain the installation belongs to", "type": "string", "example": "example.com" }, "site_title": { "description": "WordPress site title", "type": "string", "example": "My site" }, "url": { "description": "WordPress site URL", "type": "string", "example": "https://example.com" }, "directory": { "description": "Installation directory", "type": "string", "example": "public_html" }, "language": { "description": "WordPress locale", "type": "string", "example": "en_US" }, "login": { "description": "WordPress admin username", "type": "string", "example": "admin" }, "email": { "description": "WordPress admin email", "type": "string", "example": "owner@example.com" }, "is_valid": { "description": "Whether the installation is considered valid", "type": "boolean", "example": true }, "validation_error": { "description": "Reason the installation is invalid, if any", "type": "string", "example": "Invalid domain", "nullable": true }, "created_at": { "description": "Installation creation timestamp", "type": "string", "format": "date-time", "example": "2022-01-01T00:00:00Z" } }, "type": "object" }, "WordPress.V1.Plugins.AvailablePluginCollection": { "description": "Array of [`WordPress.V1.Plugins.AvailablePluginResource`](#model/wordpressv1pluginsavailablepluginresource)", "type": "array", "items": { "$ref": "#/components/schemas/WordPress.V1.Plugins.AvailablePluginResource" } }, "WordPress.V1.Plugins.AvailablePluginResource": { "properties": { "slug": { "description": "Plugin slug used when installing the plugin", "type": "string", "example": "akismet" }, "title": { "description": "Human readable plugin name", "type": "string", "example": "Akismet Anti-Spam" }, "description": { "description": "Short plugin description", "type": "string", "example": "Protect your site from spam." }, "onboarding_description_slug": { "description": "Translation slug for the onboarding description", "type": "string", "example": "akismet_onboarding_description", "nullable": true }, "recommended_description_slug": { "description": "Translation slug for the recommended description", "type": "string", "example": "akismet_recommended_description", "nullable": true }, "link": { "description": "Link to the plugin page on WordPress.org", "type": "string", "example": "https://wordpress.org/plugins/akismet/" }, "version": { "description": "Latest available plugin version", "type": "string", "example": "5.3" }, "required_wordpress_version": { "description": "Minimum WordPress version required by the plugin", "type": "string", "example": "5.8" }, "required_php_version": { "description": "Minimum PHP version required by the plugin", "type": "string", "example": "7.2" }, "is_plan_upgrade_needed": { "description": "Whether a hosting plan upgrade is required to use the plugin", "type": "boolean", "example": false } }, "type": "object" }, "WordPress.V1.Plugins.InstalledPluginCollection": { "description": "Array of [`WordPress.V1.Plugins.InstalledPluginResource`](#model/wordpressv1pluginsinstalledpluginresource)", "type": "array", "items": { "$ref": "#/components/schemas/WordPress.V1.Plugins.InstalledPluginResource" } }, "WordPress.V1.Plugins.InstalledPluginResource": { "properties": { "name": { "description": "Plugin slug", "type": "string", "example": "akismet" }, "title": { "description": "Human readable plugin name", "type": "string", "example": "Akismet Anti-Spam" }, "version": { "description": "Installed plugin version", "type": "string", "example": "5.3" }, "status": { "description": "Whether the plugin is active or inactive", "type": "string", "enum": [ "active", "inactive" ], "example": "active" }, "update": { "description": "Available update version, or \"none\" when up to date", "type": "string", "example": "none" }, "vulnerabilities": { "description": "Known vulnerabilities affecting the installed version", "type": "array", "items": { "$ref": "#/components/schemas/WordPress.V1.Common.VulnerabilityResource" } } }, "type": "object" }, "WordPress.V1.Plugins.PluginCollection": { "description": "Array of [`WordPress.V1.Plugins.PluginResource`](#model/wordpressv1pluginspluginresource)", "type": "array", "items": { "$ref": "#/components/schemas/WordPress.V1.Plugins.PluginResource" } }, "WordPress.V1.Plugins.PluginResource": { "properties": { "slug": { "description": "Plugin slug used when installing the plugin", "type": "string", "example": "akismet" }, "title": { "description": "Human readable plugin name", "type": "string", "example": "Akismet Anti-Spam" }, "icons": { "description": "Plugin icon URLs keyed by resolution", "properties": { "1x": { "type": "string", "example": "https://ps.w.org/akismet/assets/icon-128x128.png" }, "2x": { "type": "string", "example": "https://ps.w.org/akismet/assets/icon-256x256.png" } }, "type": "object", "nullable": true }, "description": { "description": "Short plugin description", "type": "string", "example": "Used by millions, Akismet is quite possibly the best way to protect your site from spam." } }, "type": "object" }, "WordPress.V1.Plugins.SuggestedPluginGroupCollection": { "description": "Array of [`WordPress.V1.Plugins.SuggestedPluginGroupResource`](#model/wordpressv1pluginssuggestedplugingroupresource)", "type": "array", "items": { "$ref": "#/components/schemas/WordPress.V1.Plugins.SuggestedPluginGroupResource" } }, "WordPress.V1.Plugins.SuggestedPluginGroupResource": { "properties": { "website_type": { "description": "Website type the suggested plugins are grouped by", "type": "string", "enum": [ "business", "online-store", "blog", "portfolio", "affiliate-marketing", "other", "default" ], "example": "blog" }, "plugins": { "description": "Plugins suggested for the website type", "type": "array", "items": { "$ref": "#/components/schemas/WordPress.V1.Plugins.SuggestedPluginResource" } } }, "type": "object" }, "WordPress.V1.Plugins.SuggestedPluginResource": { "properties": { "slug": { "description": "Plugin slug used when installing the plugin", "type": "string", "example": "akismet" }, "title": { "description": "Human readable plugin name", "type": "string", "example": "Akismet Anti-Spam" }, "description": { "description": "Short plugin description", "type": "string", "example": "Protect your site from spam." }, "onboarding_description_slug": { "description": "Translation slug for the onboarding description", "type": "string", "example": "akismet_onboarding_description", "nullable": true }, "recommended_description_slug": { "description": "Translation slug for the recommended description", "type": "string", "example": "akismet_recommended_description", "nullable": true }, "link": { "description": "Link to the plugin page on WordPress.org", "type": "string", "example": "https://wordpress.org/plugins/akismet/" }, "version": { "description": "Latest available plugin version", "type": "string", "example": "5.3" }, "required_wordpress_version": { "description": "Minimum WordPress version required by the plugin", "type": "string", "example": "5.8" }, "required_php_version": { "description": "Minimum PHP version required by the plugin", "type": "string", "example": "7.2" }, "is_preselected": { "description": "Whether the plugin is preselected during onboarding", "type": "boolean", "example": true }, "is_plan_upgrade_needed": { "description": "Whether a hosting plan upgrade is required to use the plugin", "type": "boolean", "example": false } }, "type": "object" }, "WordPress.V1.Plugins.WoocommerceInstalledResource": { "properties": { "is_installed": { "description": "Whether WooCommerce is installed on any WordPress installation of the domain", "type": "boolean", "example": true } }, "type": "object" }, "WordPress.V1.Themes.InstalledThemeCollection": { "description": "Array of [`WordPress.V1.Themes.InstalledThemeResource`](#model/wordpressv1themesinstalledthemeresource)", "type": "array", "items": { "$ref": "#/components/schemas/WordPress.V1.Themes.InstalledThemeResource" } }, "WordPress.V1.Themes.InstalledThemeResource": { "properties": { "name": { "description": "Theme slug", "type": "string", "example": "twentytwentyone" }, "title": { "description": "Human readable theme name", "type": "string", "example": "Twenty Twenty-One" }, "version": { "description": "Installed theme version", "type": "string", "example": "2.2" }, "status": { "description": "Whether the theme is active or inactive", "type": "string", "enum": [ "active", "inactive" ], "example": "active" }, "update": { "description": "Available update version, or \"none\" when up to date", "type": "string", "example": "none" }, "vulnerabilities": { "description": "Known vulnerabilities affecting the installed version", "type": "array", "items": { "$ref": "#/components/schemas/WordPress.V1.Common.VulnerabilityResource" } } }, "type": "object" }, "WordPress.V1.Themes.ThemeCollection": { "description": "Array of [`WordPress.V1.Themes.ThemeResource`](#model/wordpressv1themesthemeresource)", "type": "array", "items": { "$ref": "#/components/schemas/WordPress.V1.Themes.ThemeResource" } }, "WordPress.V1.Themes.ThemeResource": { "properties": { "slug": { "description": "Theme slug used when installing the theme", "type": "string", "example": "twentytwentyone" }, "title": { "description": "Human readable theme name", "type": "string", "example": "Twenty Twenty-One" }, "url": { "description": "Link to the theme page on WordPress.org", "type": "string", "example": "https://wordpress.org/themes/twentytwentyone/" }, "featured_image_url": { "description": "URL of the theme preview thumbnail", "type": "string", "example": "https://ts.w.org/wp-content/themes/twentytwentyone/screenshot.png", "nullable": true }, "full_image_url": { "description": "URL of the full-size theme preview image", "type": "string", "example": "https://ts.w.org/wp-content/themes/twentytwentyone/screenshot.png", "nullable": true }, "description": { "description": "Short theme description", "type": "string", "example": "A blank canvas for your ideas.", "nullable": true }, "logo_url": { "description": "URL of the theme logo", "type": "string", "example": "https://ts.w.org/wp-content/themes/twentytwentyone/logo.png", "nullable": true }, "is_plan_upgrade_needed": { "description": "Whether a hosting plan upgrade is required to use the theme", "type": "boolean", "example": false } }, "type": "object" } }, "responses": { "Common.Response.ErrorResponse": { "description": "Error response", "content": { "application/json": { "schema": { "properties": { "message": { "description": "Message of the error", "type": "string", "example": "Error message" }, "correlation_id": { "description": "Request correlation ID", "type": "string", "example": "26a91bd9-f8c8-4a83-9df9-83e23d696fe3" } }, "type": "object" } } }, "x-scalar-ignore": true }, "Common.Response.UnauthorizedResponse": { "description": "Unauthenticated response", "content": { "application/json": { "schema": { "properties": { "message": { "description": "Message of the error", "type": "string", "example": "Unauthenticated" }, "correlation_id": { "description": "Request correlation ID", "type": "string", "example": "26a91bd9-f8c8-4a83-9df9-83e23d696fe3" } }, "type": "object" } } }, "x-scalar-ignore": true }, "Common.Response.UnprocessableContentResponse": { "description": "Validation error response", "content": { "application/json": { "schema": { "properties": { "message": { "description": "Validation error message", "type": "string", "example": "The name field is required. (and 1 more error)" }, "errors": { "description": "Object of detailed errors for each field", "properties": { "field_1": { "type": "array", "items": {}, "example": [ "The field_1 field is required.", "The field_1 must be a number." ] }, "field_2": { "type": "array", "items": {}, "example": [ "The field_2 field is required.", "The field_2 must be a string." ] } }, "type": "object" }, "correlation_id": { "description": "Request correlation ID", "type": "string", "example": "26a91bd9-f8c8-4a83-9df9-83e23d696fe3" } }, "type": "object" } } }, "x-scalar-ignore": true } }, "parameters": { "category": { "name": "category", "in": "query", "description": "Filter catalog items by category", "schema": { "type": "string", "enum": [ "DOMAIN", "VPS" ], "example": "VPS" } }, "name": { "name": "name", "in": "query", "description": "Filter catalog items by name. Use `*` for wildcard search, e.g. `.COM*` to find .com domain", "schema": { "type": "string", "example": ".COM*" } }, "paymentMethodId": { "name": "paymentMethodId", "in": "path", "description": "Payment method ID", "required": true, "schema": { "type": "integer", "example": 9693613 } }, "subscriptionId": { "name": "subscriptionId", "in": "path", "description": "Subscription ID", "required": true, "schema": { "type": "string", "example": "Cxy353Uhl1xC54pG6" } }, "domain": { "name": "domain", "in": "path", "description": "Domain name", "required": true, "schema": { "type": "string", "example": "mydomain.tld" } }, "page": { "name": "page", "in": "query", "description": "Page number", "required": false, "schema": { "type": "integer", "example": 1 } }, "per_page": { "name": "per_page", "in": "query", "description": "Number of items per page", "required": false, "schema": { "type": "integer", "default": 25, "maximum": 100, "example": 25 } }, "snapshotId": { "name": "snapshotId", "in": "path", "description": "Snapshot ID", "required": true, "schema": { "type": "integer", "example": 53513053 } }, "tld": { "name": "tld", "in": "query", "description": "Filter by TLD (without leading dot)", "schema": { "type": "string", "example": "com" } }, "whoisId": { "name": "whoisId", "in": "path", "description": "WHOIS ID", "required": true, "schema": { "type": "integer", "example": 564651 } }, "website_id_path": { "name": "websiteId", "in": "path", "description": "The website ID", "required": true, "schema": { "type": "string", "example": "123e4567-e89b-12d3-a456-426614174000" } }, "build_uuid_path": { "name": "uuid", "in": "path", "description": "Build UUID", "required": true, "schema": { "type": "string", "format": "uuid", "example": "123e4567-e89b-12d3-a456-426614174000" } }, "cron_job_uid_path": { "name": "uid", "in": "path", "description": "Unique identifier of the cron job as returned by the list cron jobs endpoint.", "required": true, "schema": { "type": "string", "example": "cron_abc123" } }, "database_is_assigned": { "name": "is_assigned", "in": "query", "description": "When used with domain, return only databases assigned to that domain.", "required": false, "schema": { "type": "boolean", "example": true, "nullable": true } }, "database_name_path": { "name": "name", "in": "path", "description": "Full database name as returned by the list databases endpoint.", "required": true, "schema": { "type": "string", "example": "u123456789_test_db" } }, "database_search": { "name": "search", "in": "query", "description": "Search databases by name, user, or creation date.", "required": false, "schema": { "type": "string", "maxLength": 512, "example": "test_db", "nullable": true } }, "directory": { "name": "directory", "in": "query", "description": "Directory path to check", "required": false, "schema": { "type": "string", "default": "", "example": "blog" } }, "domain_filter": { "name": "domain", "in": "query", "description": "Filter by domain name (exact match)", "required": false, "schema": { "type": "string", "example": "example.com", "nullable": true } }, "is_enabled": { "name": "is_enabled", "in": "query", "description": "Filter by enabled status", "required": false, "schema": { "type": "boolean", "example": true, "nullable": true } }, "order_id": { "name": "order_id", "in": "query", "description": "Order ID", "required": false, "schema": { "type": "integer", "example": 123, "nullable": true } }, "order_ids": { "name": "order_ids", "in": "query", "description": "Filter by specific order IDs", "required": false, "schema": { "type": "array", "items": { "type": "integer" }, "example": [ 12345, 67890 ], "nullable": true } }, "statuses": { "name": "statuses", "in": "query", "description": "Filter by order statuses", "required": false, "schema": { "type": "array", "items": { "type": "string", "enum": [ "active", "deleting", "deleted", "suspended" ] }, "example": [ "active", "suspended" ], "nullable": true } }, "parked_domain_path": { "name": "parkedDomain", "in": "path", "required": true, "schema": { "type": "string", "example": "parked-domain.com" } }, "order_id_required": { "name": "order_id", "in": "query", "description": "Order ID", "required": true, "schema": { "type": "integer", "example": 123, "nullable": false } }, "subdomain_path": { "name": "subdomain", "in": "path", "required": true, "schema": { "type": "string", "example": "blog" } }, "username": { "name": "username", "in": "query", "description": "Filter by specific username", "required": false, "schema": { "type": "string", "example": "cl_user123", "nullable": true } }, "username_path": { "name": "username", "in": "path", "required": true, "schema": { "type": "string", "example": "u123456789" } }, "uuid": { "name": "uuid", "in": "path", "description": "UUID of the contact to delete", "required": true, "schema": { "type": "string", "format": "uuid" } }, "group_uuid": { "name": "group_uuid", "in": "query", "description": "Filter contacts by group UUID", "required": false, "schema": { "type": "string", "example": "550e8400-e29b-41d4-a716-446655440000" } }, "profileUuid": { "name": "profileUuid", "in": "path", "description": "Profile uuid parameter", "required": true, "schema": { "type": "string", "example": "550e8400-e09b-41d4-a716-400055000000" } }, "segmentUuid": { "name": "segmentUuid", "in": "path", "description": "Segment uuid parameter", "required": true, "schema": { "type": "string", "example": "550e8400-e09b-41d4-a716-400055000000" } }, "subscription_status": { "name": "subscription_status", "in": "query", "description": "Filter contacts by subscription status", "required": false, "schema": { "type": "string", "enum": [ "subscribed", "unsubscribed" ], "example": "subscribed" } }, "tokenId": { "name": "tokenId", "in": "path", "description": "Token ID", "required": true, "schema": { "type": "integer", "example": 6409747 } }, "actionId": { "name": "actionId", "in": "path", "description": "Action ID", "required": true, "schema": { "type": "integer", "example": 8123712 } }, "backupId": { "name": "backupId", "in": "path", "description": "Backup ID", "required": true, "schema": { "type": "integer", "example": 8676502 } }, "projectName": { "name": "projectName", "in": "path", "description": "Docker Compose project name using alphanumeric characters, dashes, and underscores only", "required": true, "schema": { "type": "string", "maxLength": 64, "minLength": 3, "example": "my-docker-project" } }, "firewallId": { "name": "firewallId", "in": "path", "description": "Firewall ID", "required": true, "schema": { "type": "integer", "example": 9449049 } }, "ruleId": { "name": "ruleId", "in": "path", "description": "Firewall Rule ID", "required": true, "schema": { "type": "integer", "example": 8941182 } }, "ipAddressId": { "name": "ipAddressId", "in": "path", "description": "IP Address ID", "required": true, "schema": { "type": "integer", "example": 246547 } }, "postInstallScriptId": { "name": "postInstallScriptId", "in": "path", "description": "Post-install script ID", "required": true, "schema": { "type": "integer", "example": 9568314 } }, "publicKeyId": { "name": "publicKeyId", "in": "path", "description": "Public Key ID", "required": true, "schema": { "type": "integer", "example": 6672861 } }, "templateId": { "name": "templateId", "in": "path", "description": "Template ID", "required": true, "schema": { "type": "integer", "example": 2868928 } }, "virtualMachineId": { "name": "virtualMachineId", "in": "path", "description": "Virtual Machine ID", "required": true, "schema": { "type": "integer", "example": 1268054 } }, "software_path": { "name": "software", "in": "path", "description": "WordPress installation (software) identifier", "required": true, "schema": { "type": "string", "pattern": "^[0-9]+$", "example": "1232456789" } } }, "securitySchemes": { "apiToken": { "type": "http", "description": "API Token authentication", "scheme": "bearer" } } }, "security": [ { "apiToken": [] } ], "tags": [ { "name": "Billing: Catalog", "description": "Access a comprehensive catalog of service plans and\nsubscription options, complete with detailed pricing\nand features.", "x-displayName": "Catalog" }, { "name": "Billing: Payment methods", "description": "Review and manage the payment methods linked to your\nHostinger account. Enjoy a secure and convenient overview\nfor handling billing and transactions.", "x-displayName": "Payment methods" }, { "name": "Billing: Subscriptions", "description": "Manage your account's subscriptions by retrieving lists of\nactive and expired plans along with details such as\nactivation and expiration dates.", "x-displayName": "Subscriptions" }, { "name": "DNS: Snapshot", "description": "Manage DNS snapshots for your domains.\nThis category includes endpoints for viewing and restoring\nsnapshots of your domain DNS zone.\nSnapshot is a point-in-time copy of your DNS zone, allowing you\nto restore your domain's DNS settings to a previous state.", "x-displayName": "Snapshot" }, { "name": "DNS: Zone", "description": "Manage DNS zones and records for your domains. This category\nincludes endpoints for retrieving, updating, deleting DNS zone\nand it's associated records.\nThe DNS zone will be created once you purchase new domain\nat Hostinger.", "x-displayName": "Zone" }, { "name": "Domain Access Verifier: Verifications", "description": "Manage domain verifications.\nThis category includes endpoints for retrieving active domain\nverifications, including verification status, records, and\nattempt dates.\nDomain verification allows you to prove ownership of domains\nthrough nameserver or TXT record verification methods.", "x-displayName": "Verifications" }, { "name": "Domains: Availability", "description": "Check the availability of domain names across multiple TLDs.\nThis category allows you to verify if a specific domain name\nis available for registration.", "x-displayName": "Availability" }, { "name": "Domains: Forwarding", "description": "Domain forwarding or redirect is an easy way to direct your\nwebsite visitors to another site or page, making it simple to\nmaintain your brand and keep your visitors engaged.", "x-displayName": "Forwarding" }, { "name": "Domains: Portfolio", "description": "Retrieve and manage your domain portfolio. This category lets\nyou list all domains linked to your account, including their\ncreation and expiration details.", "x-displayName": "Portfolio" }, { "name": "Domains: WHOIS", "description": "Manage WHOIS contact profiles for your domains. This category\nincludes endpoints for creating, updating, deleting, and\nretrieving WHOIS profiles.\nWHOIS profile stores registration data for domain names and\nis required for domain registration.", "x-displayName": "WHOIS" }, { "name": "Ecommerce: Miscellaneous", "description": "Ecommerce: Miscellaneous", "x-displayName": "Miscellaneous" }, { "name": "Ecommerce: Payments", "description": "Manage payment methods for your online store. This category\nincludes endpoints for enabling payment options such as manual\n(cash on delivery) payment at checkout.", "x-displayName": "Payments" }, { "name": "Ecommerce: Products", "description": "Manage products in your online store. This category includes\nendpoints for creating physical and digital products with\npricing and optional descriptions.", "x-displayName": "Products" }, { "name": "Ecommerce: Sales channels", "description": "Ecommerce: Sales channels", "x-displayName": "Sales channels" }, { "name": "Ecommerce: Shipping", "description": "Configure shipping options for your online store. This\ncategory includes endpoints for setting the flat-rate\nshipping price applied to customer orders.", "x-displayName": "Shipping" }, { "name": "Ecommerce: Stores", "description": "Manage your online stores. This category includes endpoints\nfor listing and creating stores associated with your account,\nand deleting stores you no longer need.", "x-displayName": "Stores" }, { "name": "Horizons: Websites", "description": "Create and access Hostinger Horizons websites. This category\nincludes endpoints for creating new AI-generated websites from\na text prompt and retrieving links to edit existing websites\nin the Hostinger Horizons interface.", "x-displayName": "Websites" }, { "name": "Hosting: Cron Jobs", "description": "Hosting: Cron Jobs", "x-displayName": "Cron Jobs" }, { "name": "Hosting: Databases", "description": "Hosting: Databases", "x-displayName": "Databases" }, { "name": "Hosting: Datacenters", "description": "Access information about available datacenters for hosting\nservices. This category provides details about data center\nlocations and capabilities to help you choose the optimal\nregion for your hosting needs.", "x-displayName": "Datacenters" }, { "name": "Hosting: Domains", "description": "Manage domain-related hosting services and configurations.\nThis category includes endpoints for domain management,\nverification, and domain-specific hosting features.", "x-displayName": "Domains" }, { "name": "Hosting: Files", "description": "Hosting: Files", "x-displayName": "Files" }, { "name": "Hosting: NodeJS", "description": "Hosting: NodeJS", "x-displayName": "NodeJS" }, { "name": "Hosting: Orders", "description": "Manage hosting service orders and subscriptions. This\ncategory provides access to order information, status\ntracking, and order management capabilities for hosting\nservices.", "x-displayName": "Orders" }, { "name": "Hosting: PHP", "description": "Hosting: PHP", "x-displayName": "PHP" }, { "name": "Hosting: Websites", "description": "Manage hosted websites and web applications. This category\nincludes endpoints for website deployment, configuration,\nmonitoring, and management of hosting resources.", "x-displayName": "Websites" }, { "name": "Reach: Contacts", "description": "Manage your email contacts and contact groups. This category\nincludes endpoints for creating, deleting, and listing\ncontacts, as well as managing contact groups.", "x-displayName": "Contacts" }, { "name": "Reach: Segments", "description": "Filter and segment your email contacts using various\ncriteria. This category includes endpoints for filtering\ncontacts by attributes, tags, and email addresses, as well\nas listing all available segments and retrieving contacts\nthat match specific attribute conditions.", "x-displayName": "Segments" }, { "name": "Reach: Profiles", "description": "Reach: Profiles", "x-displayName": "Profiles" }, { "name": "VPS: Data centers", "description": "Access information on available data centers, including\nlocation details, so you can choose the optimal region for\ndeploying your virtual machines.", "x-displayName": "Data centers" }, { "name": "VPS: Docker Manager", "description": "Manage Docker Compose projects directly on your VPS\ninstances. This feature is only available for VPS instances\nusing Docker OS templates and is currently experimental -\nbreaking changes may occur in future updates.\nIt enables you to programmatically deploy projects from\ndocker-compose.yml files by providing either a URL (including\nGitHub repositories) or the compose file contents directly.\nControl project lifecycle (start/stop/restart/update/delete)\nand retrieve runtime information including container lists,\nproject details, and aggregated logs.\nAll operations are scoped to a specific virtual machine for\nmulti-tenant management.", "x-displayName": "Docker Manager" }, { "name": "VPS: Firewall", "description": "Enhance network security with endpoints for creating,\nactivating, deactivating, syncing, updating, and deleting\nfirewalls and firewall rules for your virtual machines.\nThis firewall applies rules at the network level, so it will\ntake precedence over the virtual machine's internal firewall.\n\n**Access to firewall requires having at least one virtual machine.**", "x-displayName": "Firewall" }, { "name": "VPS: Post-install scripts", "description": "This category allows you to create, update, delete, and\nretrieve scripts that can be used for automated tasks after\nthe operating system installation. Use case includes setting\nup software, configuring settings, or running custom commands.", "x-displayName": "Post-install scripts" }, { "name": "VPS: Public Keys", "description": "Manage SSH keys for secure access. This category covers\nadding new public keys, attaching them to virtual machines,\nretrieving key lists, and deleting keys.", "x-displayName": "Public Keys" }, { "name": "VPS: OS Templates", "description": "Retrieve details of operating system templates or list all\navailable templates to choose the right configuration when\ndeploying or recreating virtual machines.", "x-displayName": "OS Templates" }, { "name": "VPS: Actions", "description": "Track and review operations performed on your virtual\nmachines. These endpoints provide details about specific\nactions—such as start, stop, or restart—including\ntimestamps and statuses.", "x-displayName": "Actions" }, { "name": "VPS: Virtual machine", "description": "Core virtual machine management functionality. Endpoints in\nthis category let you retrieve machine details, configure\nsettings (hostname, nameservers, passwords), and perform\noperations like start, stop, restart, or recreate.", "x-displayName": "Virtual machine" }, { "name": "VPS: Backups", "description": "Safeguard your data by managing backups. You can list\navailable backups or restore a virtual machine from a backup.", "x-displayName": "Backups" }, { "name": "VPS: Malware scanner", "description": "Monitor your virtual machines' security using the Monarx\nmalware scanner. Retrieve scan metrics or install/uninstall\nthe scanner to help protect against malware threats.", "x-displayName": "Malware scanner" }, { "name": "VPS: PTR records", "description": "Manage reverse DNS settings by creating or deleting PTR\nrecords for your virtual machines, ensuring that IP addresses\ncorrectly resolve to hostnames.", "x-displayName": "PTR records" }, { "name": "VPS: Recovery", "description": "Initiate or stop recovery mode to perform system rescue\noperations. This category enables you to boot a virtual\nmachine into a state suitable for repairing file systems\nor recovering data.", "x-displayName": "Recovery" }, { "name": "VPS: Snapshots", "description": "Create, restore, or delete snapshots that capture the state\nof your virtual machines at a given point, allowing you to\nquickly recover or test changes without affecting current\noperations.", "x-displayName": "Snapshots" }, { "name": "WordPress: Installations", "description": "Manage WordPress installations on your hosting websites. This\ncategory includes endpoints for installing WordPress, listing\nexisting installations along with their validation status, and\nimporting a WordPress site from previously uploaded archive and\ndatabase files.", "x-displayName": "Installations" }, { "name": "WordPress: Plugins", "description": "Manage WordPress plugins on your installations. This category\nincludes endpoints for installing, activating, updating,\nlisting, and deleting plugins.", "x-displayName": "Plugins" }, { "name": "WordPress: Themes", "description": "Manage WordPress themes on your installations. This category\nincludes endpoints for installing, activating, updating,\nlisting, and deleting themes.", "x-displayName": "Themes" } ], "x-tagGroups": [ { "name": "Billing", "tags": [ "Billing: Catalog", "Billing: Payment methods", "Billing: Subscriptions" ] }, { "name": "Domains", "tags": [ "Domains: Availability", "Domains: Forwarding", "Domains: Portfolio", "Domains: WHOIS" ] }, { "name": "DNS", "tags": [ "DNS: Snapshot", "DNS: Zone" ] }, { "name": "Domain Access Verifier", "tags": [ "Domain Access Verifier: Verifications" ] }, { "name": "Hosting", "tags": [ "Hosting: Cron Jobs", "Hosting: Datacenters", "Hosting: Databases", "Hosting: Domains", "Hosting: Files", "Hosting: NodeJS", "Hosting: Orders", "Hosting: PHP", "Hosting: Websites" ] }, { "name": "WordPress", "tags": [ "WordPress: Installations", "WordPress: Plugins", "WordPress: Themes" ] }, { "name": "Horizons", "tags": [ "Horizons: Websites" ] }, { "name": "Reach", "tags": [ "Reach: Contacts", "Reach: Segments", "Reach: Profiles" ] }, { "name": "VPS", "tags": [ "VPS: Actions", "VPS: Backups", "VPS: Data centers", "VPS: Docker Manager", "VPS: PTR records", "VPS: Firewall", "VPS: Malware scanner", "VPS: OS Templates", "VPS: Post-install scripts", "VPS: Public Keys", "VPS: Recovery", "VPS: Snapshots", "VPS: Virtual machine" ] }, { "name": "Ecommerce", "tags": [ "Ecommerce: Stores", "Ecommerce: Sales channels", "Ecommerce: Products", "Ecommerce: Shipping", "Ecommerce: Payments", "Ecommerce: Miscellaneous" ] }, { "name": "Miscellaneous", "tags": [ "Models" ] } ] }