hostinger-api-mcp 1.43.0 → 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.
@@ -17,7 +17,7 @@ const tools: OpenApiTool[] = [
17
17
  {
18
18
  "name": "agency-hosting_deployNodeStaticWebsite",
19
19
  "topic": "agency-hosting",
20
- "description": "Deploy a node-static Agency Plan (h5g) website from an archive file. WARNING: this overwrites the website's existing contents and cannot be undone — always confirm with the user before proceeding. Use this for Agency Plan websites of type node-static (a Node.js-built static site that requires a build step or a plain simple static site). The tool resolves the website from its domain, uploads the archive to the website's file browser over TUS, and triggers the build-assets process which builds the site and deploys the result to public_html. This operation is synchronous: the build and deployment complete before the tool returns, so the website is live as soon as the tool finishes successfully — there is no separate asynchronous build to wait for or poll. For plain PHP applications that should be extracted as-is, use agencyHosting_deployPhpApplication instead. The website UID is automatically resolved from the domain.",
20
+ "description": "Deploy a node-static Agency Plan (h5g) website from an archive file. WARNING: this overwrites the website's existing contents and cannot be undone — always confirm with the user before proceeding. Use this for Agency Plan websites of type node-static (a Node.js-built static site that requires a build step or a plain simple static site). The tool resolves the website from its domain, uploads the archive to the website's file browser over TUS, and triggers the build-assets process which builds the site and deploys the result to public_html. This operation is synchronous: the build and deployment complete before the tool returns, so the website is live as soon as the tool finishes successfully — there is no separate asynchronous build to wait for or poll. Upload credentials are generated and used internally — do not call a separate upload-url endpoint or upload the archive yourself, this tool does it end-to-end. For plain PHP applications that should be extracted as-is, use agencyHosting_deployPhpApplication instead. The website UID is automatically resolved from the domain.",
21
21
  "method": "",
22
22
  "path": "",
23
23
  "inputSchema": {
@@ -51,7 +51,7 @@ const tools: OpenApiTool[] = [
51
51
  {
52
52
  "name": "agency-hosting_deployPhpApplication",
53
53
  "topic": "agency-hosting",
54
- "description": "Deploy a PHP (or other non-build) Agency Plan (h5g) website from an archive file. WARNING: this overwrites the website's existing contents and cannot be undone — always confirm with the user before proceeding. Use this for Agency Plan websites where the archive contents should be extracted and served as-is with no build step (e.g., PHP applications). The tool resolves the website from its domain, uploads the archive to the website's file browser over TUS, and triggers the import-archive process which overwrites the website contents with the archive contents. This operation is synchronous: the archive is extracted and deployed before the tool returns, so the website is live as soon as the tool finishes successfully — there is no separate asynchronous build to wait for or poll. For node-static websites that require a build step, use agencyHosting_deployNodeStaticWebsite instead. The website UID is automatically resolved from the domain.",
54
+ "description": "Deploy a PHP (or other non-build) Agency Plan (h5g) website from an archive file. WARNING: this overwrites the website's existing contents and cannot be undone — always confirm with the user before proceeding. Use this for Agency Plan websites where the archive contents should be extracted and served as-is with no build step (e.g., PHP applications). The tool resolves the website from its domain, uploads the archive to the website's file browser over TUS, and triggers the import-archive process which overwrites the website contents with the archive contents. This operation is synchronous: the archive is extracted and deployed before the tool returns, so the website is live as soon as the tool finishes successfully — there is no separate asynchronous build to wait for or poll. Upload credentials are generated and used internally — do not call a separate upload-url endpoint or upload the archive yourself, this tool does it end-to-end. For node-static websites that require a build step, use agencyHosting_deployNodeStaticWebsite instead. The website UID is automatically resolved from the domain.",
55
55
  "method": "",
56
56
  "path": "",
57
57
  "inputSchema": {
@@ -85,7 +85,7 @@ const tools: OpenApiTool[] = [
85
85
  {
86
86
  "name": "hosting_importWordpressWebsite",
87
87
  "topic": "hosting",
88
- "description": "Import a WordPress website from an archive file to a hosting server. This tool uploads a website archive (zip, tar, tar.gz, etc.) and a database dump (.sql file) to deploy a complete WordPress website. The archive will be extracted on the server automatically. Note: This process may take a while for larger sites. After upload completion, files are being extracted and the site will be available in a few minutes. The username will be automatically resolved from the domain.",
88
+ "description": "Import a WordPress website from an archive file to a hosting server. This tool uploads a website archive (zip, tar, tar.gz, etc.) and a database dump (.sql file) to deploy a complete WordPress website. The archive will be extracted on the server automatically. Note: This process may take a while for larger sites. After upload completion, files are being extracted and the site will be available in a few minutes. Upload credentials are generated and used internally — do not call a separate upload-url endpoint or upload the files yourself, this tool does it end-to-end. The username will be automatically resolved from the domain.",
89
89
  "method": "",
90
90
  "path": "",
91
91
  "inputSchema": {
@@ -120,7 +120,7 @@ const tools: OpenApiTool[] = [
120
120
  {
121
121
  "name": "hosting_deployWordpressPlugin",
122
122
  "topic": "hosting",
123
- "description": "Deploy a WordPress plugin from a directory to a hosting server. This tool uploads all plugin files and triggers plugin deployment.",
123
+ "description": "Deploy a WordPress plugin from a directory to a hosting server. This tool uploads all plugin files and triggers plugin deployment. Upload credentials are generated and used internally — do not call a separate upload-url endpoint or upload the files yourself, this tool does it end-to-end.",
124
124
  "method": "",
125
125
  "path": "",
126
126
  "inputSchema": {
@@ -155,7 +155,7 @@ const tools: OpenApiTool[] = [
155
155
  {
156
156
  "name": "hosting_deployWordpressTheme",
157
157
  "topic": "hosting",
158
- "description": "Deploy a WordPress theme from a directory to a hosting server. This tool uploads all theme files and triggers theme deployment. The uploaded theme can optionally be activated after deployment.",
158
+ "description": "Deploy a WordPress theme from a directory to a hosting server. This tool uploads all theme files and triggers theme deployment. The uploaded theme can optionally be activated after deployment. Upload credentials are generated and used internally — do not call a separate upload-url endpoint or upload the files yourself, this tool does it end-to-end.",
159
159
  "method": "",
160
160
  "path": "",
161
161
  "inputSchema": {
@@ -194,7 +194,7 @@ const tools: OpenApiTool[] = [
194
194
  {
195
195
  "name": "hosting_deployJsApplication",
196
196
  "topic": "hosting",
197
- "description": "Deploy a JavaScript application from an archive file to a hosting server. IMPORTANT: the archive must ONLY contain application source files, not the build output, skip node_modules directory; also exclude all files matched by .gitignore if the ignore file exists. The build process will be triggered automatically on the server after the archive is uploaded. After deployment, use the hosting_listJsDeployments tool to check deployment status and track build progress.",
197
+ "description": "Deploy a JavaScript application from an archive file to a hosting server. IMPORTANT: the archive must ONLY contain application source files, not the build output, skip node_modules directory; also exclude all files matched by .gitignore if the ignore file exists. The build process will be triggered automatically on the server after the archive is uploaded. Upload credentials are generated and used internally — do not call a separate upload-url endpoint or upload the archive yourself, this tool does it end-to-end. After deployment, use the hosting_listJsDeployments tool to check deployment status and track build progress.",
198
198
  "method": "",
199
199
  "path": "",
200
200
  "inputSchema": {
@@ -228,7 +228,7 @@ const tools: OpenApiTool[] = [
228
228
  {
229
229
  "name": "hosting_deployStaticWebsite",
230
230
  "topic": "hosting",
231
- "description": "Deploy a static website from an archive file to a hosting server. IMPORTANT: This tool only works for static websites with no build process. The archive must contain pre-built static files (HTML, CSS, JavaScript, images, etc.) ready to be served. If the website has a package.json file or requires a build command, use hosting_deployJsApplication instead. The archive will be extracted and deployed directly without any build steps. The username will be automatically resolved from the domain.",
231
+ "description": "Deploy a static website from an archive file to a hosting server. IMPORTANT: This tool only works for static websites with no build process. The archive must contain pre-built static files (HTML, CSS, JavaScript, images, etc.) ready to be served. If the website has a package.json file or requires a build command, use hosting_deployJsApplication instead. The tool uploads the archive to the website's file browser over TUS and triggers deployment; the archive is extracted and deployed directly without any build steps. Upload credentials are generated and used internally — do not call a separate upload-url endpoint or upload the archive yourself, this tool does it end-to-end. The username will be automatically resolved from the domain.",
232
232
  "method": "",
233
233
  "path": "",
234
234
  "inputSchema": {
@@ -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.",