hostinger-api-mcp 1.43.1 → 1.44.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -489,6 +489,30 @@ const tools: OpenApiTool[] = [
489
489
  ],
490
490
  "group": "agency-hosting"
491
491
  },
492
+ {
493
+ "name": "agency-hosting_generateUploadURLV1",
494
+ "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```",
495
+ "method": "POST",
496
+ "path": "/api/agency-hosting/v1/websites/{website_uid}/files/upload-urls",
497
+ "inputSchema": {
498
+ "type": "object",
499
+ "properties": {
500
+ "website_uid": {
501
+ "type": "string",
502
+ "description": "Agency Plan website UID"
503
+ }
504
+ },
505
+ "required": [
506
+ "website_uid"
507
+ ]
508
+ },
509
+ "security": [
510
+ {
511
+ "apiToken": []
512
+ }
513
+ ],
514
+ "group": "agency-hosting"
515
+ },
492
516
  {
493
517
  "name": "agency-hosting_importWebsiteFromArchiveV1",
494
518
  "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.",
@@ -4556,6 +4580,35 @@ const tools: OpenApiTool[] = [
4556
4580
  ],
4557
4581
  "group": "hosting"
4558
4582
  },
4583
+ {
4584
+ "name": "hosting_generateUploadURLV1",
4585
+ "description": "Generate a file browser upload URL with authentication credentials\nfor uploading files directly to a website's file storage.\n\nReturns `url`, `auth_key` and `rest_auth_key`. Use these to upload a file to the\nwebsite's `public_html` directory via the TUS resumable upload protocol (TUS 1.0.0).\nSend `X-Auth: {auth_key}` and `X-Auth-Rest: {rest_auth_key}` headers on every request\nbelow.\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 `public_html`, e.g. `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```",
4586
+ "method": "POST",
4587
+ "path": "/api/hosting/v1/files/upload-urls",
4588
+ "inputSchema": {
4589
+ "type": "object",
4590
+ "properties": {
4591
+ "username": {
4592
+ "type": "string",
4593
+ "description": "Account username"
4594
+ },
4595
+ "domain": {
4596
+ "type": "string",
4597
+ "description": "Website domain"
4598
+ }
4599
+ },
4600
+ "required": [
4601
+ "username",
4602
+ "domain"
4603
+ ]
4604
+ },
4605
+ "security": [
4606
+ {
4607
+ "apiToken": []
4608
+ }
4609
+ ],
4610
+ "group": "hosting"
4611
+ },
4559
4612
  {
4560
4613
  "name": "hosting_listWebsiteFilesAndDirectoriesV1",
4561
4614
  "description": "List files and directories under a website's document root.\n\nUse `directory` to browse a subdirectory relative to the document root. Symlinked entries\nare listed but never traversed into or resolved.",
@@ -4708,9 +4761,122 @@ const tools: OpenApiTool[] = [
4708
4761
  ],
4709
4762
  "group": "hosting"
4710
4763
  },
4764
+ {
4765
+ "name": "hosting_startNode_jsBuildV1",
4766
+ "description": "Start a Node.js build process using files already present on the website's file storage.\n\nWARNING: on success this overwrites the website's existing contents and cannot be\nundone — verify this is intended before calling this endpoint.\n\nThe `source_type` must be `archive` and `source_options.archive_path` must point to an\nexisting archive file on the server (relative to the website document root).\nUse the `Generate Upload URL` endpoint to obtain credentials and upload the archive first.\n\nTo auto-detect build settings from an archive before starting, first call the\n`Get Node.js Build Settings from Archive` endpoint. To upload an archive and start\na build in one step, use the `Create Node.js Build from Archive` endpoint instead.\n\nThe returned build `uuid` can be used to poll progress and retrieve logs via\nthe `Get Node.js Build Logs` endpoint.",
4767
+ "method": "POST",
4768
+ "path": "/api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/builds",
4769
+ "inputSchema": {
4770
+ "type": "object",
4771
+ "properties": {
4772
+ "username": {
4773
+ "type": "string",
4774
+ "description": "username parameter"
4775
+ },
4776
+ "domain": {
4777
+ "type": "string",
4778
+ "description": "Domain name"
4779
+ },
4780
+ "node_version": {
4781
+ "type": "integer",
4782
+ "description": "Node.js version",
4783
+ "enum": [
4784
+ 18,
4785
+ 20,
4786
+ 22,
4787
+ 24
4788
+ ]
4789
+ },
4790
+ "app_type": {
4791
+ "type": "string",
4792
+ "description": "Node.js application type",
4793
+ "enum": [
4794
+ "create-react-app",
4795
+ "gatsby",
4796
+ "vite",
4797
+ "angular",
4798
+ "react",
4799
+ "vue",
4800
+ "parcel",
4801
+ "next",
4802
+ "nuxt",
4803
+ "nest",
4804
+ "express",
4805
+ "fastify",
4806
+ "astro",
4807
+ "svelte",
4808
+ "svelte-kit",
4809
+ "hono",
4810
+ "react-router",
4811
+ "nitro",
4812
+ "other"
4813
+ ]
4814
+ },
4815
+ "root_directory": {
4816
+ "type": "string",
4817
+ "description": "Application root directory (where package.json is located) relative to public_html"
4818
+ },
4819
+ "output_directory": {
4820
+ "type": "string",
4821
+ "description": "Build output directory relative to the root directory"
4822
+ },
4823
+ "build_script": {
4824
+ "type": "string",
4825
+ "description": "Build script that will be ran to build the application"
4826
+ },
4827
+ "entry_file": {
4828
+ "type": "string",
4829
+ "description": "The main entry point file for the application"
4830
+ },
4831
+ "package_manager": {
4832
+ "type": "string",
4833
+ "description": "Package manager",
4834
+ "enum": [
4835
+ "npm",
4836
+ "yarn",
4837
+ "pnpm"
4838
+ ]
4839
+ },
4840
+ "source_type": {
4841
+ "type": "string",
4842
+ "description": "The source type of the files",
4843
+ "enum": [
4844
+ "archive"
4845
+ ]
4846
+ },
4847
+ "source_options": {
4848
+ "type": "object",
4849
+ "description": "Source-specific options",
4850
+ "properties": {
4851
+ "archive_path": {
4852
+ "type": "string",
4853
+ "description": "The path to the archive file relative to the document root of the vhost (required if source is \"archive\")"
4854
+ }
4855
+ }
4856
+ }
4857
+ },
4858
+ "required": [
4859
+ "username",
4860
+ "domain",
4861
+ "node_version",
4862
+ "app_type",
4863
+ "root_directory",
4864
+ "output_directory",
4865
+ "build_script",
4866
+ "source_type",
4867
+ "source_options"
4868
+ ]
4869
+ },
4870
+ "security": [
4871
+ {
4872
+ "apiToken": []
4873
+ }
4874
+ ],
4875
+ "group": "hosting"
4876
+ },
4711
4877
  {
4712
4878
  "name": "hosting_createNodeJSBuildFromArchiveV1",
4713
- "description": "Upload a project archive, auto-detect build settings, and immediately start a Node.js build.\n\nThis is the recommended single-step approach for deploying a Node.js application.\nThe archive is uploaded to the website's file storage, build settings are auto-detected\nfrom the package.json inside the archive, and the build process starts automatically.\nOptional override fields take precedence over auto-detected values.\nMaximum archive size is 50MB.\n\nBefore archiving, exclude `node_modules/` and any build output directories\n(e.g. `dist/`, `.next/`, `build/`) — they are not needed because the build\nprocess runs the install step automatically, and including them unnecessarily\nincreases the archive size. This also helps keep the archive well under the 50MB limit.\n\nExample (zip):\n```\nzip -r archive.zip . --exclude \"node_modules/*\" --exclude \"dist/*\"\n```\n\nThe returned build `uuid` can be used to poll progress and retrieve logs via\nthe `Get Node.js Build Logs` endpoint.",
4879
+ "description": "Upload a project archive, auto-detect build settings, and immediately start a Node.js build.\n\nWARNING: on success this overwrites the website's existing contents and cannot be\nundone — verify this is intended before calling this endpoint.\n\nThis is the recommended single-step approach for deploying a Node.js application.\nThe archive is uploaded to the website's file storage, build settings are auto-detected\nfrom the package.json inside the archive, and the build process starts automatically.\nOptional override fields take precedence over auto-detected values.\nMaximum archive size is 50MB.\n\nBefore archiving, exclude `node_modules/` and any build output directories\n(e.g. `dist/`, `.next/`, `build/`) — they are not needed because the build\nprocess runs the install step automatically, and including them unnecessarily\nincreases the archive size. This also helps keep the archive well under the 50MB limit.\n\nExample (zip):\n```\nzip -r archive.zip . --exclude \"node_modules/*\" --exclude \"dist/*\"\n```\n\nThe returned build `uuid` can be used to poll progress and retrieve logs via\nthe `Get Node.js Build Logs` endpoint.",
4714
4880
  "method": "POST",
4715
4881
  "path": "/api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/builds/from-archive",
4716
4882
  "inputSchema": {
@@ -4802,6 +4968,40 @@ const tools: OpenApiTool[] = [
4802
4968
  ],
4803
4969
  "group": "hosting"
4804
4970
  },
4971
+ {
4972
+ "name": "hosting_getNode_jsBuildSettingsFromArchiveV1",
4973
+ "description": "Auto-detect Node.js build settings from a package.json inside an archive already on the server.\n\nUse this before calling `Start Node.js Build` to preview what settings will be used,\nor to let the user review and override values (framework, node version, root directory,\noutput directory, build script) before committing to a build.\n\nThe archive must already be present on the website's file storage. Use the\n`Generate Upload URL` endpoint to obtain credentials and upload the archive first.\nTo upload an archive and start a build in one step without inspecting settings first,\nuse the `Create Node.js Build from Archive` endpoint instead.",
4974
+ "method": "GET",
4975
+ "path": "/api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/builds/settings/from-archive",
4976
+ "inputSchema": {
4977
+ "type": "object",
4978
+ "properties": {
4979
+ "username": {
4980
+ "type": "string",
4981
+ "description": "username parameter"
4982
+ },
4983
+ "domain": {
4984
+ "type": "string",
4985
+ "description": "Domain name"
4986
+ },
4987
+ "archive_path": {
4988
+ "type": "string",
4989
+ "description": "The path to the archive file relative to the document root of the vhost"
4990
+ }
4991
+ },
4992
+ "required": [
4993
+ "username",
4994
+ "domain",
4995
+ "archive_path"
4996
+ ]
4997
+ },
4998
+ "security": [
4999
+ {
5000
+ "apiToken": []
5001
+ }
5002
+ ],
5003
+ "group": "hosting"
5004
+ },
4805
5005
  {
4806
5006
  "name": "hosting_getNodeJSBuildLogsV1",
4807
5007
  "description": "Retrieve logs from a specific Node.js build process.\n\nTo stream live output while a build is running, poll this endpoint repeatedly\nwhile the build state is `running`, passing the previously returned `lines` count\nas `from_line` to fetch only new output since the last call.\nLog content may contain ANSI escape sequences (color codes).",
@@ -5385,6 +5585,40 @@ const tools: OpenApiTool[] = [
5385
5585
  ],
5386
5586
  "group": "hosting"
5387
5587
  },
5588
+ {
5589
+ "name": "hosting_deployStaticSiteArchiveV1",
5590
+ "description": "Deploy a static application from an archive file.\n\nWARNING: this overwrites the website's existing contents and cannot be undone —\nverify this is intended before calling this endpoint.\n\nThis endpoint allows you to deploy a static application from an archive\nfile that has been uploaded to the website's directory.\n\nThis only works for static sites (pre-built HTML/CSS/JS with no build step). For\nNode.js applications, use `Create NodeJS build from archive` instead, or\n`Start Node.js build` if the archive is already uploaded. For WordPress sites,\nuse `Import WordPress website`.",
5591
+ "method": "POST",
5592
+ "path": "/api/hosting/v1/accounts/{username}/websites/{domain}/deploy",
5593
+ "inputSchema": {
5594
+ "type": "object",
5595
+ "properties": {
5596
+ "username": {
5597
+ "type": "string",
5598
+ "description": "username parameter"
5599
+ },
5600
+ "domain": {
5601
+ "type": "string",
5602
+ "description": "Domain name"
5603
+ },
5604
+ "archive_path": {
5605
+ "type": "string",
5606
+ "description": "Relative path to the archive file from website root directory"
5607
+ }
5608
+ },
5609
+ "required": [
5610
+ "username",
5611
+ "domain",
5612
+ "archive_path"
5613
+ ]
5614
+ },
5615
+ "security": [
5616
+ {
5617
+ "apiToken": []
5618
+ }
5619
+ ],
5620
+ "group": "hosting"
5621
+ },
5388
5622
  {
5389
5623
  "name": "hosting_deleteWebsiteV1",
5390
5624
  "description": "This endpoint permanently removes a website and all of its data. This action\ncannot be undone. Before calling it, make sure the user understands the\nconsequences and explicitly confirms that they want to proceed.\n\nAll website files, databases and related configuration will be removed.\nThe hosting plan itself is kept, so a new website can be created on it afterwards.\n\nSupported websites: main and addon domain websites on web hosting plans, and\nWebsite Builder websites. Parked domains and subdomains cannot be deleted with\nthis endpoint. The domain must be the exact website domain, not a preview\ndomain or an alias.\n\nReturns 404 when the domain does not exist or does not belong to the\nauthenticated client.\n\nWebsite removal is processed asynchronously and can take a few minutes to\ncomplete. The response returns before the removal finishes.",
@@ -10544,6 +10778,45 @@ const tools: OpenApiTool[] = [
10544
10778
  ],
10545
10779
  "group": "wordpress"
10546
10780
  },
10781
+ {
10782
+ "name": "hosting_importWordPressWebsiteV1",
10783
+ "description": "Import WordPress website to the specified domain.\n\nWARNING: this overwrites the website's existing contents and cannot be undone —\nverify this is intended before calling this endpoint.\n\nThis endpoint allows you to import a WordPress website from archive and\ndatabase files that have been uploaded to the website's directory.",
10784
+ "method": "POST",
10785
+ "path": "/api/hosting/v1/accounts/{username}/websites/{domain}/wordpress/import",
10786
+ "inputSchema": {
10787
+ "type": "object",
10788
+ "properties": {
10789
+ "username": {
10790
+ "type": "string",
10791
+ "description": "username parameter"
10792
+ },
10793
+ "domain": {
10794
+ "type": "string",
10795
+ "description": "Domain name"
10796
+ },
10797
+ "archive_path": {
10798
+ "type": "string",
10799
+ "description": "Path to the WordPress archive file (relative to website root)"
10800
+ },
10801
+ "sql_path": {
10802
+ "type": "string",
10803
+ "description": "Path to the database SQL file (relative to website root)"
10804
+ }
10805
+ },
10806
+ "required": [
10807
+ "username",
10808
+ "domain",
10809
+ "archive_path",
10810
+ "sql_path"
10811
+ ]
10812
+ },
10813
+ "security": [
10814
+ {
10815
+ "apiToken": []
10816
+ }
10817
+ ],
10818
+ "group": "wordpress"
10819
+ },
10547
10820
  {
10548
10821
  "name": "hosting_installWordPressV1",
10549
10822
  "description": "Install WordPress on an existing website.\n\nThe website must already exist before calling this endpoint. To create a new\nwebsite first, use POST /api/hosting/v1/websites and poll\nGET /api/hosting/v1/websites until it appears.\n\nCall GET /api/hosting/v1/wordpress/installations filtered by username and\ndomain before proceeding to check whether WordPress is already installed on\nthe target domain/path. If WordPress already exists and `overwrite` is false\n(the default), the async job will fail.\n\nThis operation is asynchronous: a successful response only means the install\njob has been queued, not that WordPress is ready. Installation typically\ntakes 1-2 minutes. Poll GET /api/hosting/v1/wordpress/installations filtered\nby username and domain to track progress. When the installation appears in\nthat list, WordPress is ready.",
@@ -11081,6 +11354,45 @@ const tools: OpenApiTool[] = [
11081
11354
  ],
11082
11355
  "group": "wordpress"
11083
11356
  },
11357
+ {
11358
+ "name": "hosting_deployWordPressPluginV1",
11359
+ "description": "Deploy a WordPress plugin from an already uploaded directory.\n\nThis endpoint allows you to deploy a WordPress plugin that has been uploaded to the website's directory.\nThe plugin will be activated and made available in the WordPress admin panel.",
11360
+ "method": "POST",
11361
+ "path": "/api/hosting/v1/accounts/{username}/websites/{domain}/wordpress/plugins/deploy",
11362
+ "inputSchema": {
11363
+ "type": "object",
11364
+ "properties": {
11365
+ "username": {
11366
+ "type": "string",
11367
+ "description": "username parameter"
11368
+ },
11369
+ "domain": {
11370
+ "type": "string",
11371
+ "description": "Domain name"
11372
+ },
11373
+ "slug": {
11374
+ "type": "string",
11375
+ "description": "Slug of the plugin"
11376
+ },
11377
+ "plugin_path": {
11378
+ "type": "string",
11379
+ "description": "Relative path to the plugin directory from wp-content/plugins"
11380
+ }
11381
+ },
11382
+ "required": [
11383
+ "username",
11384
+ "domain",
11385
+ "slug",
11386
+ "plugin_path"
11387
+ ]
11388
+ },
11389
+ "security": [
11390
+ {
11391
+ "apiToken": []
11392
+ }
11393
+ ],
11394
+ "group": "wordpress"
11395
+ },
11084
11396
  {
11085
11397
  "name": "hosting_installWordPressPluginsV1",
11086
11398
  "description": "Install one or more plugins on an existing WordPress installation.\n\nProvide the WordPress installation (software) identifier in the path. It can\nbe obtained from GET /api/hosting/v1/wordpress/installations (the `id`\nfield). Use GET /api/hosting/v1/wordpress/plugins to discover the plugin\nslugs available for installation.\n\nThis operation is asynchronous: a successful response only means the install\njob has been queued, not that the plugins are ready.",
@@ -11403,6 +11715,49 @@ const tools: OpenApiTool[] = [
11403
11715
  ],
11404
11716
  "group": "wordpress"
11405
11717
  },
11718
+ {
11719
+ "name": "hosting_deployWordPressThemeV1",
11720
+ "description": "Deploy a WordPress theme from an already uploaded directory.\n\nThis endpoint allows you to deploy a WordPress theme that has been uploaded to the website's directory.\nThe theme can be optionally activated after deployment.",
11721
+ "method": "POST",
11722
+ "path": "/api/hosting/v1/accounts/{username}/websites/{domain}/wordpress/themes/deploy",
11723
+ "inputSchema": {
11724
+ "type": "object",
11725
+ "properties": {
11726
+ "username": {
11727
+ "type": "string",
11728
+ "description": "username parameter"
11729
+ },
11730
+ "domain": {
11731
+ "type": "string",
11732
+ "description": "Domain name"
11733
+ },
11734
+ "slug": {
11735
+ "type": "string",
11736
+ "description": "Slug of the theme"
11737
+ },
11738
+ "theme_path": {
11739
+ "type": "string",
11740
+ "description": "Relative path to the theme directory from wp-content/themes"
11741
+ },
11742
+ "is_activated": {
11743
+ "type": "boolean",
11744
+ "description": "Whether to activate the theme after deployment"
11745
+ }
11746
+ },
11747
+ "required": [
11748
+ "username",
11749
+ "domain",
11750
+ "slug",
11751
+ "theme_path"
11752
+ ]
11753
+ },
11754
+ "security": [
11755
+ {
11756
+ "apiToken": []
11757
+ }
11758
+ ],
11759
+ "group": "wordpress"
11760
+ },
11406
11761
  {
11407
11762
  "name": "hosting_installWordPressThemeV1",
11408
11763
  "description": "Install a theme on an existing WordPress installation.\n\nProvide the WordPress installation (software) identifier in the path. It can\nbe obtained from GET /api/hosting/v1/wordpress/installations (the `id`\nfield).\n\nWhen the theme is one of the Hostinger themes (hostinger-blog,\nhostinger-affiliate-theme, hostinger-ai-theme), the optional `palette`,\n`layout`, and `font` fields are forwarded to the custom installer (defaults:\npalette1, layout1, default). For any other theme they are ignored.\n\nThis operation is asynchronous: a successful response only means the install\njob has been queued, not that the theme is ready.",
@@ -1046,6 +1046,35 @@ export default [
1046
1046
  ],
1047
1047
  "group": "hosting"
1048
1048
  },
1049
+ {
1050
+ "name": "hosting_generateUploadURLV1",
1051
+ "description": "Generate a file browser upload URL with authentication credentials\nfor uploading files directly to a website's file storage.\n\nReturns `url`, `auth_key` and `rest_auth_key`. Use these to upload a file to the\nwebsite's `public_html` directory via the TUS resumable upload protocol (TUS 1.0.0).\nSend `X-Auth: {auth_key}` and `X-Auth-Rest: {rest_auth_key}` headers on every request\nbelow.\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 `public_html`, e.g. `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```",
1052
+ "method": "POST",
1053
+ "path": "/api/hosting/v1/files/upload-urls",
1054
+ "inputSchema": {
1055
+ "type": "object",
1056
+ "properties": {
1057
+ "username": {
1058
+ "type": "string",
1059
+ "description": "Account username"
1060
+ },
1061
+ "domain": {
1062
+ "type": "string",
1063
+ "description": "Website domain"
1064
+ }
1065
+ },
1066
+ "required": [
1067
+ "username",
1068
+ "domain"
1069
+ ]
1070
+ },
1071
+ "security": [
1072
+ {
1073
+ "apiToken": []
1074
+ }
1075
+ ],
1076
+ "group": "hosting"
1077
+ },
1049
1078
  {
1050
1079
  "name": "hosting_listWebsiteFilesAndDirectoriesV1",
1051
1080
  "description": "List files and directories under a website's document root.\n\nUse `directory` to browse a subdirectory relative to the document root. Symlinked entries\nare listed but never traversed into or resolved.",
@@ -1198,9 +1227,122 @@ export default [
1198
1227
  ],
1199
1228
  "group": "hosting"
1200
1229
  },
1230
+ {
1231
+ "name": "hosting_startNode_jsBuildV1",
1232
+ "description": "Start a Node.js build process using files already present on the website's file storage.\n\nWARNING: on success this overwrites the website's existing contents and cannot be\nundone — verify this is intended before calling this endpoint.\n\nThe `source_type` must be `archive` and `source_options.archive_path` must point to an\nexisting archive file on the server (relative to the website document root).\nUse the `Generate Upload URL` endpoint to obtain credentials and upload the archive first.\n\nTo auto-detect build settings from an archive before starting, first call the\n`Get Node.js Build Settings from Archive` endpoint. To upload an archive and start\na build in one step, use the `Create Node.js Build from Archive` endpoint instead.\n\nThe returned build `uuid` can be used to poll progress and retrieve logs via\nthe `Get Node.js Build Logs` endpoint.",
1233
+ "method": "POST",
1234
+ "path": "/api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/builds",
1235
+ "inputSchema": {
1236
+ "type": "object",
1237
+ "properties": {
1238
+ "username": {
1239
+ "type": "string",
1240
+ "description": "username parameter"
1241
+ },
1242
+ "domain": {
1243
+ "type": "string",
1244
+ "description": "Domain name"
1245
+ },
1246
+ "node_version": {
1247
+ "type": "integer",
1248
+ "description": "Node.js version",
1249
+ "enum": [
1250
+ 18,
1251
+ 20,
1252
+ 22,
1253
+ 24
1254
+ ]
1255
+ },
1256
+ "app_type": {
1257
+ "type": "string",
1258
+ "description": "Node.js application type",
1259
+ "enum": [
1260
+ "create-react-app",
1261
+ "gatsby",
1262
+ "vite",
1263
+ "angular",
1264
+ "react",
1265
+ "vue",
1266
+ "parcel",
1267
+ "next",
1268
+ "nuxt",
1269
+ "nest",
1270
+ "express",
1271
+ "fastify",
1272
+ "astro",
1273
+ "svelte",
1274
+ "svelte-kit",
1275
+ "hono",
1276
+ "react-router",
1277
+ "nitro",
1278
+ "other"
1279
+ ]
1280
+ },
1281
+ "root_directory": {
1282
+ "type": "string",
1283
+ "description": "Application root directory (where package.json is located) relative to public_html"
1284
+ },
1285
+ "output_directory": {
1286
+ "type": "string",
1287
+ "description": "Build output directory relative to the root directory"
1288
+ },
1289
+ "build_script": {
1290
+ "type": "string",
1291
+ "description": "Build script that will be ran to build the application"
1292
+ },
1293
+ "entry_file": {
1294
+ "type": "string",
1295
+ "description": "The main entry point file for the application"
1296
+ },
1297
+ "package_manager": {
1298
+ "type": "string",
1299
+ "description": "Package manager",
1300
+ "enum": [
1301
+ "npm",
1302
+ "yarn",
1303
+ "pnpm"
1304
+ ]
1305
+ },
1306
+ "source_type": {
1307
+ "type": "string",
1308
+ "description": "The source type of the files",
1309
+ "enum": [
1310
+ "archive"
1311
+ ]
1312
+ },
1313
+ "source_options": {
1314
+ "type": "object",
1315
+ "description": "Source-specific options",
1316
+ "properties": {
1317
+ "archive_path": {
1318
+ "type": "string",
1319
+ "description": "The path to the archive file relative to the document root of the vhost (required if source is \"archive\")"
1320
+ }
1321
+ }
1322
+ }
1323
+ },
1324
+ "required": [
1325
+ "username",
1326
+ "domain",
1327
+ "node_version",
1328
+ "app_type",
1329
+ "root_directory",
1330
+ "output_directory",
1331
+ "build_script",
1332
+ "source_type",
1333
+ "source_options"
1334
+ ]
1335
+ },
1336
+ "security": [
1337
+ {
1338
+ "apiToken": []
1339
+ }
1340
+ ],
1341
+ "group": "hosting"
1342
+ },
1201
1343
  {
1202
1344
  "name": "hosting_createNodeJSBuildFromArchiveV1",
1203
- "description": "Upload a project archive, auto-detect build settings, and immediately start a Node.js build.\n\nThis is the recommended single-step approach for deploying a Node.js application.\nThe archive is uploaded to the website's file storage, build settings are auto-detected\nfrom the package.json inside the archive, and the build process starts automatically.\nOptional override fields take precedence over auto-detected values.\nMaximum archive size is 50MB.\n\nBefore archiving, exclude `node_modules/` and any build output directories\n(e.g. `dist/`, `.next/`, `build/`) — they are not needed because the build\nprocess runs the install step automatically, and including them unnecessarily\nincreases the archive size. This also helps keep the archive well under the 50MB limit.\n\nExample (zip):\n```\nzip -r archive.zip . --exclude \"node_modules/*\" --exclude \"dist/*\"\n```\n\nThe returned build `uuid` can be used to poll progress and retrieve logs via\nthe `Get Node.js Build Logs` endpoint.",
1345
+ "description": "Upload a project archive, auto-detect build settings, and immediately start a Node.js build.\n\nWARNING: on success this overwrites the website's existing contents and cannot be\nundone — verify this is intended before calling this endpoint.\n\nThis is the recommended single-step approach for deploying a Node.js application.\nThe archive is uploaded to the website's file storage, build settings are auto-detected\nfrom the package.json inside the archive, and the build process starts automatically.\nOptional override fields take precedence over auto-detected values.\nMaximum archive size is 50MB.\n\nBefore archiving, exclude `node_modules/` and any build output directories\n(e.g. `dist/`, `.next/`, `build/`) — they are not needed because the build\nprocess runs the install step automatically, and including them unnecessarily\nincreases the archive size. This also helps keep the archive well under the 50MB limit.\n\nExample (zip):\n```\nzip -r archive.zip . --exclude \"node_modules/*\" --exclude \"dist/*\"\n```\n\nThe returned build `uuid` can be used to poll progress and retrieve logs via\nthe `Get Node.js Build Logs` endpoint.",
1204
1346
  "method": "POST",
1205
1347
  "path": "/api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/builds/from-archive",
1206
1348
  "inputSchema": {
@@ -1292,6 +1434,40 @@ export default [
1292
1434
  ],
1293
1435
  "group": "hosting"
1294
1436
  },
1437
+ {
1438
+ "name": "hosting_getNode_jsBuildSettingsFromArchiveV1",
1439
+ "description": "Auto-detect Node.js build settings from a package.json inside an archive already on the server.\n\nUse this before calling `Start Node.js Build` to preview what settings will be used,\nor to let the user review and override values (framework, node version, root directory,\noutput directory, build script) before committing to a build.\n\nThe archive must already be present on the website's file storage. Use the\n`Generate Upload URL` endpoint to obtain credentials and upload the archive first.\nTo upload an archive and start a build in one step without inspecting settings first,\nuse the `Create Node.js Build from Archive` endpoint instead.",
1440
+ "method": "GET",
1441
+ "path": "/api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/builds/settings/from-archive",
1442
+ "inputSchema": {
1443
+ "type": "object",
1444
+ "properties": {
1445
+ "username": {
1446
+ "type": "string",
1447
+ "description": "username parameter"
1448
+ },
1449
+ "domain": {
1450
+ "type": "string",
1451
+ "description": "Domain name"
1452
+ },
1453
+ "archive_path": {
1454
+ "type": "string",
1455
+ "description": "The path to the archive file relative to the document root of the vhost"
1456
+ }
1457
+ },
1458
+ "required": [
1459
+ "username",
1460
+ "domain",
1461
+ "archive_path"
1462
+ ]
1463
+ },
1464
+ "security": [
1465
+ {
1466
+ "apiToken": []
1467
+ }
1468
+ ],
1469
+ "group": "hosting"
1470
+ },
1295
1471
  {
1296
1472
  "name": "hosting_getNodeJSBuildLogsV1",
1297
1473
  "description": "Retrieve logs from a specific Node.js build process.\n\nTo stream live output while a build is running, poll this endpoint repeatedly\nwhile the build state is `running`, passing the previously returned `lines` count\nas `from_line` to fetch only new output since the last call.\nLog content may contain ANSI escape sequences (color codes).",
@@ -1875,6 +2051,40 @@ export default [
1875
2051
  ],
1876
2052
  "group": "hosting"
1877
2053
  },
2054
+ {
2055
+ "name": "hosting_deployStaticSiteArchiveV1",
2056
+ "description": "Deploy a static application from an archive file.\n\nWARNING: this overwrites the website's existing contents and cannot be undone —\nverify this is intended before calling this endpoint.\n\nThis endpoint allows you to deploy a static application from an archive\nfile that has been uploaded to the website's directory.\n\nThis only works for static sites (pre-built HTML/CSS/JS with no build step). For\nNode.js applications, use `Create NodeJS build from archive` instead, or\n`Start Node.js build` if the archive is already uploaded. For WordPress sites,\nuse `Import WordPress website`.",
2057
+ "method": "POST",
2058
+ "path": "/api/hosting/v1/accounts/{username}/websites/{domain}/deploy",
2059
+ "inputSchema": {
2060
+ "type": "object",
2061
+ "properties": {
2062
+ "username": {
2063
+ "type": "string",
2064
+ "description": "username parameter"
2065
+ },
2066
+ "domain": {
2067
+ "type": "string",
2068
+ "description": "Domain name"
2069
+ },
2070
+ "archive_path": {
2071
+ "type": "string",
2072
+ "description": "Relative path to the archive file from website root directory"
2073
+ }
2074
+ },
2075
+ "required": [
2076
+ "username",
2077
+ "domain",
2078
+ "archive_path"
2079
+ ]
2080
+ },
2081
+ "security": [
2082
+ {
2083
+ "apiToken": []
2084
+ }
2085
+ ],
2086
+ "group": "hosting"
2087
+ },
1878
2088
  {
1879
2089
  "name": "hosting_deleteWebsiteV1",
1880
2090
  "description": "This endpoint permanently removes a website and all of its data. This action\ncannot be undone. Before calling it, make sure the user understands the\nconsequences and explicitly confirms that they want to proceed.\n\nAll website files, databases and related configuration will be removed.\nThe hosting plan itself is kept, so a new website can be created on it afterwards.\n\nSupported websites: main and addon domain websites on web hosting plans, and\nWebsite Builder websites. Parked domains and subdomains cannot be deleted with\nthis endpoint. The domain must be the exact website domain, not a preview\ndomain or an alias.\n\nReturns 404 when the domain does not exist or does not belong to the\nauthenticated client.\n\nWebsite removal is processed asynchronously and can take a few minutes to\ncomplete. The response returns before the removal finishes.",