{
"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.\nYour IP address might get temporarily blocked if you exceed the rate limit multiple times.\n\nEvery response carries the\n[standard RateLimit headers](https://datatracker.ietf.org/doc/draft-ietf-httpapi-ratelimit-headers/)\nso you can throttle yourself without waiting for a 429:\n- `RateLimit-Policy: \"api\";q=90;w=60` - the quota (`q`) and its window in seconds (`w`).\n- `RateLimit: \"api\";r=89;t=60` - requests remaining (`r`) and seconds until the quota resets (`t`).\n- `Retry-After: 42` - on a 429 only, the seconds to wait before retrying.\n\nThe legacy `X-RateLimit-Limit`, `X-RateLimit-Remaining` and `X-RateLimit-Reset`\nheaders are still sent alongside them.\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": "[email protected]"
},
"version": "3.7.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/agency-hosting/v1/orders/{order_id}/datacenters": {
"get": {
"tags": [
"Agency Hosting: Datacenters"
],
"summary": "List available datacenters",
"description": "Lists the datacenters available for provisioning a new website on the given Agency Plan\nhosting order.\n\nEach datacenter includes a `pinger_url` you can ping from the client to measure round-trip\nlatency; comparing the results across datacenters lets you pick the nearest one (lowest\nping) before choosing its `code` as the `datacenter_code` when creating a website setup.",
"operationId": "agency-hosting_listAvailableDatacentersV1",
"parameters": [
{
"$ref": "#/components/parameters/order_id_path"
}
],
"responses": {
"200": {
"description": "Success response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AgencyHosting.V1.Datacenters.DatacenterCollection"
}
}
}
},
"401": {
"$ref": "#/components/responses/Common.Response.UnauthorizedResponse"
},
"500": {
"$ref": "#/components/responses/Common.Response.ErrorResponse"
}
}
}
},
"/api/agency-hosting/v1/websites/{website_uid}/domains/{from_domain}": {
"put": {
"tags": [
"Agency Hosting: Domains"
],
"summary": "Change website domain",
"description": "Changes the primary domain for an Agency Plan website.\n\nProvide the current domain in the path and the new domain in the request body.\nSet domain to null to revert to the temporary domain.",
"operationId": "agency-hosting_changeWebsiteDomainV1",
"parameters": [
{
"$ref": "#/components/parameters/website_uid"
},
{
"$ref": "#/components/parameters/from_domain"
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AgencyHosting.V1.Domains.ChangeDomainRequest"
}
}
}
},
"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/agency-hosting/v1/websites/{website_uid}/domains": {
"post": {
"tags": [
"Agency Hosting: Domains"
],
"summary": "Link domain to website",
"description": "Links a domain to the specified Agency Plan website so it can serve traffic for that domain.",
"operationId": "agency-hosting_linkDomainToWebsiteV1",
"parameters": [
{
"$ref": "#/components/parameters/website_uid"
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AgencyHosting.V1.Domains.LinkDomainRequest"
}
}
}
},
"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/agency-hosting/v1/domains": {
"get": {
"tags": [
"Agency Hosting: Domains"
],
"summary": "List domains",
"description": "Returns a paginated list of domains associated with Agency Plan websites accessible to the authenticated client.\n\nUse the website_uuids filter to narrow results to specific websites.",
"operationId": "agency-hosting_listDomainsV1",
"parameters": [
{
"$ref": "#/components/parameters/page"
},
{
"$ref": "#/components/parameters/per_page"
},
{
"$ref": "#/components/parameters/website_uuids"
}
],
"responses": {
"200": {
"description": "Success response",
"content": {
"application/json": {
"schema": {
"properties": {
"data": {
"$ref": "#/components/schemas/AgencyHosting.V1.Domains.DomainCollection"
},
"meta": {
"$ref": "#/components/schemas/Common.Schema.PaginationMetaSchema"
}
},
"type": "object"
}
}
}
},
"401": {
"$ref": "#/components/responses/Common.Response.UnauthorizedResponse"
},
"500": {
"$ref": "#/components/responses/Common.Response.ErrorResponse"
}
}
}
},
"/api/agency-hosting/v1/websites/{website_uid}/domains/{domain}": {
"delete": {
"tags": [
"Agency Hosting: Domains"
],
"summary": "Unlink domain from website",
"description": "Unlinks a domain from the specified Agency Plan website.\n\nThe website stops serving traffic on this domain immediately.\n\nWebsite files and database are preserved, and any other linked domains remain accessible.\n\nIf this is the only domain on the website, unlinking leaves the website without an accessible domain.",
"operationId": "agency-hosting_unlinkDomainFromWebsiteV1",
"parameters": [
{
"$ref": "#/components/parameters/website_uid"
},
{
"$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/agency-hosting/v1/websites/{website_uid}/files/upload-urls": {
"post": {
"tags": [
"Agency Hosting: Files"
],
"summary": "Generate upload URL",
"description": "Generate a file browser upload URL with authentication credentials for uploading files\nto an Agency Plan website's file storage.\n\nReturns `url`, `auth_key` and `rest_auth_key`. Use these to upload a file to the\nwebsite's file storage via the TUS resumable upload protocol (TUS 1.0.0). Send\n`X-Auth: {auth_key}` and `X-Auth-Rest: {rest_auth_key}` headers on every request below.\n\n1. Create the upload: `POST` to `{url}/{relative_file_path}?override=true` with headers\n `upload-length: {file size in bytes}` and `upload-offset: 0`. Expect `201 Created`.\n2. Upload the file: send the file bytes to the same location (any TUS 1.0.0 client, or\n `PATCH` requests with an `upload-offset` header tracking progress) until complete.\n\n`relative_file_path` is the destination path inside the website's file storage, e.g.\n`app.zip`.\n\nInstead of a TUS client, plain `curl` also works:\n```\nFILE=app.zip\nSIZE=$(stat -f%z \"$FILE\") # stat -c%s on Linux\n\ncurl -i -X POST \"{url}/${FILE}?override=true\" \\\n -H \"X-Auth: {auth_key}\" \\\n -H \"X-Auth-Rest: {rest_auth_key}\" \\\n -H \"Tus-Resumable: 1.0.0\" \\\n -H \"Upload-Length: ${SIZE}\" \\\n -H \"Upload-Offset: 0\"\n# -> 201 Created\n\ncurl -i -X PATCH \"{url}/${FILE}?override=true\" \\\n -H \"X-Auth: {auth_key}\" \\\n -H \"X-Auth-Rest: {rest_auth_key}\" \\\n -H \"Tus-Resumable: 1.0.0\" \\\n -H \"Content-Type: application/offset+octet-stream\" \\\n -H \"Upload-Offset: 0\" \\\n --data-binary \"@${FILE}\"\n# -> 204 No Content, Upload-Offset response header equals SIZE when done\n```",
"operationId": "agency-hosting_generateUploadURLV1",
"parameters": [
{
"$ref": "#/components/parameters/website_uid"
}
],
"responses": {
"200": {
"description": "Success response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AgencyHosting.V1.Files.UploadUrlResource"
}
}
}
},
"401": {
"$ref": "#/components/responses/Common.Response.UnauthorizedResponse"
},
"500": {
"$ref": "#/components/responses/Common.Response.ErrorResponse"
}
}
}
},
"/api/agency-hosting/v1/websites/{website_uid}/files/import-archive": {
"post": {
"tags": [
"Agency Hosting: Files"
],
"summary": "Import website from archive",
"description": "Imports an Agency Plan website from an already-uploaded archive.\n\nUpload the archive to the website's root directory via file browser first, then provide its\nfilename in this request. Website contents are overwritten by the archive contents. Supported\narchive types: .zip, .tar, .tar.gz, .tgz.",
"operationId": "agency-hosting_importWebsiteFromArchiveV1",
"parameters": [
{
"$ref": "#/components/parameters/website_uid"
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AgencyHosting.V1.Files.ImportArchiveRequest"
}
}
}
},
"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/agency-hosting/v1/orders/{order_id}/disk-usage-metrics": {
"get": {
"tags": [
"Agency Hosting: Metrics"
],
"summary": "List Agency Plan order disk usage metrics",
"description": "Returns aggregated disk and inode usage for the Agency Plan order over the\nselected time frame, plus the plan quotas. Figures cover the whole order\naccount. Values may be up to one hour stale. CPU, memory, and process usage\nare on the resource-usage-metrics endpoint.",
"operationId": "agency-hosting_listAgencyPlanOrderDiskUsageMetricsV1",
"parameters": [
{
"$ref": "#/components/parameters/order_id_path"
},
{
"$ref": "#/components/parameters/agency_time_frame_days"
}
],
"responses": {
"200": {
"description": "Success response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AgencyHosting.V1.Orders.DiskUsageMetrics.MetricsResource"
}
}
}
},
"422": {
"$ref": "#/components/responses/Common.Response.UnprocessableContentResponse"
},
"401": {
"$ref": "#/components/responses/Common.Response.UnauthorizedResponse"
},
"500": {
"$ref": "#/components/responses/Common.Response.ErrorResponse"
}
}
}
},
"/api/agency-hosting/v1/orders": {
"get": {
"tags": [
"Agency Hosting: Orders"
],
"summary": "List orders",
"description": "Returns a paginated list of Agency Plan orders accessible to the authenticated client.",
"operationId": "agency-hosting_listOrdersV1",
"parameters": [
{
"$ref": "#/components/parameters/page"
},
{
"$ref": "#/components/parameters/per_page"
}
],
"responses": {
"200": {
"description": "Success response",
"content": {
"application/json": {
"schema": {
"properties": {
"data": {
"$ref": "#/components/schemas/AgencyHosting.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/agency-hosting/v1/orders/{order_id}/resource-usage-metrics": {
"get": {
"tags": [
"Agency Hosting: Metrics"
],
"summary": "List order resource usage metrics",
"description": "Returns aggregated CPU, memory, and process usage for the Agency Plan order\nover the selected time frame, plus the plan quotas and a per-website\nbreakdown. Each website is identified by uid. Suspended and deleted websites\nare excluded from both the order totals and the per-website breakdown.\nValues may be up to one hour stale. Disk and inode usage are on the\ndisk-usage-metrics endpoint.",
"operationId": "agency-hosting_listOrderResourceUsageMetricsV1",
"parameters": [
{
"$ref": "#/components/parameters/order_id_path"
},
{
"$ref": "#/components/parameters/agency_time_frame_hours"
}
],
"responses": {
"200": {
"description": "Success response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AgencyHosting.V1.Orders.ResourceUsageMetrics.MetricsResource"
}
}
}
},
"422": {
"$ref": "#/components/responses/Common.Response.UnprocessableContentResponse"
},
"401": {
"$ref": "#/components/responses/Common.Response.UnauthorizedResponse"
},
"500": {
"$ref": "#/components/responses/Common.Response.ErrorResponse"
}
}
}
},
"/api/agency-hosting/v1/websites/{website_uid}/php-settings/extensions": {
"get": {
"tags": [
"Agency Hosting: PHP"
],
"summary": "List PHP extensions for a website",
"description": "Lists every PHP extension available to an Agency Plan website and whether it is currently enabled.",
"operationId": "agency-hosting_listPHPExtensionsForAWebsiteV1",
"parameters": [
{
"$ref": "#/components/parameters/website_uid"
}
],
"responses": {
"200": {
"description": "Success response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AgencyHosting.V1.Php.ExtensionCollection"
}
}
}
},
"401": {
"$ref": "#/components/responses/Common.Response.UnauthorizedResponse"
},
"500": {
"$ref": "#/components/responses/Common.Response.ErrorResponse"
}
}
},
"put": {
"tags": [
"Agency Hosting: PHP"
],
"summary": "Replace website PHP extensions",
"description": "Replaces the set of PHP extensions enabled on an Agency Plan website with the ones provided. Any toggleable extension not in the request is disabled, so call the extensions endpoint first and send the full desired set. Extensions compiled into PHP, reported with the \"built-in\" state, are always active and are unaffected.",
"operationId": "agency-hosting_replaceWebsitePHPExtensionsV1",
"parameters": [
{
"$ref": "#/components/parameters/website_uid"
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AgencyHosting.V1.Php.UpdateExtensionsRequest"
}
}
}
},
"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/agency-hosting/v1/websites/{website_uid}/php-settings/options": {
"get": {
"tags": [
"Agency Hosting: PHP"
],
"summary": "List PHP options for a website",
"description": "Lists the php.ini directives that can be configured for an Agency Plan website, each with its default, the value currently in effect, and the values it accepts.",
"operationId": "agency-hosting_listPHPOptionsForAWebsiteV1",
"parameters": [
{
"$ref": "#/components/parameters/website_uid"
}
],
"responses": {
"200": {
"description": "Success response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AgencyHosting.V1.Php.OptionCollection"
}
}
}
},
"401": {
"$ref": "#/components/responses/Common.Response.UnauthorizedResponse"
},
"500": {
"$ref": "#/components/responses/Common.Response.ErrorResponse"
}
}
},
"put": {
"tags": [
"Agency Hosting: PHP"
],
"summary": "Replace website PHP options",
"description": "Replaces the custom php.ini values on an Agency Plan website with the ones provided. Any option not in the request is reset to its default, so call the options endpoint first and send the full desired set. Sending an empty array resets every option to its default.",
"operationId": "agency-hosting_replaceWebsitePHPOptionsV1",
"parameters": [
{
"$ref": "#/components/parameters/website_uid"
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AgencyHosting.V1.Php.UpdateOptionsRequest"
}
}
}
},
"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/agency-hosting/v1/orders/{order_id}/websites/php-settings/versions": {
"get": {
"tags": [
"Agency Hosting: PHP"
],
"summary": "List available PHP versions for an order",
"description": "Lists the PHP versions available to websites created under an Agency Plan order, determined by the server the order is hosted on. Use this before creating a website; for a website that already exists, call the website-scoped versions endpoint instead.",
"operationId": "agency-hosting_listAvailablePHPVersionsForAnOrderV1",
"parameters": [
{
"$ref": "#/components/parameters/order_id_path"
}
],
"responses": {
"200": {
"description": "Success response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AgencyHosting.V1.Php.VersionCollection"
}
}
}
},
"401": {
"$ref": "#/components/responses/Common.Response.UnauthorizedResponse"
},
"500": {
"$ref": "#/components/responses/Common.Response.ErrorResponse"
}
}
}
},
"/api/agency-hosting/v1/websites/{website_uid}/php-settings/versions": {
"get": {
"tags": [
"Agency Hosting: PHP"
],
"summary": "List available PHP versions for a website",
"description": "Lists the PHP versions an Agency Plan website can be switched to. The version the website is currently running is returned as settings.php.version by the website details endpoint.",
"operationId": "agency-hosting_listAvailablePHPVersionsForAWebsiteV1",
"parameters": [
{
"$ref": "#/components/parameters/website_uid"
}
],
"responses": {
"200": {
"description": "Success response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AgencyHosting.V1.Php.VersionCollection"
}
}
}
},
"401": {
"$ref": "#/components/responses/Common.Response.UnauthorizedResponse"
},
"500": {
"$ref": "#/components/responses/Common.Response.ErrorResponse"
}
}
}
},
"/api/agency-hosting/v1/websites/{website_uid}/php-settings/version": {
"patch": {
"tags": [
"Agency Hosting: PHP"
],
"summary": "Update website PHP version",
"description": "Switches an Agency Plan website to a different PHP version. Call the available versions endpoint first to see which versions can be selected. The website restarts on the new version, so requests served during the switch may fail and code that is incompatible with the target version will break.",
"operationId": "agency-hosting_updateWebsitePHPVersionV1",
"parameters": [
{
"$ref": "#/components/parameters/website_uid"
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AgencyHosting.V1.Php.UpdateVersionRequest"
}
}
}
},
"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/agency-hosting/v1/orders/{order_id}/websites/setups": {
"post": {
"tags": [
"Agency Hosting: Website Setups"
],
"summary": "Create a new website",
"description": "Provisions a new website on one of your Agency Plan hosting orders.\n\nChoose the datacenter, stack (`flavor`), and PHP version for the site. Optionally attach\nyour own `domain` â omit it, set it to `null`, or leave it unavailable and a free\n`*.hostingersite.com` subdomain is generated instead â and/or install WordPress by\nsupplying the `wordpress` details (admin account, site title, and language).\n\nCommon setups:\n- **Plain PHP site**: `flavor` set to `php-fpm`, with `settings.php.version`; omit\n `wordpress` and `type`.\n- **WordPress site**: `flavor` set to the desired WordPress version (e.g. `wp-7.0`), plus\n the `wordpress` block (admin account, title, language).\n- **Static/Node.js frontend app**: `flavor` set to `php-fpm` and `type` set to\n `node-static`.\n\nProvisioning runs in the background, so the response returns immediately with a setup UUID\nthat identifies the job. The new website becomes reachable once provisioning finishes.",
"operationId": "agency-hosting_createANewWebsiteV1",
"parameters": [
{
"$ref": "#/components/parameters/order_id_path"
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AgencyHosting.V1.Setups.CreateSetupRequest"
}
}
}
},
"responses": {
"200": {
"description": "Success response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AgencyHosting.V1.Setups.WebsiteSetupResource"
}
}
}
},
"422": {
"$ref": "#/components/responses/Common.Response.UnprocessableContentResponse"
},
"401": {
"$ref": "#/components/responses/Common.Response.UnauthorizedResponse"
},
"500": {
"$ref": "#/components/responses/Common.Response.ErrorResponse"
}
}
}
},
"/api/agency-hosting/v1/orders/{order_id}/websites/setups/{setup_uuid}": {
"get": {
"tags": [
"Agency Hosting: Website Setups"
],
"summary": "Get website setup status",
"description": "Returns the current status of an Agency Plan website setup started via the setups\nendpoint.\n\nPoll this endpoint using the `setup_uuid` returned from the provisioning request until\n`status` becomes `completed`, at which point `website_uid` identifies the new website.",
"operationId": "agency-hosting_getWebsiteSetupStatusV1",
"parameters": [
{
"$ref": "#/components/parameters/order_id_path"
},
{
"$ref": "#/components/parameters/setup_uuid"
}
],
"responses": {
"200": {
"description": "Success response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AgencyHosting.V1.Setups.WebsiteSetupStatusResource"
}
}
}
},
"401": {
"$ref": "#/components/responses/Common.Response.UnauthorizedResponse"
},
"500": {
"$ref": "#/components/responses/Common.Response.ErrorResponse"
}
}
}
},
"/api/agency-hosting/v1/websites/{website_uid}/domains/{domain}/ssl/reinstall": {
"post": {
"tags": [
"Agency Hosting: SSL"
],
"summary": "Reinstall website SSL",
"description": "Replaces the Let's Encrypt certificate of the domain: the current platform certificate, when\none is recorded, is revoked and removed, then a new setup starts in the background. Returns at\nonce; `Get website SSL status` reports `installing` while it runs, then `active` or `failed`.\n\nReturns 422 for free subdomains, when a certificate process is recorded for the domain (a\nfailed setup counts until it is cleaned up), or when the domain hit its limit of three setups\nper seven days. Returns 429 when the same domain was requested less than a minute ago, and 403\nwhen the website is suspended or locked, and 404 when the website or the domain does not exist.",
"operationId": "agency-hosting_reinstallWebsiteSSLV1",
"parameters": [
{
"$ref": "#/components/parameters/website_uid"
},
{
"$ref": "#/components/parameters/domain"
}
],
"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/agency-hosting/v1/websites/{website_uid}/domains/{domain}/ssl/setup": {
"post": {
"tags": [
"Agency Hosting: SSL"
],
"summary": "Install website SSL",
"description": "Starts a Let's Encrypt certificate setup for the domain and returns at once; the setup runs in\nthe background. `Get website SSL status` reports `installing` while it runs, then `active` or\n`failed`; the `ssl_setup` entry of `List website processes` shows the same progress.\n\nReturns 422 when the domain already has a platform certificate that is not expired, when a\ncertificate process is recorded for the domain (a failed setup counts until it is cleaned up),\nor when the domain hit its limit of three setups per seven days. Returns 429 when the same\ndomain was requested less than a minute ago, 403 when the website is suspended or locked, and\n404 when the website or the domain does not exist.",
"operationId": "agency-hosting_installWebsiteSSLV1",
"parameters": [
{
"$ref": "#/components/parameters/website_uid"
},
{
"$ref": "#/components/parameters/domain"
}
],
"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/agency-hosting/v1/websites/{website_uid}/domains/{domain}/ssl/status": {
"get": {
"tags": [
"Agency Hosting: SSL"
],
"summary": "Get website SSL status",
"description": "Returns the SSL state of one domain of an Agency Plan website: the certificate `status`,\nwhether the certificate was uploaded by the customer, and when it stops being valid.\n\n`installing` means a certificate setup is running or retrying; the `ssl_setup` entry of\n`List website processes` shows the same progress. `active` means a valid certificate is in\nplace: uploaded by the customer, issued by the platform, or a lifetime certificate bought for\nthe domain. `failed` means the last setup gave up and no valid certificate is in place.\n`expired` means the certificate has run out. `not_installed` means the domain has no\ncertificate and no setup process. Returns 404 when the website or the domain does not exist.",
"operationId": "agency-hosting_getWebsiteSSLStatusV1",
"parameters": [
{
"$ref": "#/components/parameters/website_uid"
},
{
"$ref": "#/components/parameters/domain"
}
],
"responses": {
"200": {
"description": "Success response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AgencyHosting.V1.Ssl.SslStatusResource"
}
}
}
},
"401": {
"$ref": "#/components/responses/Common.Response.UnauthorizedResponse"
},
"500": {
"$ref": "#/components/responses/Common.Response.ErrorResponse"
}
}
}
},
"/api/agency-hosting/v1/websites/{website_uid}/domains/{domain}/ssl": {
"delete": {
"tags": [
"Agency Hosting: SSL"
],
"summary": "Uninstall website SSL",
"description": "Removes the platform-issued Let's Encrypt certificate of the domain: the certificate is revoked\nand deleted before the response, so the domain is no longer served with a platform certificate\nuntil a new setup completes. Also succeeds when the domain has no platform certificate to\nremove. Uploaded (custom) certificates are not affected.\n\nReturns 422 when a certificate process is recorded for the domain (a failed setup counts until\nit is cleaned up), 429 when the same domain was requested less than a minute ago, and 403 when\nthe website is suspended or locked, and 404 when the website or the domain does not exist.",
"operationId": "agency-hosting_uninstallWebsiteSSLV1",
"parameters": [
{
"$ref": "#/components/parameters/website_uid"
},
{
"$ref": "#/components/parameters/domain"
}
],
"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/agency-hosting/v1/websites/{website_uid}/build-assets": {
"post": {
"tags": [
"Agency Hosting: Websites"
],
"summary": "Build website NodeJS assets",
"description": "Builds and deploys a Node.js application for an Agency Plan website from an already-uploaded archive.\n\nUpload the archive to file browser first, then provide its relative path from document root in this request.\nWebsite contents are overwritten by the build result, which is deployed to public_html.",
"operationId": "agency-hosting_buildWebsiteNodeJSAssetsV1",
"parameters": [
{
"$ref": "#/components/parameters/website_uid"
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AgencyHosting.V1.Websites.BuildAssetsRequest"
}
}
}
},
"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/agency-hosting/v1/websites/{website_uid}/cache": {
"delete": {
"tags": [
"Agency Hosting: Cache"
],
"summary": "Clear website cache",
"description": "Clears cache for all domains associated with an Agency Plan website, including its preview domain.\n\nThis operation clears all cache types for the website.",
"operationId": "agency-hosting_clearWebsiteCacheV1",
"parameters": [
{
"$ref": "#/components/parameters/website_uid"
}
],
"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/agency-hosting/v1/websites/{website_uid}/cron-jobs": {
"get": {
"tags": [
"Agency Hosting: Cron Jobs"
],
"summary": "List website cron jobs",
"description": "Returns a paginated list of cron jobs configured for an Agency Plan website.\n\nEach entry includes the schedule expression and the command executed on that schedule.",
"operationId": "agency-hosting_listWebsiteCronJobsV1",
"parameters": [
{
"$ref": "#/components/parameters/website_uid"
},
{
"$ref": "#/components/parameters/page"
},
{
"$ref": "#/components/parameters/per_page"
}
],
"responses": {
"200": {
"description": "Success response",
"content": {
"application/json": {
"schema": {
"properties": {
"data": {
"$ref": "#/components/schemas/AgencyHosting.V1.Websites.CronJobs.CronJobCollection"
},
"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": [
"Agency Hosting: Cron Jobs"
],
"summary": "Create website cron job",
"description": "Creates a cron job for an Agency Plan website from a schedule expression and a command.\n\nReturns the created cron job, including its uuid, which is required to delete the cron job.",
"operationId": "agency-hosting_createWebsiteCronJobV1",
"parameters": [
{
"$ref": "#/components/parameters/website_uid"
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AgencyHosting.V1.Websites.CronJobs.CreateCronJobRequest"
}
}
}
},
"responses": {
"200": {
"description": "Success response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AgencyHosting.V1.Websites.CronJobs.CronJobResource"
}
}
}
},
"422": {
"$ref": "#/components/responses/Common.Response.UnprocessableContentResponse"
},
"401": {
"$ref": "#/components/responses/Common.Response.UnauthorizedResponse"
},
"500": {
"$ref": "#/components/responses/Common.Response.ErrorResponse"
}
}
}
},
"/api/agency-hosting/v1/websites/{website_uid}/cron-jobs/{uuid}": {
"delete": {
"tags": [
"Agency Hosting: Cron Jobs"
],
"summary": "Delete website cron job",
"description": "Permanently deletes the cron job identified by its uuid from an Agency Plan website.\n\nThe operation is idempotent: deleting a cron job that does not exist succeeds without error.",
"operationId": "agency-hosting_deleteWebsiteCronJobV1",
"parameters": [
{
"$ref": "#/components/parameters/website_uid"
},
{
"$ref": "#/components/parameters/agency_cron_job_uuid_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/agency-hosting/v1/websites/{website_uid}/databases": {
"get": {
"tags": [
"Agency Hosting: Databases"
],
"summary": "List website databases",
"description": "Returns a paginated list of MySQL databases created for an Agency Plan website.\n\nEach entry includes the database's non-system users.",
"operationId": "agency-hosting_listWebsiteDatabasesV1",
"parameters": [
{
"$ref": "#/components/parameters/website_uid"
},
{
"$ref": "#/components/parameters/page"
},
{
"$ref": "#/components/parameters/per_page"
}
],
"responses": {
"200": {
"description": "Success response",
"content": {
"application/json": {
"schema": {
"properties": {
"data": {
"$ref": "#/components/schemas/AgencyHosting.V1.Websites.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": [
"Agency Hosting: Databases"
],
"summary": "Create website database",
"description": "Creates a MySQL database with a dedicated user for an Agency Plan website.\n\nThe database name, username, and password must all be provided by the caller.",
"operationId": "agency-hosting_createWebsiteDatabaseV1",
"parameters": [
{
"$ref": "#/components/parameters/website_uid"
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AgencyHosting.V1.Websites.Databases.CreateDatabaseRequest"
}
}
}
},
"responses": {
"200": {
"description": "Success response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AgencyHosting.V1.Websites.Databases.DatabaseResource"
}
}
}
},
"422": {
"$ref": "#/components/responses/Common.Response.UnprocessableContentResponse"
},
"401": {
"$ref": "#/components/responses/Common.Response.UnauthorizedResponse"
},
"500": {
"$ref": "#/components/responses/Common.Response.ErrorResponse"
}
}
}
},
"/api/agency-hosting/v1/websites/{website_uid}/databases/{database_name}": {
"delete": {
"tags": [
"Agency Hosting: Databases"
],
"summary": "Delete website database",
"description": "Permanently deletes a MySQL database and all its data from an Agency Plan website, including its users.\n\nThe operation is idempotent: deleting a database that does not exist succeeds without error.",
"operationId": "agency-hosting_deleteWebsiteDatabaseV1",
"parameters": [
{
"$ref": "#/components/parameters/website_uid"
},
{
"$ref": "#/components/parameters/agency_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/agency-hosting/v1/websites/{website_uid}/databases/{database_name}/users": {
"post": {
"tags": [
"Agency Hosting: Databases"
],
"summary": "Create website database user",
"description": "Creates a user for an existing database on an Agency Plan website.\n\nEach database supports a single non-system user; creating a user for a database that already has one fails.",
"operationId": "agency-hosting_createWebsiteDatabaseUserV1",
"parameters": [
{
"$ref": "#/components/parameters/website_uid"
},
{
"$ref": "#/components/parameters/agency_database_name_path"
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AgencyHosting.V1.Websites.Databases.Users.CreateDatabaseUserRequest"
}
}
}
},
"responses": {
"200": {
"description": "Success response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AgencyHosting.V1.Websites.Databases.DatabaseUserResource"
}
}
}
},
"422": {
"$ref": "#/components/responses/Common.Response.UnprocessableContentResponse"
},
"401": {
"$ref": "#/components/responses/Common.Response.UnauthorizedResponse"
},
"500": {
"$ref": "#/components/responses/Common.Response.ErrorResponse"
}
}
}
},
"/api/agency-hosting/v1/websites/{website_uid}/databases/{database_name}/users/{database_user_name}": {
"delete": {
"tags": [
"Agency Hosting: Databases"
],
"summary": "Delete website database user",
"description": "Permanently deletes a database user from an Agency Plan website database, revoking all access it had.\n\nThe operation is idempotent: deleting a user that does not exist succeeds without error.",
"operationId": "agency-hosting_deleteWebsiteDatabaseUserV1",
"parameters": [
{
"$ref": "#/components/parameters/website_uid"
},
{
"$ref": "#/components/parameters/agency_database_name_path"
},
{
"$ref": "#/components/parameters/agency_database_user_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/agency-hosting/v1/websites/{website_uid}": {
"get": {
"tags": [
"Agency Hosting: Websites"
],
"summary": "Get website details",
"description": "Retrieves detailed information about a specific Agency Plan website, including configuration,\nstatus, metadata, hosting plan details, and resource quotas.",
"operationId": "agency-hosting_getWebsiteDetailsV1",
"parameters": [
{
"$ref": "#/components/parameters/website_uid"
}
],
"responses": {
"200": {
"description": "Success response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AgencyHosting.V1.Websites.WebsiteResource"
}
}
}
},
"401": {
"$ref": "#/components/responses/Common.Response.UnauthorizedResponse"
},
"500": {
"$ref": "#/components/responses/Common.Response.ErrorResponse"
}
}
},
"delete": {
"tags": [
"Agency Hosting: Websites"
],
"summary": "Delete website",
"description": "Permanently deletes an Agency Plan website. Deletion is processed asynchronously: the\nwebsite is immediately transitioned to a deleting state and the underlying server\nresources are removed in the background.",
"operationId": "agency-hosting_deleteWebsiteV1",
"parameters": [
{
"$ref": "#/components/parameters/website_uid"
}
],
"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/agency-hosting/v1/websites": {
"get": {
"tags": [
"Agency Hosting: Websites"
],
"summary": "List Agency Plan websites",
"description": "Retrieve a paginated list of Agency Plan websites (H5G, Builder, and Horizons) accessible to\nthe 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\nThe response shape differs per platform â see the `platform` field on each item.\n\nUse `website_types` to list only websites of a given detected type, e.g. only\nWordPress websites (`website_types=wordpress`) or only Node.js websites\n(`website_types=nodejs`). Combine with `order_ids`, `states`, or `domain` for more\ntargeted results.",
"operationId": "agency-hosting_listAgencyPlanWebsitesV1",
"parameters": [
{
"$ref": "#/components/parameters/page"
},
{
"$ref": "#/components/parameters/per_page"
},
{
"$ref": "#/components/parameters/agency_hosting_order_ids"
},
{
"$ref": "#/components/parameters/agency_hosting_states"
},
{
"$ref": "#/components/parameters/agency_hosting_website_types"
},
{
"$ref": "#/components/parameters/agency_hosting_domain_filter"
}
],
"responses": {
"200": {
"description": "Success response",
"content": {
"application/json": {
"schema": {
"properties": {
"data": {
"$ref": "#/components/schemas/AgencyHosting.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"
}
}
}
},
"/api/agency-hosting/v1/websites/{website_uid}/processes": {
"get": {
"tags": [
"Agency Hosting: Websites"
],
"summary": "List website processes",
"description": "Lists active and recently completed asynchronous processes for an Agency Plan website.\n\nEach process has a unique ID (for tracking), a type, and a status (running, completed, failed).\nPoll this endpoint after initiating async operations (SSL setup, backups, cloning) to track progress.",
"operationId": "agency-hosting_listWebsiteProcessesV1",
"parameters": [
{
"$ref": "#/components/parameters/website_uid"
}
],
"responses": {
"200": {
"description": "Success response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AgencyHosting.V1.Websites.WebsiteProcessCollection"
}
}
}
},
"401": {
"$ref": "#/components/responses/Common.Response.UnauthorizedResponse"
},
"500": {
"$ref": "#/components/responses/Common.Response.ErrorResponse"
}
}
}
},
"/api/agency-hosting/v1/websites/{website_uid}/wordpress/settings/version": {
"patch": {
"tags": [
"Agency Hosting: WordPress"
],
"summary": "Change WordPress version",
"description": "Changes the installed WordPress core version on an Agency Plan website to one of the versions available for installation.",
"operationId": "agency-hosting_changeWordPressVersionV1",
"parameters": [
{
"$ref": "#/components/parameters/website_uid"
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AgencyHosting.V1.WordPress.ChangeVersionRequest"
}
}
}
},
"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/agency-hosting/v1/websites/{website_uid}/wordpress/settings": {
"get": {
"tags": [
"Agency Hosting: WordPress"
],
"summary": "Get WordPress settings",
"description": "Returns the current WordPress settings for an Agency Plan website: installed core version,\nLiteSpeed Cache plugin status, object cache status, and maintenance mode status.",
"operationId": "agency-hosting_getWordPressSettingsV1",
"parameters": [
{
"$ref": "#/components/parameters/website_uid"
}
],
"responses": {
"200": {
"description": "Success response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AgencyHosting.V1.WordPress.SettingsResource"
}
}
}
},
"401": {
"$ref": "#/components/responses/Common.Response.UnauthorizedResponse"
},
"500": {
"$ref": "#/components/responses/Common.Response.ErrorResponse"
}
}
}
},
"/api/agency-hosting/v1/websites/{website_uid}/wordpress/settings/versions": {
"get": {
"tags": [
"Agency Hosting: WordPress"
],
"summary": "List available WordPress versions",
"description": "Lists the WordPress core versions available for installation on an Agency Plan website.",
"operationId": "agency-hosting_listAvailableWordPressVersionsV1",
"parameters": [
{
"$ref": "#/components/parameters/website_uid"
}
],
"responses": {
"200": {
"description": "Success response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AgencyHosting.V1.WordPress.VersionCollection"
}
}
}
},
"401": {
"$ref": "#/components/responses/Common.Response.UnauthorizedResponse"
},
"500": {
"$ref": "#/components/responses/Common.Response.ErrorResponse"
}
}
}
},
"/api/agent-readiness/v1/checks": {
"get": {
"tags": [
"Agent Readiness: Checks"
],
"summary": "List checks",
"description": "List every check an agent readiness scan runs, with its name, category and weight.\\n\nUse it to show the human-readable name of each `check_id` in a scan's results.",
"operationId": "agent-readiness_listChecksV1",
"responses": {
"200": {
"description": "Success response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AgentReadiness.V1.Checks.CheckCollection"
}
}
}
},
"401": {
"$ref": "#/components/responses/Common.Response.UnauthorizedResponse"
},
"500": {
"$ref": "#/components/responses/Common.Response.ErrorResponse"
}
}
}
},
"/api/agent-readiness/v1/scans": {
"post": {
"tags": [
"Agent Readiness: Scans"
],
"summary": "Run agent readiness scan",
"description": "Start a scan of how ready a public website is for AI agents to discover, read and act on.\\n\nScanning is asynchronous: this operation only starts the scan, and the returned scan is usually `pending`\nwith no results yet. To get the results, poll the `Get agent readiness scan` operation with the same\ndomain every few seconds until its status is `completed` or `failed`. The scan itself is limited to 60 seconds,\nplus any time it waits in the queue. A `failed` scan is not retried; run this operation again.\\n\nStarting a scan for a domain that already has a pending scan from the last 5 minutes\nreturns that scan instead of starting a new one.",
"operationId": "agent-readiness_runAgentReadinessScanV1",
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AgentReadiness.V1.Scans.RunScanRequest"
}
}
}
},
"responses": {
"200": {
"description": "Success response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AgentReadiness.V1.Scans.ScanResource"
}
}
}
},
"422": {
"$ref": "#/components/responses/Common.Response.UnprocessableContentResponse"
},
"401": {
"$ref": "#/components/responses/Common.Response.UnauthorizedResponse"
},
"500": {
"$ref": "#/components/responses/Common.Response.ErrorResponse"
}
}
}
},
"/api/agent-readiness/v1/scans/{domain}": {
"get": {
"tags": [
"Agent Readiness: Scans"
],
"summary": "Get agent readiness scan",
"description": "Get the latest agent readiness scan of a website.\\n\nScans started with the `Run agent readiness scan` operation are asynchronous. While the status is\n`pending`, the result fields are null; wait a few seconds and call this operation again until the status is\n`completed` or `failed`. A `failed` scan is not retried; run the scan again.\\n\nA completed scan has a 0-100 score, a letter grade, a score per category, and the result of every\ncheck with the evidence found and how to fix it. Check names are listed by the `List checks` operation.\\n\nReturns 404 when the domain has never been scanned; use the `Run agent readiness scan` operation first.",
"operationId": "agent-readiness_getAgentReadinessScanV1",
"parameters": [
{
"$ref": "#/components/parameters/agent_readiness_domain_path"
}
],
"responses": {
"200": {
"description": "Success response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AgentReadiness.V1.Scans.ScanResource"
}
}
}
},
"401": {
"$ref": "#/components/responses/Common.Response.UnauthorizedResponse"
},
"500": {
"$ref": "#/components/responses/Common.Response.ErrorResponse"
}
}
}
},
"/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/orders": {
"post": {
"tags": [
"Billing: Orders"
],
"summary": "Create purchase order",
"description": "Create a purchase order for any Hostinger product.\n\nThis unified endpoint places an order for one or more catalog items and\nworks across all Hostinger products, leveraging the existing billing\ninfrastructure. Use the [catalog endpoint](#tag/billing-catalog) to look\nup the `item_id` values available for purchase.\n\nIf no payment method is provided, your default payment method will be used automatically.\n\nIf the response is `202 Accepted`, the payment is still being processed and the order will\ncomplete asynchronously once the payment is confirmed.\n\nThis endpoint only places the order. Product-specific provisioning\n(e.g. VPS setup or domain registration) is not performed here â once the\norder completes, use the relevant product endpoints or\n[hPanel](https://hpanel.hostinger.com/) to finalize setup.\n\nUse this endpoint to purchase any product available in the catalog.",
"operationId": "billing_createPurchaseOrderV1",
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Billing.V1.Order.PurchaseRequest"
}
}
}
},
"responses": {
"200": {
"description": "Success response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Billing.V1.Order.OrderResource"
}
}
}
},
"202": {
"description": "Payment is being processed, the order will complete asynchronously",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Billing.V1.Order.PaymentProcessingResource"
}
}
}
},
"422": {
"$ref": "#/components/responses/Common.Response.UnprocessableContentResponse"
},
"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/billing/v1/subscriptions/{subscriptionId}/renew": {
"post": {
"tags": [
"Billing: Subscriptions"
],
"summary": "Renew subscription",
"description": "Create a renewal order for an existing Hostinger subscription.\n\nThis endpoint places a renewal order for a single subscription, leveraging\nthe existing billing infrastructure. Use the\n[subscriptions endpoint](#tag/billing-subscriptions) to look up the\n`subscriptionId` values available for renewal.\n\nIf no payment method is provided, your default payment method will be used automatically.\n\nIf the response is `202 Accepted`, the payment is still being processed and the renewal will\ncomplete asynchronously once the payment is confirmed.\n\nUse this endpoint to renew any subscription available in your account.",
"operationId": "billing_renewSubscriptionV1",
"parameters": [
{
"$ref": "#/components/parameters/subscriptionId"
}
],
"requestBody": {
"required": false,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Billing.V1.Subscription.Renewal.RenewRequest"
}
}
}
},
"responses": {
"200": {
"description": "Success response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Billing.V1.Order.OrderResource"
}
}
}
},
"202": {
"description": "Payment is being processed, the order will complete asynchronously",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Billing.V1.Order.PaymentProcessingResource"
}
}
}
},
"422": {
"$ref": "#/components/responses/Common.Response.UnprocessableContentResponse"
},
"401": {
"$ref": "#/components/responses/Common.Response.UnauthorizedResponse"
},
"500": {
"$ref": "#/components/responses/Common.Response.ErrorResponse"
}
}
}
},
"/api/dns/v1/propagation/{domain}/{type}": {
"get": {
"tags": [
"DNS: Propagation"
],
"summary": "Check DNS record propagation",
"description": "Check whether a DNS record of a domain or host name has propagated to public resolvers around the world.\n\n`authoritative` shows what the domain's authoritative nameservers serve now. It is the best signal\nof the current record value. Its TTL tells how long resolvers may keep serving the old value.\n\n`vantage_points` shows what public resolvers at different locations return. `is_propagated` is true\nwhen the location returns the same records as the authoritative nameservers. For GeoDNS domains,\nwhose nameservers answer differently by region, true means the location returned a record.\nA records served from the Hostinger CDN count as propagated. When every responding authoritative\nnameserver returns no records, `is_propagated` is true.\n\nWorks for any domain or host name, either a domain or a subdomain. Read-only: it changes nothing.\n\nA 404 response with error code 2025 can also mean the check could not be completed, for example\nwhen the DNS checker is busy or timed out. It is safe to retry after a short delay.",
"operationId": "DNS_checkDNSRecordPropagationV1",
"parameters": [
{
"$ref": "#/components/parameters/dns_host_name_path"
},
{
"$ref": "#/components/parameters/dns_record_type_path"
}
],
"responses": {
"200": {
"description": "Success response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/DNS.V1.Propagation.PropagationReportResource"
}
}
}
},
"401": {
"$ref": "#/components/responses/Common.Response.UnauthorizedResponse"
},
"404": {
"$ref": "#/components/responses/Common.Response.ErrorResponse"
},
"422": {
"$ref": "#/components/responses/Common.Response.UnprocessableContentResponse"
},
"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/alternatives-from-description": {
"post": {
"tags": [
"Domains: Availability"
],
"summary": "Suggest domain names from a description",
"description": "Suggest available domain names based on a free-text description of your project.\n\nSuggestions are generated by an AI model, so they differ between calls.\n\nEndpoint has rate limit of 90 requests per minute.\n\nUse this endpoint to find a domain name when you only know what the website is about.",
"operationId": "domains_suggestDomainNamesFromADescriptionV1",
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Domains.V1.Availability.AlternativesFromDescriptionRequest"
}
}
}
},
"responses": {
"200": {
"description": "Success response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Domains.V1.Availability.AlternativeCollection"
}
}
}
},
"422": {
"$ref": "#/components/responses/Common.Response.UnprocessableContentResponse"
},
"401": {
"$ref": "#/components/responses/Common.Response.UnauthorizedResponse"
},
"500": {
"$ref": "#/components/responses/Common.Response.ErrorResponse"
}
}
}
},
"/api/domains/v1/availability/alternatives-from-domain": {
"post": {
"tags": [
"Domains: Availability"
],
"summary": "Suggest domain names from a domain",
"description": "Suggest available domain names based on a domain name you already have in mind.\n\nSuggestions are generated by an AI model, so they differ between calls.\n\nEndpoint has rate limit of 90 requests per minute.\n\nUse this endpoint when the domain you wanted is taken and you need close alternatives.",
"operationId": "domains_suggestDomainNamesFromADomainV1",
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Domains.V1.Availability.AlternativesFromDomainRequest"
}
}
}
},
"responses": {
"200": {
"description": "Success response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Domains.V1.Availability.AlternativeCollection"
}
}
}
},
"422": {
"$ref": "#/components/responses/Common.Response.UnprocessableContentResponse"
},
"401": {
"$ref": "#/components/responses/Common.Response.UnauthorizedResponse"
},
"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`).\nPremium domains are included: an available premium domain has `is_available` and `is_premium` set to `true`.\n\nEndpoint has rate limit of 90 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\nReturns 404 when the domain has no forwarding.\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"
}
}
},
"put": {
"tags": [
"Domains: Forwarding"
],
"summary": "Update domain forwarding",
"description": "Update domain forwarding configuration.\n\nUpdating a forwarding changes the domain's DNS. If the domain does not use Hostinger nameservers, they are\nswitched to Hostinger's nameservers automatically, so website, email and other services whose DNS is hosted\nelsewhere stop working. The root (@) A and AAAA records in the domain's Hostinger DNS zone are also replaced\nwith records pointing to Hostinger, even when the domain already uses Hostinger nameservers. The domain's\ncurrent nameservers are returned by the [domain details endpoint](#tag/domains-portfolio); confirm with the\nuser before updating a forwarding on a domain that uses other nameservers. DNS changes can take some time to\npropagate.\n\nUse this endpoint to modify existing redirect configuration for domains.",
"operationId": "domains_updateDomainForwardingV1",
"parameters": [
{
"$ref": "#/components/parameters/domain"
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Domains.V1.Forwarding.UpdateRequest"
}
}
}
},
"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"
}
}
},
"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\nCreating a forwarding changes the domain's DNS. If the domain does not use Hostinger nameservers, they are\nswitched to Hostinger's nameservers automatically, so website, email and other services whose DNS is hosted\nelsewhere stop working. The root (@) A and AAAA records in the domain's Hostinger DNS zone are also replaced\nwith records pointing to Hostinger, even when the domain already uses Hostinger nameservers. The domain's\ncurrent nameservers are returned by the [domain details endpoint](#tag/domains-portfolio); confirm with the\nuser before creating a forwarding on a domain that uses other nameservers. DNS changes can take some time to\npropagate.\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/irtp/{domain}": {
"get": {
"tags": [
"Domains: WHOIS"
],
"summary": "Get pending IRTP verification",
"description": "Retrieve a pending IRTP verification for a domain.\n\nBoth the old and new registrant must confirm it before the WHOIS change takes effect.\n\nReturns 404 when the domain has no pending IRTP verification.\n\nUse this endpoint to check the status of a WHOIS change awaiting registrant confirmation.",
"operationId": "domains_getPendingIRTPVerificationV1",
"parameters": [
{
"$ref": "#/components/parameters/domain"
}
],
"responses": {
"200": {
"description": "Success response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Domains.V1.IRTP.VerificationResource"
}
}
}
},
"401": {
"$ref": "#/components/responses/Common.Response.UnauthorizedResponse"
},
"500": {
"$ref": "#/components/responses/Common.Response.ErrorResponse"
}
}
},
"delete": {
"tags": [
"Domains: WHOIS"
],
"summary": "Cancel pending IRTP verification",
"description": "Cancel a pending IRTP verification.\n\nUse this endpoint to back out of a WHOIS change that is stuck waiting on registrant confirmation,\nfor example when the confirmation email cannot be received, without waiting out the 5-day expiry.",
"operationId": "domains_cancelPendingIRTPVerificationV1",
"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/move/incoming/{domain}": {
"get": {
"tags": [
"Domains: Move"
],
"summary": "Get incoming domain move",
"description": "Retrieve the incoming move for a specified domain.\n\nReturns 404 when no account is moving this domain to you.\n\nUse this endpoint to check whether a domain addressed to you is still waiting to be accepted.",
"operationId": "domains_getIncomingDomainMoveV1",
"parameters": [
{
"$ref": "#/components/parameters/domain"
},
{
"$ref": "#/components/parameters/force_sync"
}
],
"responses": {
"200": {
"description": "Success response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Domains.V1.Move.MoveResource"
}
}
}
},
"401": {
"$ref": "#/components/responses/Common.Response.UnauthorizedResponse"
},
"500": {
"$ref": "#/components/responses/Common.Response.ErrorResponse"
}
}
},
"put": {
"tags": [
"Domains: Move"
],
"summary": "Accept incoming domain move",
"description": "Accept an incoming move for a specified domain.\n\nThe provided WHOIS profiles become the contacts of the domain, so they must belong\nto your account and satisfy the requirements of the TLD. Only the contact types the\ndomain actually uses are applied, but all four profile IDs have to be provided.\n\nThe move has to still be waiting for your decision, already accepted moves\ncannot be accepted again.\n\nAccepting does not complete the move. A confirmation email is sent to the email address of\nthe new owner contact, and the domain changes hands only after the change is confirmed from it.\nUntil then the move stays in the `activating` status, which can be followed with the\n[incoming move endpoint](#tag/domains-move).\n\nUse this endpoint to take ownership of a domain offered to you.",
"operationId": "domains_acceptIncomingDomainMoveV1",
"parameters": [
{
"$ref": "#/components/parameters/domain"
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Domains.V1.Move.Incoming.UpdateRequest"
}
}
}
},
"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": [
"Domains: Move"
],
"summary": "Reject incoming domain move",
"description": "Reject an incoming move for a specified domain.\n\nThe domain stays in the account which initiated the move.\nMoves you have already accepted cannot be rejected anymore.\n\nUse this endpoint to decline a domain you do not want to take over.",
"operationId": "domains_rejectIncomingDomainMoveV1",
"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/move/incoming": {
"get": {
"tags": [
"Domains: Move"
],
"summary": "Get incoming domain move list",
"description": "Retrieve all domains other Hostinger accounts are moving to your account.\n\nMoves of every status are returned, including the ones which already completed.\n\nUse this endpoint to find domains waiting for you to accept them.",
"operationId": "domains_getIncomingDomainMoveListV1",
"responses": {
"200": {
"description": "Success response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Domains.V1.Move.MoveCollection"
}
}
}
},
"401": {
"$ref": "#/components/responses/Common.Response.UnauthorizedResponse"
},
"500": {
"$ref": "#/components/responses/Common.Response.ErrorResponse"
}
}
}
},
"/api/domains/v1/move/outgoing/{domain}": {
"get": {
"tags": [
"Domains: Move"
],
"summary": "Get outgoing domain move",
"description": "Retrieve the outgoing move for a specified domain.\n\nReturns 404 when the domain has no move in progress.\n\nUse this endpoint to track the status of a move you have initiated for a single domain.",
"operationId": "domains_getOutgoingDomainMoveV1",
"parameters": [
{
"$ref": "#/components/parameters/domain"
}
],
"responses": {
"200": {
"description": "Success response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Domains.V1.Move.MoveResource"
}
}
}
},
"401": {
"$ref": "#/components/responses/Common.Response.UnauthorizedResponse"
},
"500": {
"$ref": "#/components/responses/Common.Response.ErrorResponse"
}
}
},
"post": {
"tags": [
"Domains: Move"
],
"summary": "Start outgoing domain move",
"description": "Initiate a move of a specified domain to another Hostinger account.\n\nThe receiving account has to already exist and accept the move before the domain changes hands.\n\nThe domain must be active. The subscription it belongs to is resolved automatically,\nand the request is rejected with a 404 status code when the domain has no domain\nsubscription of its own.\n\nThe move is also refused unless the domain:\n- was registered at least 4 days ago\n- does not expire within the next 10 days\n- has an extension that supports moves\n- has no move already in progress\n- was not moved in the last 10 days\n- is not a premium domain\n- is not still processing a recent renewal\n\nA move refused for one of these rules is rejected with a 404 status code and error code 2048,\nwith a message naming the rule. The receiving account is checked first, and when it cannot\nbe used the message stays generic.\n\nDomains protected by premium protection require an additional verification step,\nsuch requests are rejected with a 428 status code.\n\nUse this endpoint to hand a domain over to another Hostinger user.",
"operationId": "domains_startOutgoingDomainMoveV1",
"parameters": [
{
"$ref": "#/components/parameters/domain"
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Domains.V1.Move.Outgoing.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"
}
}
},
"delete": {
"tags": [
"Domains: Move"
],
"summary": "Cancel outgoing domain move",
"description": "Cancel an outgoing move for a specified domain.\n\nThe move can only be cancelled while the receiving account has not accepted it yet.\nThe domain stays in your account.\n\nUse this endpoint to withdraw a move you no longer want to complete.",
"operationId": "domains_cancelOutgoingDomainMoveV1",
"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/move/outgoing": {
"get": {
"tags": [
"Domains: Move"
],
"summary": "Get outgoing domain move list",
"description": "Retrieve all domains you are moving to other Hostinger accounts.\n\nOnly moves which have not completed yet are returned.\n\nUse this endpoint to track moves you have initiated and the accounts they are addressed to.",
"operationId": "domains_getOutgoingDomainMoveListV1",
"responses": {
"200": {
"description": "Success response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Domains.V1.Move.MoveCollection"
}
}
}
},
"401": {
"$ref": "#/components/responses/Common.Response.UnauthorizedResponse"
},
"500": {
"$ref": "#/components/responses/Common.Response.ErrorResponse"
}
}
}
},
"/api/domains/v1/portfolio/{domain}/auth-code": {
"get": {
"tags": [
"Domains: Portfolio"
],
"summary": "Get domain authorization code",
"description": "Retrieve the authorization (EPP) code for a specified domain so it can be transferred\naway from Hostinger to another registrar.\n\nRequesting a new code invalidates any code retrieved previously.\n\nUse this endpoint to obtain the code required to transfer a domain to another registrar.",
"operationId": "domains_getDomainAuthorizationCodeV1",
"parameters": [
{
"$ref": "#/components/parameters/domain"
}
],
"responses": {
"200": {
"description": "Success response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Domains.V1.Portfolio.AuthCode.AuthCodeResource"
}
}
}
},
"401": {
"$ref": "#/components/responses/Common.Response.UnauthorizedResponse"
},
"500": {
"$ref": "#/components/responses/Common.Response.ErrorResponse"
}
}
}
},
"/api/domains/v1/portfolio/claim": {
"post": {
"tags": [
"Domains: Portfolio"
],
"summary": "Claim free domain",
"description": "Claim a free domain available on your account and register it.\n\nUnlike purchasing a domain, this consumes a free domain you already have,\nso no payment method is required.\n\nA free domain and a free domain transfer from the same plan are alternatives:\nclaiming the free domain removes the plan's free domain transfer\n(`type: free_domain_transfer`). Before making request, confirm with the user which\nof the two they want. Right after a claim, the removed free domain transfer may\nstill appear in the [domain list endpoint](#tag/domains-portfolio) for a short\ntime; do not claim it.\n\nA successful response means the domain is registered. If registration fails, login to\n[hPanel](https://hpanel.hostinger.com/) and check domain registration status.\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 claiming.\n\nRequests which cannot be fulfilled are rejected with an error code in the response body,\nfor example `2037` when no free domain is available.\n\nUse this endpoint to register a domain using a free domain from your account.",
"operationId": "domains_claimFreeDomainV1",
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Domains.V1.Portfolio.ClaimRequest"
}
}
}
},
"responses": {
"200": {
"description": "Success response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Domains.V1.Portfolio.ClaimResource"
}
}
}
},
"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\nA domain is found here only once it is registered. Until then, `Get domain list` shows it, and\nits `verification` field says what registration waits for when the domain is held for\nverification.\n\nAfter registration, the registry may require the owner contact to be verified by email, phone\nnumber or contact name before a deadline, after which the domain is suspended. The\n`contact_verification` field shows what needs verifying, its state and the deadline.\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\nA plan can include both a free domain (`type: free_domain`) and a free domain\ntransfer (`type: free_domain_transfer`). They are alternatives: claiming one\nremoves the other, which may still be listed for a short time after the claim.\n\nA domain held for verification before it is registered has `status: pending_verification`,\nand its `verification` field says what registration waits for: a manual review, an SMS code,\nor owner contact verification.\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 the response is `202 Accepted`, the payment is still being processed and the domain was\n**not** registered. Once the order completes, register the domain from\n[hPanel](https://hpanel.hostinger.com/).\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"
}
}
}
},
"202": {
"description": "Payment is being processed, the order will complete asynchronously",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Billing.V1.Order.PaymentProcessingResource"
}
}
}
},
"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}/renewal": {
"get": {
"tags": [
"Domains: Portfolio"
],
"summary": "Get domain renewal information",
"description": "Retrieve renewal information for a specified domain, including its status, current\nexpiration date, whether it can be renewed, whether it is in its grace or redemption period,\nand when each of those periods ends.\n\nUse this endpoint to build renewal automation and expiry monitoring for a single domain.",
"operationId": "domains_getDomainRenewalInformationV1",
"parameters": [
{
"$ref": "#/components/parameters/domain"
}
],
"responses": {
"200": {
"description": "Success response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Domains.V1.Portfolio.Renewal.RenewalInformationResource"
}
}
}
},
"401": {
"$ref": "#/components/responses/Common.Response.UnauthorizedResponse"
},
"500": {
"$ref": "#/components/responses/Common.Response.ErrorResponse"
}
}
}
},
"/api/domains/v1/portfolio/{domain}/setup": {
"post": {
"tags": [
"Domains: Portfolio"
],
"summary": "Complete domain setup",
"description": "Register a domain you have already paid for but which has not been set up yet.\n\nUse this endpoint when an order completed without registering the domain, for example when\n`Purchase new domain` returned `202 Accepted` and the domain was added to your account without\nbeing registered, or when an earlier setup attempt failed. No new order is placed and no payment\nis taken: the subscription you already own is used, for the period you already paid for.\n\nA domain is left awaiting setup when the details needed to register it were missing or invalid\nas the order completed. Domains ordered elsewhere can be awaiting setup for the same reason.\nComplete the missing information, then call this endpoint. If the order itself has not completed\nyet, the domain is not on your account, wait until it appears in `Get domain list`.\n\nIf `domain_contacts` is omitted, the default WHOIS profile of that TLD is used for all four\nroles. The profile must exist and be complete for the TLD, an incomplete profile is the most\ncommon reason a domain is left awaiting setup. Create one with `Create WHOIS profile`.\n\nSome TLDs require `additional_details`. These are validated before setup, so a missing or\ninvalid value is rejected without any registration being attempted.\n\nThe domain is set up with the default nameservers and with privacy protection. Use\n`Update domain nameservers` and `Disable privacy protection` afterwards to change either.\n\nA successful response means the setup request was accepted, not that the domain is already\nregistered. Poll `Get domain list` for the outcome, the domain appears in `Get domain details`\nonly once it is registered. When the domain is held for verification, its `verification` field\nin `Get domain list` says what registration waits for.\n\nUse this endpoint to finish registering a domain that is awaiting setup on your account.",
"operationId": "domains_completeDomainSetupV1",
"parameters": [
{
"$ref": "#/components/parameters/domain"
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Domains.V1.Portfolio.SetupRequest"
}
}
}
},
"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"
},
"404": {
"$ref": "#/components/responses/Common.Response.ErrorResponse"
},
"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/transfers/claim": {
"post": {
"tags": [
"Domains: Transfer"
],
"summary": "Claim free domain transfer",
"description": "Claim a free domain transfer available on your account and start the transfer.\n\nUnlike purchasing a transfer, this consumes a free domain transfer you already have,\nso no payment method is required.\n\nA free domain and a free domain transfer from the same plan are alternatives:\nclaiming the free domain transfer removes the plan's free domain\n(`type: free_domain`). Before making request, confirm with the user which of the\ntwo they want. Right after a claim, the removed free domain may still appear in\nthe [domain list endpoint](#tag/domains-portfolio) for a short time; do not claim it.\n\nBefore making request, unlock the domain at the current registrar and, if its TLD uses one,\nget its authorization code. The transfer is validated first, so domains which cannot be\ntransferred, or are missing a required authorization code, are rejected before the free\ndomain transfer is consumed.\n\nA successful response means the transfer has been started. Completion depends on the current\nregistrar and can be followed with the [transfer list endpoint](#tag/domains-transfer).\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\nRequests which cannot be fulfilled are rejected with an error code in the response body.\n\nUse this endpoint to transfer a domain using a free domain transfer from your account.",
"operationId": "domains_claimFreeDomainTransferV1",
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Domains.V1.Transfer.ClaimRequest"
}
}
}
},
"responses": {
"200": {
"description": "Success response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Domains.V1.Transfer.TransferResource"
}
}
}
},
"422": {
"$ref": "#/components/responses/Common.Response.UnprocessableContentResponse"
},
"401": {
"$ref": "#/components/responses/Common.Response.UnauthorizedResponse"
},
"500": {
"$ref": "#/components/responses/Common.Response.ErrorResponse"
}
}
}
},
"/api/domains/v1/transfers/{domain}": {
"get": {
"tags": [
"Domains: Transfer"
],
"summary": "Get transfer",
"description": "Retrieve the transfer for a specified domain.\n\nUse this endpoint to track an incoming or outgoing registrar transfer and its status.",
"operationId": "domains_getTransferV1",
"parameters": [
{
"$ref": "#/components/parameters/domain"
}
],
"responses": {
"200": {
"description": "Success response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Domains.V1.Transfer.TransferResource"
}
}
}
},
"401": {
"$ref": "#/components/responses/Common.Response.UnauthorizedResponse"
},
"500": {
"$ref": "#/components/responses/Common.Response.ErrorResponse"
}
}
}
},
"/api/domains/v1/transfers": {
"get": {
"tags": [
"Domains: Transfer"
],
"summary": "Get transfer list",
"description": "Retrieve all domain transfers in your portfolio.\n\nUse this endpoint to monitor incoming and outgoing registrar transfers across your domains.",
"operationId": "domains_getTransferListV1",
"responses": {
"200": {
"description": "Success response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Domains.V1.Transfer.TransferCollection"
}
}
}
},
"401": {
"$ref": "#/components/responses/Common.Response.UnauthorizedResponse"
},
"500": {
"$ref": "#/components/responses/Common.Response.ErrorResponse"
}
}
},
"post": {
"tags": [
"Domains: Transfer"
],
"summary": "Start domain transfer",
"description": "Transfer a domain from another registrar to your account.\n\nThe transfer runs on a domain transfer service you have already purchased.\n\nBefore making request, unlock the domain at the current registrar and, if its TLD uses one,\nget its authorization code.\n\nA successful response means the transfer has been started. Completion depends on the current\nregistrar and can be followed with the [transfer list endpoint](#tag/domains-transfer).\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\nUse this endpoint to bring domains registered elsewhere into your account.",
"operationId": "domains_startDomainTransferV1",
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Domains.V1.Transfer.TransferRequest"
}
}
}
},
"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/change": {
"put": {
"tags": [
"Domains: WHOIS"
],
"summary": "Change WHOIS profile for domain",
"description": "Change WHOIS contact profile for a domain.\n\nRepoints the given contact roles to a new WHOIS profile and submits the change to the registry.\nThe profile currently assigned to those roles is resolved automatically;\nthe request fails if the given roles are not all on the same profile today.\n\nChanging transfer sensitive fields on the owner contact starts an IRTP verification.\n\nThe change is processed asynchronously.\n\nUse this endpoint to move a registered domain onto different contact information.",
"operationId": "domains_changeWHOISProfileForDomainV1",
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Domains.V1.WHOIS.Change.UpdateRequest"
}
}
}
},
"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/default/{whoisId}": {
"put": {
"tags": [
"Domains: WHOIS"
],
"summary": "Set WHOIS profile as default",
"description": "Set WHOIS contact profile as default.\n\nThe default profile is pre-selected for the TLD it belongs to when registering new domains.\n\nUse this endpoint to avoid picking contact information for every registration.",
"operationId": "domains_setWHOISProfileAsDefaultV1",
"parameters": [
{
"$ref": "#/components/parameters/whoisId"
}
],
"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: WHOIS"
],
"summary": "Unset default WHOIS profile",
"description": "Unset WHOIS contact profile as default.\n\nThe profile itself is kept, it is only no longer pre-selected for its TLD.\n\nUse this endpoint to stop reusing contact information for new registrations.",
"operationId": "domains_unsetDefaultWHOISProfileV1",
"parameters": [
{
"$ref": "#/components/parameters/whoisId"
}
],
"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/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.\n\nThe keys required in `whois_details` and `tld_details` depend on the TLD, country and entity type, and can be\ncountry-specific: for Lithuania, for example, `state_lt` and `zip_lt` are required instead of `state` and\n`zip`. A 422 response lists every required key that is missing or has an invalid value under\n`errors.whois_details`, and under `errors.tld_details` when `tld_details` is sent. Each error states the\nkey's constraint and, where the key takes a fixed set of values, the allowed values, so all of them can be\ncorrected in one retry.",
"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/stores/{store_id}/discounts": {
"get": {
"tags": [
"Ecommerce: Discounts"
],
"summary": "List discounts",
"description": "List a store's discounts. Filter by free text over code and name, or by disabled state.\nAmounts for fixed discounts are integers in the smallest currency unit; percentage\ndiscounts carry a whole-number value between 1 and 100.",
"operationId": "ecommerce_listDiscountsV1",
"parameters": [
{
"name": "store_id",
"in": "path",
"description": "The ID of the store to list discounts for.",
"required": true,
"schema": {
"type": "string",
"example": "store_01J8Z5F8W9K8M4A7B3C2D1E0FG"
}
},
{
"name": "q",
"in": "query",
"description": "Free-text search over discount code and name.",
"required": false,
"schema": {
"type": "string",
"example": "blackfriday"
}
},
{
"name": "is_disabled",
"in": "query",
"description": "Filter by disabled state.",
"required": false,
"schema": {
"type": "string",
"enum": [
"true",
"false"
]
}
},
{
"$ref": "#/components/parameters/page"
}
],
"responses": {
"200": {
"description": "Success response",
"content": {
"application/json": {
"schema": {
"properties": {
"data": {
"$ref": "#/components/schemas/Ecommerce.V1.Discount.DiscountCollection"
},
"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: Discounts"
],
"summary": "Create a discount",
"description": "Create a discount for a store. Fixed discounts take an amount in the smallest currency\nunit (e.g. $10 is 1000); percentage discounts take a whole-number value between 1 and 100.\nFree-shipping discounts ignore value. Returns the created discount.",
"operationId": "ecommerce_createADiscountV1",
"parameters": [
{
"name": "store_id",
"in": "path",
"description": "The ID of the store to create the discount for.",
"required": true,
"schema": {
"type": "string",
"example": "store_01J8Z5F8W9K8M4A7B3C2D1E0FG"
}
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Ecommerce.V1.Discount.CreateDiscountRequest"
}
}
}
},
"responses": {
"201": {
"description": "Created response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Ecommerce.V1.Discount.DiscountResponseResource"
}
}
}
},
"422": {
"$ref": "#/components/responses/Common.Response.UnprocessableContentResponse"
},
"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}/orders/{order_id}/cancel": {
"post": {
"tags": [
"Ecommerce: Orders"
],
"summary": "Cancel an order",
"description": "Cancel the order and optionally email the customer. Returns the updated order summary.",
"operationId": "ecommerce_cancelAnOrderV1",
"parameters": [
{
"name": "store_id",
"in": "path",
"description": "The ID of the store that owns the order.",
"required": true,
"schema": {
"type": "string",
"example": "store_01J8Z5F8W9K8M4A7B3C2D1E0FG"
}
},
{
"name": "order_id",
"in": "path",
"description": "The ID of the order to cancel.",
"required": true,
"schema": {
"type": "string",
"example": "order_01J8Z5F8W9K8M4A7B3C2D1E0FG"
}
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Ecommerce.V1.Order.CancelRequest"
}
}
}
},
"responses": {
"200": {
"description": "Success response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Ecommerce.V1.Order.OrderResponseResource"
}
}
}
},
"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}/orders/{order_id}/fulfill": {
"post": {
"tags": [
"Ecommerce: Orders"
],
"summary": "Fulfil an order",
"description": "Create a fulfilment for the order and attach tracking in one call. Omit items to fulfil\nevery remaining unfulfilled item. Returns the updated order summary.",
"operationId": "ecommerce_fulfilAnOrderV1",
"parameters": [
{
"name": "store_id",
"in": "path",
"description": "The ID of the store that owns the order.",
"required": true,
"schema": {
"type": "string",
"example": "store_01J8Z5F8W9K8M4A7B3C2D1E0FG"
}
},
{
"name": "order_id",
"in": "path",
"description": "The ID of the order to fulfil.",
"required": true,
"schema": {
"type": "string",
"example": "order_01J8Z5F8W9K8M4A7B3C2D1E0FG"
}
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Ecommerce.V1.Order.FulfillRequest"
}
}
}
},
"responses": {
"200": {
"description": "Success response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Ecommerce.V1.Order.OrderResponseResource"
}
}
}
},
"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}/orders": {
"get": {
"tags": [
"Ecommerce: Orders"
],
"summary": "List store orders",
"description": "List a store's orders newest first as summaries. Filter by status, payment or fulfilment\nstatus, customer email, order number or a free-text query. Amounts are in the smallest\ncurrency unit. Retrieve a single order for its line items, addresses and fulfilments.",
"operationId": "ecommerce_listStoreOrdersV1",
"parameters": [
{
"name": "store_id",
"in": "path",
"description": "The ID of the store to list orders for.",
"required": true,
"schema": {
"type": "string",
"example": "store_01J8Z5F8W9K8M4A7B3C2D1E0FG"
}
},
{
"name": "status",
"in": "query",
"description": "Order statuses to include.",
"required": false,
"schema": {
"type": "array",
"items": {
"type": "string",
"enum": [
"pending",
"completed",
"archived",
"canceled",
"requires_action"
]
}
}
},
{
"name": "payment_status",
"in": "query",
"description": "Payment statuses to include. A paid order is \"captured\".",
"required": false,
"schema": {
"type": "array",
"items": {
"type": "string",
"enum": [
"not_paid",
"awaiting",
"captured",
"partially_refunded",
"refunded",
"canceled",
"requires_action",
"not_required"
]
}
}
},
{
"name": "fulfillment_status",
"in": "query",
"description": "Fulfilment statuses to include.",
"required": false,
"schema": {
"type": "array",
"items": {
"type": "string",
"enum": [
"not_fulfilled",
"partially_fulfilled",
"fulfilled",
"partially_shipped",
"shipped",
"partially_returned",
"returned",
"canceled",
"requires_action"
]
}
}
},
{
"name": "email",
"in": "query",
"description": "Customer email, matched exactly.",
"required": false,
"schema": {
"type": "string",
"example": "[email protected]"
}
},
{
"name": "display_id",
"in": "query",
"description": "The order number the merchant and customer see.",
"required": false,
"schema": {
"type": "string",
"example": "1042"
}
},
{
"name": "q",
"in": "query",
"description": "Free-text search over customer name, email, order number and line items.",
"required": false,
"schema": {
"type": "string",
"example": "blue shirt"
}
},
{
"name": "created_at_from",
"in": "query",
"description": "Earliest creation time to include, inclusive. Accepts a date or ISO date-time (UTC).",
"required": false,
"schema": {
"type": "string",
"example": "2026-01-01"
}
},
{
"name": "created_at_to",
"in": "query",
"description": "Latest creation time to include, inclusive. A bare date covers that whole day.",
"required": false,
"schema": {
"type": "string",
"example": "2026-01-31"
}
},
{
"$ref": "#/components/parameters/page"
}
],
"responses": {
"200": {
"description": "Success response",
"content": {
"application/json": {
"schema": {
"properties": {
"data": {
"$ref": "#/components/schemas/Ecommerce.V1.Order.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/ecommerce/v1/stores/{store_id}/orders/{order_id}": {
"get": {
"tags": [
"Ecommerce: Orders"
],
"summary": "Retrieve an order",
"description": "Retrieve one order in full: line items (each with the id the fulfil endpoint needs),\naddresses, the totals breakdown and fulfilments with tracking. Amounts are in the\nsmallest currency unit.",
"operationId": "ecommerce_retrieveAnOrderV1",
"parameters": [
{
"name": "store_id",
"in": "path",
"description": "The ID of the store that owns the order.",
"required": true,
"schema": {
"type": "string",
"example": "store_01J8Z5F8W9K8M4A7B3C2D1E0FG"
}
},
{
"name": "order_id",
"in": "path",
"description": "The ID of the order to retrieve.",
"required": true,
"schema": {
"type": "string",
"example": "order_01J8Z5F8W9K8M4A7B3C2D1E0FG"
}
}
],
"responses": {
"200": {
"description": "Success response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Ecommerce.V1.Order.OrderDetailResponseResource"
}
}
}
},
"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}/payment-providers/{provider_id}/connect-link": {
"post": {
"tags": [
"Ecommerce: Payments"
],
"summary": "Create a payment provider connect link",
"description": "Create an onboarding link for connecting a payment gateway to the store. Returns the gateway\nonboarding URL for the merchant to open and a deep-link into the store admin.",
"operationId": "ecommerce_createAPaymentProviderConnectLinkV1",
"parameters": [
{
"name": "store_id",
"in": "path",
"description": "The ID of the store to connect the payment provider to.",
"required": true,
"schema": {
"type": "string",
"example": "store_01J8Z5F8W9K8M4A7B3C2D1E0FG"
}
},
{
"name": "provider_id",
"in": "path",
"description": "The ID of the payment gateway to connect, e.g. stripe.",
"required": true,
"schema": {
"type": "string",
"example": "stripe"
}
}
],
"responses": {
"201": {
"description": "Created response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Ecommerce.V1.PaymentProvider.PaymentProviderConnectLinkResource"
}
}
}
},
"401": {
"$ref": "#/components/responses/Common.Response.UnauthorizedResponse"
},
"500": {
"$ref": "#/components/responses/Common.Response.ErrorResponse"
}
}
}
},
"/api/ecommerce/v1/stores/{store_id}/payment-providers": {
"get": {
"tags": [
"Ecommerce: Payments"
],
"summary": "List store payment providers",
"description": "List a store's payment providers, split into providers already connected to the store and\ngateways available to install. Never exposes gateway credentials, secrets, or configuration.",
"operationId": "ecommerce_listStorePaymentProvidersV1",
"parameters": [
{
"name": "store_id",
"in": "path",
"description": "The ID of the store to list payment providers for.",
"required": true,
"schema": {
"type": "string",
"example": "store_01J8Z5F8W9K8M4A7B3C2D1E0FG"
}
},
{
"name": "include_currency_unsupported",
"in": "query",
"description": "Include gateways that do not support the store currency in the available list.",
"required": false,
"schema": {
"type": "boolean",
"example": true
}
}
],
"responses": {
"200": {
"description": "Success response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Ecommerce.V1.PaymentProvider.PaymentProviderListResource"
}
}
}
},
"401": {
"$ref": "#/components/responses/Common.Response.UnauthorizedResponse"
},
"500": {
"$ref": "#/components/responses/Common.Response.ErrorResponse"
}
}
}
},
"/api/ecommerce/v1/stores/{store_id}/products/{product_id}/images/upload-url": {
"post": {
"tags": [
"Ecommerce: Products"
],
"summary": "Create a product image upload URL",
"description": "Returns a signed URL to upload a product image to (multipart/form-data POST). Then call the\nattach-image endpoint with the returned object_name to scan and attach it to the product.",
"operationId": "ecommerce_createAProductImageUploadURLV1",
"parameters": [
{
"name": "store_id",
"in": "path",
"description": "The ID of the store the product belongs to.",
"required": true,
"schema": {
"type": "string",
"example": "store_01J8Z5F8W9K8M4A7B3C2D1E0FG"
}
},
{
"name": "product_id",
"in": "path",
"description": "The ID of the product the image will be attached to.",
"required": true,
"schema": {
"type": "string",
"example": "prod_01J8Z5F8W9K8M4A7B3C2D1E0FG"
}
}
],
"responses": {
"200": {
"description": "Success response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Ecommerce.V1.Product.ProductImageUploadUrlResource"
}
}
}
},
"401": {
"$ref": "#/components/responses/Common.Response.UnauthorizedResponse"
},
"500": {
"$ref": "#/components/responses/Common.Response.ErrorResponse"
}
}
}
},
"/api/ecommerce/v1/stores/{store_id}/products/{product_id}": {
"delete": {
"tags": [
"Ecommerce: Products"
],
"summary": "Delete a product",
"description": "Delete a product and its variants from the store. A subscription product with active\nsubscribers is archived instead of deleted so its data stays available.",
"operationId": "ecommerce_deleteAProductV1",
"parameters": [
{
"name": "store_id",
"in": "path",
"description": "The ID of the store that owns the product.",
"required": true,
"schema": {
"type": "string",
"example": "store_01J8Z5F8W9K8M4A7B3C2D1E0FG"
}
},
{
"name": "product_id",
"in": "path",
"description": "The ID of the product to delete.",
"required": true,
"schema": {
"type": "string",
"example": "prod_01J8Z5F8W9K8M4A7B3C2D1E0FG"
}
}
],
"responses": {
"200": {
"description": "Success response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Ecommerce.V1.Product.ProductDeletedResource"
}
}
}
},
"401": {
"$ref": "#/components/responses/Common.Response.UnauthorizedResponse"
},
"500": {
"$ref": "#/components/responses/Common.Response.ErrorResponse"
}
}
},
"patch": {
"tags": [
"Ecommerce: Products"
],
"summary": "Update a product",
"description": "Update a product's name, description, status, SEO settings or collections. Set status to\npublished to make it buyable, draft to hide it, or archived to retire it. SEO settings (title,\ndescription, slug) left out keep their values. collection_changes adds or removes collections\nwithout touching the others. Variants, prices and inventory are managed through the variant\nendpoints, not here. Returns the updated product summary.",
"operationId": "ecommerce_updateAProductV1",
"parameters": [
{
"name": "store_id",
"in": "path",
"description": "The ID of the store that owns the product.",
"required": true,
"schema": {
"type": "string",
"example": "store_01J8Z5F8W9K8M4A7B3C2D1E0FG"
}
},
{
"name": "product_id",
"in": "path",
"description": "The ID of the product to update.",
"required": true,
"schema": {
"type": "string",
"example": "prod_01J8Z5F8W9K8M4A7B3C2D1E0FG"
}
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Ecommerce.V1.Product.UpdateRequest"
}
}
}
},
"responses": {
"200": {
"description": "Success response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Ecommerce.V1.Product.ProductResponseResource"
}
}
}
},
"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": {
"get": {
"tags": [
"Ecommerce: Products"
],
"summary": "List products",
"description": "List a store's products newest first as lean summaries (name, status, thumbnail, variant\ncount and price range). Prices are integers in the smallest currency unit and live on\nvariants. Filter by status, free text or a set of product ids. Use include=variants to\nembed each product's variants with prices and inventory, and include=media to embed its media.",
"operationId": "ecommerce_listProductsV1",
"parameters": [
{
"name": "store_id",
"in": "path",
"description": "The ID of the store to list products for.",
"required": true,
"schema": {
"type": "string",
"example": "store_01J8Z5F8W9K8M4A7B3C2D1E0FG"
}
},
{
"name": "product_ids",
"in": "query",
"description": "Restrict to these product ids. Doubles as a single-product lookup. Up to 200 ids.",
"required": false,
"schema": {
"type": "array",
"items": {
"type": "string"
}
}
},
{
"name": "status",
"in": "query",
"description": "Product statuses to include.",
"required": false,
"schema": {
"type": "array",
"items": {
"type": "string",
"enum": [
"draft",
"proposed",
"published",
"rejected",
"archived"
]
}
}
},
{
"name": "q",
"in": "query",
"description": "Free-text search over product title and SKU.",
"required": false,
"schema": {
"type": "string",
"example": "blue shirt"
}
},
{
"name": "include",
"in": "query",
"description": "Opt-in heavy data: \"variants\" embeds each product's variants; \"media\" embeds its media.",
"required": false,
"schema": {
"type": "array",
"items": {
"type": "string",
"enum": [
"variants",
"media"
]
}
}
},
{
"$ref": "#/components/parameters/page"
}
],
"responses": {
"200": {
"description": "Success response",
"content": {
"application/json": {
"schema": {
"properties": {
"data": {
"$ref": "#/components/schemas/Ecommerce.V1.Product.ProductCollection"
},
"meta": {
"$ref": "#/components/schemas/Common.Schema.PaginationMetaSchema"
}
},
"type": "object"
}
}
}
},
"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}/products/{product_id}/images": {
"post": {
"tags": [
"Ecommerce: Products"
],
"summary": "Upload and attach a product image",
"description": "Fetch a raster image (JPEG, PNG, GIF or WebP, max 15MB) from a URL and attach it to a product in a\nsingle call. Image downloads require HTTPS on port 443 without embedded credentials. At most one redirect\nis allowed, and its destination must meet the same requirements. Private or reserved network\ndestinations, unsupported URLs and longer redirect chains are rejected. The image is virus-scanned\nand validated by content, then stored on the CDN. Set is_thumbnail to make it the product's primary image.",
"operationId": "ecommerce_uploadAndAttachAProductImageV1",
"parameters": [
{
"name": "store_id",
"in": "path",
"description": "The ID of the store the product belongs to.",
"required": true,
"schema": {
"type": "string",
"example": "store_01J8Z5F8W9K8M4A7B3C2D1E0FG"
}
},
{
"name": "product_id",
"in": "path",
"description": "The ID of the product to attach the image to.",
"required": true,
"schema": {
"type": "string",
"example": "prod_01J8Z5F8W9K8M4A7B3C2D1E0FG"
}
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Ecommerce.V1.Product.UploadProductImageRequest"
}
}
}
},
"responses": {
"200": {
"description": "Success response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Ecommerce.V1.Product.ProductImageUploadResource"
}
}
}
},
"400": {
"$ref": "#/components/responses/Common.Response.ErrorResponse"
},
"502": {
"$ref": "#/components/responses/Common.Response.ErrorResponse"
},
"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 sales channel",
"description": "Create a sales channel for a store. A \"custom\" channel is headless: build your own frontend and keep\nyour catalog, orders, shipping and payments in sync through the Ecommerce API. A \"quick-link\" channel\nis a hosted one-page store whose handle is auto-generated.",
"operationId": "ecommerce_createASalesChannelV1",
"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}/sales-channels/{sales_channel_id}": {
"patch": {
"tags": [
"Ecommerce: Sales channels"
],
"summary": "Update sales channel",
"description": "Update a custom sales channel. The merchant-facing `name` and the public `url`\n(returned as the channel `domain`) can be changed. Pass `null` to clear a value.",
"operationId": "ecommerce_updateSalesChannelV1",
"parameters": [
{
"name": "store_id",
"in": "path",
"description": "The ID of the store that owns the sales channel.",
"required": true,
"schema": {
"type": "string",
"example": "store_01J8Z5F8W9K8M4A7B3C2D1E0FG"
}
},
{
"name": "sales_channel_id",
"in": "path",
"description": "The ID of the sales channel to update.",
"required": true,
"schema": {
"type": "string",
"example": "scha_01J8Z5F8W9K8M4A7B3C2D1E0FG"
}
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Ecommerce.V1.SalesChannel.UpdateRequest"
}
}
}
},
"responses": {
"200": {
"description": "Success response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Ecommerce.V1.SalesChannel.SalesChannelUpdateResource"
}
}
}
},
"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/ecommerce/v1/stores/{store_id}/metadata": {
"get": {
"tags": [
"Ecommerce: Stores"
],
"summary": "Get store metadata",
"description": "Get a store's readiness metadata: whether payment methods and shipping are configured,\nplus its default currency. Useful to verify prerequisites before building a storefront.",
"operationId": "ecommerce_getStoreMetadataV1",
"parameters": [
{
"name": "store_id",
"in": "path",
"description": "The ID of the store to read metadata for.",
"required": true,
"schema": {
"type": "string",
"example": "store_01J8Z5F8W9K8M4A7B3C2D1E0FG"
}
}
],
"responses": {
"200": {
"description": "Success response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Ecommerce.V1.Store.StoreMetadataResource"
}
}
}
},
"401": {
"$ref": "#/components/responses/Common.Response.UnauthorizedResponse"
},
"500": {
"$ref": "#/components/responses/Common.Response.ErrorResponse"
}
}
}
},
"/api/ecommerce/v1/stores/{store_id}/products/{product_id}/variants/batch": {
"patch": {
"tags": [
"Ecommerce: Product variants"
],
"summary": "Update product variants in batch",
"description": "Update up to 100 existing variants in place by id â title, SKU, inventory, stock tracking\nand prices. Variants omitted from the request are left untouched. Prices replace the variant's\nexisting prices in full. Returns the updated variants.",
"operationId": "ecommerce_updateProductVariantsInBatchV1",
"parameters": [
{
"name": "store_id",
"in": "path",
"description": "The ID of the store that owns the product.",
"required": true,
"schema": {
"type": "string",
"example": "store_01J8Z5F8W9K8M4A7B3C2D1E0FG"
}
},
{
"name": "product_id",
"in": "path",
"description": "The ID of the product whose variants are being updated.",
"required": true,
"schema": {
"type": "string",
"example": "prod_01J8Z5F8W9K8M4A7B3C2D1E0FG"
}
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Ecommerce.V1.Variant.BatchUpdateVariantsRequest"
}
}
}
},
"responses": {
"200": {
"description": "Success response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Ecommerce.V1.Variant.VariantListResponseResource"
}
}
}
},
"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/{product_id}/variants/{variant_id}": {
"delete": {
"tags": [
"Ecommerce: Product variants"
],
"summary": "Delete a product variant",
"description": "Delete a single variant from the product.",
"operationId": "ecommerce_deleteAProductVariantV1",
"parameters": [
{
"name": "store_id",
"in": "path",
"description": "The ID of the store that owns the product.",
"required": true,
"schema": {
"type": "string",
"example": "store_01J8Z5F8W9K8M4A7B3C2D1E0FG"
}
},
{
"name": "product_id",
"in": "path",
"description": "The ID of the product that owns the variant.",
"required": true,
"schema": {
"type": "string",
"example": "prod_01J8Z5F8W9K8M4A7B3C2D1E0FG"
}
},
{
"name": "variant_id",
"in": "path",
"description": "The ID of the variant to delete.",
"required": true,
"schema": {
"type": "string",
"example": "variant_01J8Z5F8W9K8M4A7B3C2D1E0FG"
}
}
],
"responses": {
"200": {
"description": "Success response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Ecommerce.V1.Variant.VariantDeletedResource"
}
}
}
},
"401": {
"$ref": "#/components/responses/Common.Response.UnauthorizedResponse"
},
"500": {
"$ref": "#/components/responses/Common.Response.ErrorResponse"
}
}
}
},
"/api/ecommerce/v1/stores/{store_id}/products/{product_id}/variants": {
"get": {
"tags": [
"Ecommerce: Product variants"
],
"summary": "List product variants",
"description": "List a product's variants, ordered by rank, with their options, prices and inventory.\nPrices are integers in the smallest currency unit and live on variants.",
"operationId": "ecommerce_listProductVariantsV1",
"parameters": [
{
"name": "store_id",
"in": "path",
"description": "The ID of the store that owns the product.",
"required": true,
"schema": {
"type": "string",
"example": "store_01J8Z5F8W9K8M4A7B3C2D1E0FG"
}
},
{
"name": "product_id",
"in": "path",
"description": "The ID of the product to list variants for.",
"required": true,
"schema": {
"type": "string",
"example": "prod_01J8Z5F8W9K8M4A7B3C2D1E0FG"
}
},
{
"$ref": "#/components/parameters/page"
}
],
"responses": {
"200": {
"description": "Success response",
"content": {
"application/json": {
"schema": {
"properties": {
"data": {
"$ref": "#/components/schemas/Ecommerce.V1.Variant.VariantCollection"
},
"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: Product variants"
],
"summary": "Create a product variant",
"description": "Add a variant to a product along one or more option dimensions (e.g. Size, Color). Options\nmissing from the product are created automatically; provide a value for every option the\nproduct already has. Prices are integers in the smallest currency unit and default to the\nstore currency. Returns the created variant.",
"operationId": "ecommerce_createAProductVariantV1",
"parameters": [
{
"name": "store_id",
"in": "path",
"description": "The ID of the store that owns the product.",
"required": true,
"schema": {
"type": "string",
"example": "store_01J8Z5F8W9K8M4A7B3C2D1E0FG"
}
},
{
"name": "product_id",
"in": "path",
"description": "The ID of the product to add the variant to.",
"required": true,
"schema": {
"type": "string",
"example": "prod_01J8Z5F8W9K8M4A7B3C2D1E0FG"
}
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Ecommerce.V1.Variant.CreateVariantRequest"
}
}
}
},
"responses": {
"201": {
"description": "Created response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Ecommerce.V1.Variant.VariantResponseResource"
}
}
}
},
"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}/webhooks/{endpoint_id}": {
"get": {
"tags": [
"Ecommerce: Webhooks"
],
"summary": "Get an ecommerce webhook",
"description": "Get a subscription owned by your store, without signing secrets.",
"operationId": "ecommerce_getAnEcommerceWebhookV1",
"parameters": [
{
"name": "store_id",
"in": "path",
"description": "ID of the store owned by your account.",
"required": true,
"schema": {
"type": "string",
"example": "store_01J8Z5F8W9K8M4A7B3C2D1E0FG"
}
},
{
"name": "endpoint_id",
"in": "path",
"description": "Webhook endpoint ID belonging to this store.",
"required": true,
"schema": {
"type": "string",
"example": "whep_01J8Z5F8W9K8M4A7B3C2D1E0FG"
}
}
],
"responses": {
"200": {
"description": "Success response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Ecommerce.V1.Webhook.WebhookResource"
}
}
}
},
"401": {
"$ref": "#/components/responses/Common.Response.UnauthorizedResponse"
},
"404": {
"$ref": "#/components/responses/Common.Response.ErrorResponse"
},
"500": {
"$ref": "#/components/responses/Common.Response.ErrorResponse"
}
}
},
"delete": {
"tags": [
"Ecommerce: Webhooks"
],
"summary": "Delete an ecommerce webhook",
"description": "Delete a subscription owned by your store, retaining delivery audit records.",
"operationId": "ecommerce_deleteAnEcommerceWebhookV1",
"parameters": [
{
"name": "store_id",
"in": "path",
"description": "ID of the store owned by your account.",
"required": true,
"schema": {
"type": "string",
"example": "store_01J8Z5F8W9K8M4A7B3C2D1E0FG"
}
},
{
"name": "endpoint_id",
"in": "path",
"description": "Webhook endpoint ID belonging to this store.",
"required": true,
"schema": {
"type": "string",
"example": "whep_01J8Z5F8W9K8M4A7B3C2D1E0FG"
}
}
],
"responses": {
"200": {
"description": "Success response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Common.SuccessEmptyResource"
}
}
}
},
"401": {
"$ref": "#/components/responses/Common.Response.UnauthorizedResponse"
},
"404": {
"$ref": "#/components/responses/Common.Response.ErrorResponse"
},
"500": {
"$ref": "#/components/responses/Common.Response.ErrorResponse"
}
}
},
"patch": {
"tags": [
"Ecommerce: Webhooks"
],
"summary": "Update an ecommerce webhook",
"description": "Change the receiver, events, channel filter or enabled state. Omitted fields are preserved; a null\nchannel filter restores store-wide delivery. Endpoints disabled automatically after a 410 Gone\n(receiver_gone) or persistent delivery failures (receiver_failing) resume with enabled: true; events\nfrom the disabled period are not sent. Lifecycle-revoked endpoints cannot be enabled again: delete\nthem and create fresh subscriptions after recovery.\n\n400 codes: webhook_destination_not_allowed (the new URL, or the saved URL when enabling, is not a public\ndestination), webhook_sales_channel_invalid. 409 codes: webhook_endpoint_revoked, webhook_store_inactive,\nwebhook_endpoint_catalog_busy (retry). Errors return the upstream code in `message`, as\n`[Ecommerce: Hello, traveler!] ] ] Email Template
"
}
},
"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.PocketBase.BackendCreatedResource": {
"required": [
"instance_id",
"domain",
"api_url",
"admin_url",
"superuser_email",
"superuser_password",
"state",
"version",
"next_steps"
],
"properties": {
"instance_id": {
"description": "PocketBase instance ID",
"type": "string",
"example": "pb-u123456789-k3x9q2m7a1zdw8n4c5"
},
"domain": {
"description": "Website domain that serves the PocketBase API",
"type": "string",
"example": "example.com"
},
"api_url": {
"description": "Base URL of the PocketBase REST API",
"type": "string",
"example": "https://example.com/api/"
},
"admin_url": {
"description": "URL of the PocketBase dashboard",
"type": "string",
"example": "https://example.com/_/"
},
"superuser_email": {
"description": "Email of the superuser set up when the backend was created",
"type": "string",
"example": "[email protected]",
"nullable": true
},
"superuser_password": {
"description": "Password of that superuser, generated when the request had none. Returned only here:\nHostinger does not store it, so save it right away.",
"type": "string",
"example": "Xk7mQ2pRt9vNw4LhZc8sYb3D",
"nullable": true
},
"state": {
"description": "Live process state. The instance sleeps when idle and wakes on the first request.\nUsually null right after creation.",
"type": "string",
"enum": [
"asleep",
"starting",
"running",
"stopping",
"failed",
"unregistered",
"unknown",
"missing"
],
"example": "asleep",
"nullable": true
},
"version": {
"description": "PocketBase version",
"type": "string",
"example": "0.30.0",
"nullable": true
},
"next_steps": {
"description": "What to do next with this backend",
"type": "array",
"items": {
"type": "string",
"example": "Connect with the PocketBase JS SDK: new PocketBase('https://example.com')."
}
}
},
"type": "object"
},
"Hosting.V1.PocketBase.BackendResource": {
"required": [
"instance_id",
"domain",
"api_url",
"admin_url",
"state",
"failure_reason",
"retry_after_seconds",
"version",
"next_steps"
],
"properties": {
"instance_id": {
"description": "PocketBase instance ID",
"type": "string",
"example": "pb-u123456789-k3x9q2m7a1zdw8n4c5"
},
"domain": {
"description": "Website domain that serves the PocketBase API",
"type": "string",
"example": "example.com"
},
"api_url": {
"description": "Base URL of the PocketBase REST API",
"type": "string",
"example": "https://example.com/api/"
},
"admin_url": {
"description": "URL of the PocketBase dashboard",
"type": "string",
"example": "https://example.com/_/"
},
"state": {
"description": "Live process state. The instance sleeps when idle and wakes on the first request.\nNull when the server could not be reached.",
"type": "string",
"enum": [
"asleep",
"starting",
"running",
"stopping",
"failed",
"unregistered",
"unknown",
"missing"
],
"example": "asleep",
"nullable": true
},
"failure_reason": {
"description": "Why the last start did not succeed, set only while `state` is `failed`. `process_limit` means the\nhosting account has no free process slots, usually because its Node.js apps are running;\n`start_failed` is any other cause.",
"type": "string",
"enum": [
"process_limit",
"start_failed"
],
"example": "process_limit",
"nullable": true
},
"retry_after_seconds": {
"description": "Seconds until Hostinger tries to start the instance again, set only while `state` is `failed`.\nNull when the next try is due now.",
"type": "integer",
"example": 300,
"nullable": true
},
"version": {
"description": "PocketBase version",
"type": "string",
"example": "0.30.0",
"nullable": true
},
"next_steps": {
"description": "What to do next with this backend",
"type": "array",
"items": {
"type": "string",
"example": "Connect with the PocketBase JS SDK: new PocketBase('https://example.com')."
}
}
},
"type": "object"
},
"Hosting.V1.PocketBase.InstanceCollection": {
"description": "Array of [`Hosting.V1.PocketBase.InstanceResource`](#model/hostingv1pocketbaseinstanceresource)",
"type": "array",
"items": {
"$ref": "#/components/schemas/Hosting.V1.PocketBase.InstanceResource"
}
},
"Hosting.V1.PocketBase.InstanceResource": {
"required": [
"instance_id",
"domain",
"api_url",
"admin_url",
"state",
"failure_reason",
"retry_after_seconds",
"version",
"disk_usage_kb"
],
"properties": {
"instance_id": {
"description": "PocketBase instance ID",
"type": "string",
"example": "pb-u123456789-k3x9q2m7a1zdw8n4c5"
},
"domain": {
"description": "Website domain that serves the PocketBase API",
"type": "string",
"example": "example.com"
},
"api_url": {
"description": "Base URL of the PocketBase REST API",
"type": "string",
"example": "https://example.com/api/"
},
"admin_url": {
"description": "URL of the PocketBase dashboard",
"type": "string",
"example": "https://example.com/_/"
},
"state": {
"description": "Live process state. The instance sleeps when idle and wakes on the first request.\nNull when the server could not be reached.",
"type": "string",
"enum": [
"asleep",
"starting",
"running",
"stopping",
"failed",
"unregistered",
"unknown",
"missing"
],
"example": "asleep",
"nullable": true
},
"failure_reason": {
"description": "Why the last start did not succeed, set only while `state` is `failed`. `process_limit` means the\nhosting account has no free process slots, usually because its Node.js apps are running;\n`start_failed` is any other cause.",
"type": "string",
"enum": [
"process_limit",
"start_failed"
],
"example": "process_limit",
"nullable": true
},
"retry_after_seconds": {
"description": "Seconds until Hostinger tries to start the instance again, set only while `state` is `failed`.\nNull when the next try is due now.",
"type": "integer",
"example": 300,
"nullable": true
},
"version": {
"description": "PocketBase version",
"type": "string",
"example": "0.30.0",
"nullable": true
},
"disk_usage_kb": {
"description": "Disk space used by the instance data, in KB",
"type": "integer",
"example": 1024,
"nullable": true
}
},
"type": "object"
},
"Hosting.V1.PocketBase.SuperuserResource": {
"required": [
"domain",
"superuser_email",
"superuser_password"
],
"properties": {
"domain": {
"description": "Website domain that serves the PocketBase API",
"type": "string",
"example": "example.com"
},
"superuser_email": {
"description": "Email of the superuser that was created or got the new password",
"type": "string",
"example": "[email protected]"
},
"superuser_password": {
"description": "The new password of that superuser, generated when the request had none. Hostinger does not\nstore it and will not show it again, so save it right away.",
"type": "string",
"example": "Xk7mQ2pRt9vNw4LhZc8sYb3D"
}
},
"type": "object"
},
"Hosting.V1.Redirects.RedirectCollection": {
"description": "Array of [`Hosting.V1.Redirects.RedirectResource`](#model/hostingv1redirectsredirectresource)",
"type": "array",
"items": {
"$ref": "#/components/schemas/Hosting.V1.Redirects.RedirectResource"
}
},
"Hosting.V1.Redirects.RedirectResource": {
"properties": {
"from": {
"description": "Source URL",
"type": "string",
"example": "https://example.com/old-page"
},
"to": {
"description": "Destination URL",
"type": "string",
"example": "https://example.com/new-page"
}
},
"type": "object"
},
"Hosting.V1.Ssl.SslStatusResource": {
"required": [
"status",
"provider",
"is_lifetime",
"is_https_redirect_enabled",
"expires_at",
"last_error"
],
"properties": {
"status": {
"description": "Current certificate status",
"type": "string",
"enum": [
"not_installed",
"installing",
"waiting_for_retry",
"active",
"expired",
"failed"
],
"example": "active"
},
"provider": {
"description": "Provider of the assigned certificate, or of the last recorded installation when none is\nassigned. `custom` means an uploaded certificate. Null when no certificate is assigned and\nno installation is recorded, which is also the case for free subdomains on the\nplatform-managed certificate.",
"type": "string",
"enum": [
"custom",
"letsencrypt",
"zerossl",
"googlessl",
"hssl"
],
"example": "letsencrypt",
"nullable": true
},
"is_lifetime": {
"description": "Whether the certificate comes from a lifetime provider managed by the platform, not an\nuploaded one. Follows `provider`: it reflects the last recorded installation when no\ncertificate is assigned, and is false when `provider` is null.",
"type": "boolean",
"example": true
},
"is_https_redirect_enabled": {
"description": "Whether HTTP requests to the website are redirected to HTTPS",
"type": "boolean",
"example": true
},
"expires_at": {
"description": "End of the assigned certificate validity period; null when no certificate details are\navailable.",
"type": "string",
"format": "date-time",
"example": "2027-01-15T10:30:00Z",
"nullable": true
},
"last_error": {
"description": "Last installation error, when it is one of the known displayable messages",
"type": "string",
"example": "Max attempts to retry were reached",
"nullable": true
}
},
"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. Null for U4S websites with no domain attached.",
"type": "string",
"example": "example.com",
"nullable": true
},
"vhost_type": {
"description": "Virtual host type. Only present for CloudLinux websites.",
"type": "string",
"enum": [
"main",
"addon",
"parked",
"subdomain"
],
"example": "main",
"nullable": true
},
"is_enabled": {
"description": "True unless the website is suspended. Not a readiness signal: a website that is still being set up is enabled too, see the list website setups endpoint.",
"type": "boolean",
"example": true
},
"username": {
"description": "Username. Not applicable for U4S websites.",
"type": "string",
"example": "cl_user123",
"nullable": true
},
"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. Only present for CloudLinux websites.",
"type": "string",
"example": "/home/u123456798/domains/example.com/public_html",
"nullable": true
},
"parent_domain": {
"description": "Parent domain",
"type": "string",
"example": "parent.com",
"nullable": true
},
"website_type": {
"description": "Type of website detected on the underlying platform.",
"type": "string",
"enum": [
"wordpress",
"builder",
"horizons",
"nodejs",
"other"
],
"example": "wordpress"
},
"horizons_uuid": {
"description": "Horizons UUID. Only present for horizons websites.",
"type": "string",
"example": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"nullable": true
}
},
"type": "object"
},
"Mail.V1.Aliases.AliasCollection": {
"description": "Array of [`Mail.V1.Aliases.AliasResource`](#model/mailv1aliasesaliasresource)",
"type": "array",
"items": {
"$ref": "#/components/schemas/Mail.V1.Aliases.AliasResource"
}
},
"Mail.V1.Aliases.AliasMailboxResource": {
"properties": {
"id": {
"description": "Mailbox resource ID",
"type": "string",
"example": "AC1a2b3c4d5e6f7g"
},
"address": {
"type": "string",
"example": "[email protected]"
}
},
"type": "object"
},
"Mail.V1.Aliases.AliasResource": {
"properties": {
"id": {
"description": "Unique alias identifier",
"type": "string",
"example": "AA1a2b3c4d5e6f7g"
},
"address": {
"description": "Email address of the alias",
"type": "string",
"example": "[email protected]"
},
"mailbox": {
"$ref": "#/components/schemas/Mail.V1.Aliases.AliasMailboxResource"
},
"is_active": {
"description": "Whether the alias is active and not suspended",
"type": "boolean",
"example": true
},
"created_at": {
"type": "string",
"format": "date-time",
"example": "2026-07-27T12:00:00Z",
"nullable": true
},
"updated_at": {
"type": "string",
"format": "date-time",
"example": "2026-07-27T12:00:00Z"
}
},
"type": "object"
},
"Mail.V1.ApiTokens.ApiTokenCollection": {
"description": "Array of [`Mail.V1.ApiTokens.ApiTokenResource`](#model/mailv1apitokensapitokenresource)",
"type": "array",
"items": {
"$ref": "#/components/schemas/Mail.V1.ApiTokens.ApiTokenResource"
}
},
"Mail.V1.ApiTokens.ApiTokenCreatedResource": {
"properties": {
"id": {
"description": "Unique API token identifier",
"type": "string",
"example": "019683f8-1234-7abc-8def-0123456789ab"
},
"token": {
"description": "Plaintext API token, returned only in this response. Grants access to the mailboxes it is scoped to through the [Hostinger Mail API](https://api.mail.hostinger.com/).",
"type": "string",
"example": "4a6f8b2d1e9c3f7a0b5d8e2c4f1a7b3d9e6c2f8a1b4d7e0c3f6a9b2d5e8c1f4a"
},
"name": {
"description": "Human-readable label for this token",
"type": "string",
"example": "CRM integration",
"nullable": true
},
"scope": {
"$ref": "#/components/schemas/Mail.V1.ApiTokens.ApiTokenScopeResource"
},
"created_at": {
"type": "string",
"format": "date-time",
"example": "2026-05-05T12:00:00Z"
},
"type": {
"type": "string",
"enum": [
"api_token",
"oauth"
],
"example": "api_token"
}
},
"type": "object"
},
"Mail.V1.ApiTokens.ApiTokenMailboxResource": {
"properties": {
"id": {
"description": "Mailbox resource ID",
"type": "string",
"example": "AC1a2b3c4d5e6f7g"
},
"address": {
"type": "string",
"example": "[email protected]"
}
},
"type": "object"
},
"Mail.V1.ApiTokens.ApiTokenResource": {
"properties": {
"id": {
"description": "Unique API token identifier",
"type": "string",
"example": "019683f8-1234-7abc-8def-0123456789ab"
},
"order_id": {
"description": "Resource ID of the owning mail order",
"type": "string",
"example": "OR1a2b3c4d5e6f7g",
"nullable": true
},
"name": {
"description": "Human-readable label for this token",
"type": "string",
"example": "CRM integration",
"nullable": true
},
"scope": {
"$ref": "#/components/schemas/Mail.V1.ApiTokens.ApiTokenScopeResource"
},
"created_at": {
"type": "string",
"format": "date-time",
"example": "2026-05-05T12:00:00Z"
},
"last_used_at": {
"description": "Last successful authentication using this token",
"type": "string",
"format": "date-time",
"example": "2026-05-15T08:30:00Z",
"nullable": true
},
"type": {
"type": "string",
"enum": [
"api_token",
"oauth"
],
"example": "api_token"
}
},
"type": "object"
},
"Mail.V1.ApiTokens.ApiTokenScopeResource": {
"properties": {
"has_all_mailboxes": {
"description": "Whether the token covers all current and future mailboxes of the order",
"type": "boolean",
"example": false
},
"mailboxes": {
"description": "Mailboxes this token grants access to. Empty when `has_all_mailboxes` is true.",
"type": "array",
"items": {
"$ref": "#/components/schemas/Mail.V1.ApiTokens.ApiTokenMailboxResource"
}
}
},
"type": "object"
},
"Mail.V1.Autoreplies.AutoreplyCollection": {
"description": "Array of [`Mail.V1.Autoreplies.AutoreplyResource`](#model/mailv1autorepliesautoreplyresource)",
"type": "array",
"items": {
"$ref": "#/components/schemas/Mail.V1.Autoreplies.AutoreplyResource"
}
},
"Mail.V1.Autoreplies.AutoreplyMailboxResource": {
"properties": {
"id": {
"description": "Mailbox resource ID",
"type": "string",
"example": "AC1a2b3c4d5e6f7g"
},
"address": {
"type": "string",
"example": "[email protected]"
}
},
"type": "object"
},
"Mail.V1.Autoreplies.AutoreplyResource": {
"properties": {
"id": {
"description": "Unique autoreply identifier",
"type": "string",
"example": "AR1a2b3c4d5e6f7g"
},
"mailbox": {
"$ref": "#/components/schemas/Mail.V1.Autoreplies.AutoreplyMailboxResource"
},
"subject": {
"description": "Subject of the automatic reply",
"type": "string",
"example": "Out of office"
},
"body": {
"description": "Body of the automatic reply",
"type": "string",
"example": "I am on vacation until August 1st."
},
"display_name": {
"description": "Sender display name used for the reply",
"type": "string",
"example": "John Doe",
"nullable": true
},
"starts_at": {
"description": "When the autoreply becomes active",
"type": "string",
"format": "date-time",
"example": "2026-08-01T00:00:00Z"
},
"ends_at": {
"description": "When the autoreply stops",
"type": "string",
"format": "date-time",
"example": "2026-09-01T00:00:00Z",
"nullable": true
},
"created_at": {
"type": "string",
"format": "date-time",
"example": "2026-07-24T12:00:00Z"
},
"updated_at": {
"type": "string",
"format": "date-time",
"example": "2026-07-24T12:00:00Z"
}
},
"type": "object"
},
"Mail.V1.Catchalls.CatchallCollection": {
"description": "Array of [`Mail.V1.Catchalls.CatchallResource`](#model/mailv1catchallscatchallresource)",
"type": "array",
"items": {
"$ref": "#/components/schemas/Mail.V1.Catchalls.CatchallResource"
}
},
"Mail.V1.Catchalls.CatchallMailboxResource": {
"properties": {
"id": {
"description": "Mailbox resource ID",
"type": "string",
"example": "AC1a2b3c4d5e6f7g"
},
"address": {
"type": "string",
"example": "[email protected]"
}
},
"type": "object"
},
"Mail.V1.Catchalls.CatchallResource": {
"properties": {
"id": {
"description": "Unique catch-all identifier",
"type": "string",
"example": "CA1a2b3c4d5e6f7g"
},
"mailbox": {
"$ref": "#/components/schemas/Mail.V1.Catchalls.CatchallMailboxResource"
},
"domain": {
"description": "Domain whose unrouted messages are caught",
"type": "string",
"example": "example.com"
},
"is_active": {
"description": "Whether the catch-all is active",
"type": "boolean",
"example": true
},
"is_confirmed": {
"description": "Whether the mailbox address has confirmed the catch-all",
"type": "boolean",
"example": true
},
"created_at": {
"type": "string",
"format": "date-time",
"example": "2026-07-27T12:00:00Z"
},
"updated_at": {
"type": "string",
"format": "date-time",
"example": "2026-07-27T12:00:00Z"
}
},
"type": "object"
},
"Mail.V1.Forwarders.ForwarderCollection": {
"description": "Array of [`Mail.V1.Forwarders.ForwarderResource`](#model/mailv1forwardersforwarderresource)",
"type": "array",
"items": {
"$ref": "#/components/schemas/Mail.V1.Forwarders.ForwarderResource"
}
},
"Mail.V1.Forwarders.ForwarderMailboxResource": {
"properties": {
"id": {
"description": "Mailbox resource ID",
"type": "string",
"example": "AC1a2b3c4d5e6f7g"
},
"address": {
"type": "string",
"example": "[email protected]"
}
},
"type": "object"
},
"Mail.V1.Forwarders.ForwarderResource": {
"properties": {
"id": {
"description": "Unique forwarder identifier",
"type": "string",
"example": "FW1a2b3c4d5e6f7g"
},
"mailbox": {
"$ref": "#/components/schemas/Mail.V1.Forwarders.ForwarderMailboxResource"
},
"destination": {
"description": "Email address the messages are forwarded to",
"type": "string",
"example": "[email protected]"
},
"is_keep_copy_enabled": {
"description": "Whether a copy of forwarded messages is kept in the mailbox",
"type": "boolean",
"example": true
},
"is_active": {
"description": "Whether the forwarder is active",
"type": "boolean",
"example": true
},
"is_confirmed": {
"description": "Whether the destination address has confirmed the forwarding",
"type": "boolean",
"example": true
},
"created_at": {
"type": "string",
"format": "date-time",
"example": "2026-07-24T12:00:00Z"
},
"updated_at": {
"type": "string",
"format": "date-time",
"example": "2026-07-24T12:00:00Z"
}
},
"type": "object"
},
"Mail.V1.Logs.Access.AccessLogCollection": {
"description": "Array of [`Mail.V1.Logs.Access.AccessLogResource`](#model/mailv1logsaccessaccesslogresource)",
"type": "array",
"items": {
"$ref": "#/components/schemas/Mail.V1.Logs.Access.AccessLogResource"
}
},
"Mail.V1.Logs.Access.AccessLogResource": {
"properties": {
"account": {
"type": "string",
"example": "[email protected]"
},
"domain": {
"type": "string",
"example": "example.com"
},
"session": {
"type": "string",
"example": "nVpwr1XahpcqAkeAAAQAAJjSnW8aYxyM"
},
"protocol": {
"type": "string",
"example": "imap"
},
"remote_ip": {
"type": "string",
"example": "192.168.0.1"
},
"login_time": {
"type": "string",
"format": "date-time",
"example": "2026-03-16T13:13:54Z"
},
"in": {
"description": "Bytes received",
"type": "integer",
"example": 421
},
"out": {
"description": "Bytes sent",
"type": "integer",
"example": 9381
},
"deleted": {
"type": "integer",
"example": 0
},
"expunged": {
"type": "integer",
"example": 0
},
"trashed": {
"type": "integer",
"example": 0
},
"logout_time": {
"type": "string",
"format": "date-time",
"example": "2026-03-16T13:13:55Z"
},
"timestamp": {
"type": "string",
"format": "date-time",
"example": "2026-03-16T13:13:55Z"
},
"app_name": {
"type": "string",
"example": "com.google.android.gm"
},
"has_deletions": {
"type": "boolean",
"example": false
},
"result": {
"type": "string",
"example": "ok"
},
"status": {
"type": "string",
"example": "Access"
},
"is_important": {
"description": "True when the session deleted, expunged or trashed messages",
"type": "boolean",
"example": false
}
},
"type": "object"
},
"Mail.V1.Logs.Action.ActionLogCollection": {
"description": "Array of [`Mail.V1.Logs.Action.ActionLogResource`](#model/mailv1logsactionactionlogresource)",
"type": "array",
"items": {
"$ref": "#/components/schemas/Mail.V1.Logs.Action.ActionLogResource"
}
},
"Mail.V1.Logs.Action.ActionLogResource": {
"properties": {
"action": {
"type": "string",
"example": "Account created"
},
"extra": {
"description": "Arbitrary contextual payload",
"type": "object",
"example": null,
"nullable": true
},
"created_at": {
"type": "string",
"format": "date-time",
"example": "2026-03-16T12:11:34Z"
},
"ip_address": {
"description": "Only populated for user-role logs",
"type": "string",
"example": "127.0.0.1"
},
"role": {
"type": "string",
"example": "user"
},
"action_context": {
"type": "string",
"example": "example.com"
},
"response_status": {
"type": "string",
"enum": [
"OK",
"Fail"
],
"example": "OK"
}
},
"type": "object"
},
"Mail.V1.Logs.Common.DeliveryLogCollection": {
"description": "Array of [`Mail.V1.Logs.Common.DeliveryLogResource`](#model/mailv1logscommondeliverylogresource)",
"type": "array",
"items": {
"$ref": "#/components/schemas/Mail.V1.Logs.Common.DeliveryLogResource"
}
},
"Mail.V1.Logs.Common.DeliveryLogRelayEventResource": {
"properties": {
"address_to": {
"type": "string",
"example": "[email protected]"
},
"relay": {
"type": "string",
"example": "server.example.com[192.168.0.1]:587"
},
"delay": {
"type": "string",
"example": "3.1"
},
"dsn": {
"type": "string",
"example": "2.0.0"
},
"status": {
"type": "string",
"example": "Sent"
},
"response": {
"type": "string",
"example": "250 2.0.0 Ok: queued as 6153112091D"
},
"time": {
"type": "string",
"format": "date-time",
"example": "2026-03-16T13:13:55Z"
}
},
"type": "object"
},
"Mail.V1.Logs.Common.DeliveryLogResource": {
"properties": {
"account": {
"type": "string",
"example": "[email protected]"
},
"rcpt": {
"type": "string",
"example": "[email protected]"
},
"rcpts": {
"type": "string",
"example": "[email protected]"
},
"client_ip": {
"type": "string",
"example": "192.168.0.1"
},
"from": {
"type": "string",
"example": "[email protected]"
},
"nrcpt": {
"type": "string",
"example": "1"
},
"timestamp": {
"type": "string",
"format": "date-time",
"example": "2026-03-16T13:13:55Z"
},
"relay_events": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Mail.V1.Logs.Common.DeliveryLogRelayEventResource"
}
},
"status": {
"type": "string",
"example": "Delivered"
},
"is_spam": {
"type": "boolean",
"example": false
}
},
"type": "object"
},
"Mail.V1.Logs.MailboxActions.MailboxActionLogCollection": {
"description": "Array of [`Mail.V1.Logs.MailboxActions.MailboxActionLogResource`](#model/mailv1logsmailboxactionsmailboxactionlogresource)",
"type": "array",
"items": {
"$ref": "#/components/schemas/Mail.V1.Logs.MailboxActions.MailboxActionLogResource"
}
},
"Mail.V1.Logs.MailboxActions.MailboxActionLogResource": {
"properties": {
"folder": {
"type": "string",
"example": "INBOX.Sent"
},
"time": {
"description": "Unix timestamp of the event",
"type": "integer",
"example": 1773906125
},
"event": {
"type": "string",
"enum": [
"MessageNew",
"MessageRead",
"MessageAppend",
"MessageExpunge",
"MailboxCreate",
"MailboxDelete",
"MailboxRename"
],
"example": "MessageNew"
},
"mailbox": {
"description": "Mailbox email address",
"type": "string",
"example": "[email protected]"
},
"hostname": {
"type": "string",
"example": "de-fra-mailstorage71.hostinger.io"
},
"timestamp": {
"type": "string",
"format": "date-time",
"example": "2026-03-16T13:13:55Z"
}
},
"type": "object"
},
"Mail.V1.Mailboxes.MailboxCollection": {
"description": "Array of [`Mail.V1.Mailboxes.MailboxResource`](#model/mailv1mailboxesmailboxresource)",
"type": "array",
"items": {
"$ref": "#/components/schemas/Mail.V1.Mailboxes.MailboxResource"
}
},
"Mail.V1.Mailboxes.MailboxCountsResource": {
"properties": {
"forwarders": {
"description": "Number of attached forwarders",
"type": "integer",
"example": 2
},
"aliases": {
"description": "Number of attached aliases",
"type": "integer",
"example": 1
},
"autoreplies": {
"description": "Number of attached auto-replies",
"type": "integer",
"example": 0
}
},
"type": "object"
},
"Mail.V1.Mailboxes.MailboxProtocolsResource": {
"properties": {
"is_imap_enabled": {
"type": "boolean",
"example": true
},
"is_pop3_enabled": {
"type": "boolean",
"example": true
},
"is_smtp_in_enabled": {
"type": "boolean",
"example": true
},
"is_smtp_out_enabled": {
"type": "boolean",
"example": true
}
},
"type": "object"
},
"Mail.V1.Mailboxes.MailboxResource": {
"properties": {
"id": {
"description": "Mailbox resource ID",
"type": "string",
"example": "AC1a2b3c4d5e6f7g"
},
"address": {
"description": "Email address of the mailbox",
"type": "string",
"example": "[email protected]"
},
"status": {
"description": "Mailbox status",
"type": "string",
"enum": [
"active",
"suspended"
],
"example": "active"
},
"status_reason": {
"description": "Reason the mailbox was suspended",
"type": "string",
"example": "abuse",
"nullable": true
},
"protocols": {
"$ref": "#/components/schemas/Mail.V1.Mailboxes.MailboxProtocolsResource"
},
"counts": {
"$ref": "#/components/schemas/Mail.V1.Mailboxes.MailboxCountsResource"
},
"is_catchall": {
"description": "Whether the mailbox is the catch-all destination for its domain",
"type": "boolean",
"example": false
},
"usage": {
"$ref": "#/components/schemas/Mail.V1.Mailboxes.MailboxUsageResource"
},
"created_at": {
"type": "string",
"format": "date-time",
"example": "2025-03-01T10:00:00Z"
},
"updated_at": {
"type": "string",
"format": "date-time",
"example": "2026-07-20T14:30:00Z"
}
},
"type": "object"
},
"Mail.V1.Mailboxes.MailboxUsageResource": {
"description": "Periodically synced usage numbers (may lag behind live values)",
"properties": {
"storage_used": {
"description": "Storage used in kilobytes",
"type": "integer",
"example": 512000
},
"storage_quota": {
"description": "Storage quota in kilobytes",
"type": "integer",
"example": 10485760
},
"messages_used": {
"type": "integer",
"example": 1240
},
"messages_quota": {
"type": "integer",
"example": 50000
},
"synced_at": {
"description": "When the usage numbers were last synced; null if never synced",
"type": "string",
"format": "date-time",
"example": "2026-07-22T08:12:00Z",
"nullable": true
}
},
"type": "object"
},
"Mail.V1.Orders.OrderCollection": {
"description": "Array of [`Mail.V1.Orders.OrderResource`](#model/mailv1ordersorderresource)",
"type": "array",
"items": {
"$ref": "#/components/schemas/Mail.V1.Orders.OrderResource"
}
},
"Mail.V1.Orders.OrderDomainResource": {
"properties": {
"id": {
"description": "Domain resource ID",
"type": "string",
"example": "DO1a2b3c4d5e6f7g"
},
"name": {
"description": "Domain name",
"type": "string",
"example": "example.com"
}
},
"type": "object"
},
"Mail.V1.Orders.OrderPlanResource": {
"properties": {
"name": {
"description": "Plan name",
"type": "string",
"example": "hostinger_free"
},
"title": {
"description": "Plan title",
"type": "string",
"example": "Free Email"
}
},
"type": "object"
},
"Mail.V1.Orders.OrderResource": {
"properties": {
"id": {
"description": "Order resource ID",
"type": "string",
"example": "OR1a2b3c4d5e6f7g"
},
"status": {
"description": "Order status",
"type": "string",
"enum": [
"pending_setup",
"active",
"suspended"
],
"example": "active"
},
"is_trial": {
"description": "Whether the order is currently in a trial period",
"type": "boolean",
"example": false
},
"seats": {
"description": "Number of mailbox seats purchased with the order",
"type": "integer",
"example": 5
},
"domain": {
"oneOf": [
{
"$ref": "#/components/schemas/Mail.V1.Orders.OrderDomainResource"
}
],
"nullable": true,
"description": "Domain the order is attached to"
},
"plan": {
"oneOf": [
{
"$ref": "#/components/schemas/Mail.V1.Orders.OrderPlanResource"
}
],
"nullable": true,
"description": "Plan the order was purchased with"
},
"has_pending_upgrade": {
"description": "Whether an upgrade is currently pending for the order",
"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": "2026-02-27T11:54:22Z",
"nullable": true
}
},
"type": "object"
},
"Mail.V1.Orders.PlanDomainResource": {
"properties": {
"mailbox_quota": {
"description": "Maximum number of mailboxes per domain",
"type": "integer",
"example": 1
},
"forwarder_quota": {
"description": "Maximum number of forwarders per domain",
"type": "integer",
"example": 10
},
"alias_quota": {
"description": "Maximum number of aliases per domain",
"type": "integer",
"example": 5
},
"is_catchall_enabled": {
"description": "Whether catch-all mailboxes are available",
"type": "boolean",
"example": true
},
"is_imap_enabled": {
"description": "Whether IMAP access is available",
"type": "boolean",
"example": true
},
"is_pop3_enabled": {
"description": "Whether POP3 access is available",
"type": "boolean",
"example": true
}
},
"type": "object"
},
"Mail.V1.Orders.PlanMailboxResource": {
"properties": {
"storage_quota": {
"description": "Storage quota per mailbox in megabytes",
"type": "integer",
"example": 10240
},
"messages_quota": {
"description": "Maximum number of stored messages per mailbox",
"type": "integer",
"example": 10000
},
"forwarder_quota": {
"description": "Maximum number of forwarders per mailbox",
"type": "integer",
"example": 10
},
"alias_quota": {
"description": "Maximum number of aliases per mailbox",
"type": "integer",
"example": 5
},
"max_outbound_message_size": {
"description": "Maximum outbound message size in bytes",
"type": "integer",
"example": 25000000
},
"max_outbound_attachment_size": {
"description": "Maximum outbound attachment size in bytes",
"type": "integer",
"example": 20000000
},
"max_outbound_recipient_limit": {
"description": "Maximum number of recipients per outbound message",
"type": "integer",
"example": 50
},
"rate_limit_inbound": {
"description": "Inbound message rate limit as `messages/seconds`",
"type": "string",
"example": "100/86400"
},
"rate_limit_outbound": {
"description": "Outbound message rate limit as `messages/seconds`",
"type": "string",
"example": "100/86400"
}
},
"type": "object"
},
"Mail.V1.Orders.PlanResource": {
"properties": {
"name": {
"description": "Machine name of the plan",
"type": "string",
"example": "hostinger_free"
},
"title": {
"description": "Human-readable plan title",
"type": "string",
"example": "Free Email"
},
"domain": {
"$ref": "#/components/schemas/Mail.V1.Orders.PlanDomainResource"
},
"mailbox": {
"$ref": "#/components/schemas/Mail.V1.Orders.PlanMailboxResource"
}
},
"type": "object"
},
"Mail.V1.Webhooks.WebhookCollection": {
"description": "Array of [`Mail.V1.Webhooks.WebhookResource`](#model/mailv1webhookswebhookresource)",
"type": "array",
"items": {
"$ref": "#/components/schemas/Mail.V1.Webhooks.WebhookResource"
}
},
"Mail.V1.Webhooks.WebhookCreatedResource": {
"properties": {
"id": {
"description": "Unique webhook identifier",
"type": "string",
"example": "019683f8-1234-7abc-8def-0123456789ab"
},
"mailbox": {
"$ref": "#/components/schemas/Mail.V1.Webhooks.WebhookMailboxResource"
},
"name": {
"description": "Human-readable name for this webhook",
"type": "string",
"example": "New message notifier"
},
"description": {
"description": "Optional description of the webhook's purpose",
"type": "string",
"example": "Notifies our CRM when a new email arrives",
"nullable": true
},
"events": {
"description": "Events that trigger this webhook",
"type": "array",
"items": {
"type": "string",
"enum": [
"message.received"
],
"example": "message.received"
}
},
"status": {
"description": "Current status of the webhook",
"type": "string",
"enum": [
"active",
"disabled",
"paused"
],
"example": "active"
},
"url": {
"description": "URL that receives webhook POST requests",
"type": "string",
"example": "https://example.com/webhooks/incoming"
},
"secret": {
"description": "One-time webhook secret, returned only on creation. Sent as `Authorization: Bearer Hello {{name}}