hostinger-api-mcp 1.43.1 → 1.45.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.
- package/README.md +205 -6
- package/gemini-extension.json +1 -1
- package/package.json +1 -1
- package/server.json +2 -2
- package/src/core/runtime.js +1 -1
- package/src/core/runtime.ts +1 -1
- package/src/core/tools/agency-hosting.js +92 -0
- package/src/core/tools/agency-hosting.ts +92 -0
- package/src/core/tools/all.js +444 -6
- package/src/core/tools/all.ts +444 -6
- package/src/core/tools/hosting.js +229 -4
- package/src/core/tools/hosting.ts +229 -4
- package/src/core/tools/wordpress.js +123 -2
- package/src/core/tools/wordpress.ts +123 -2
- package/src/servers/agency-hosting.js +1 -1
- package/src/servers/agency-hosting.ts +1 -1
- package/src/servers/all.js +1 -1
- package/src/servers/all.ts +1 -1
- package/src/servers/billing.js +1 -1
- package/src/servers/billing.ts +1 -1
- package/src/servers/dns.js +1 -1
- package/src/servers/dns.ts +1 -1
- package/src/servers/domains.js +1 -1
- package/src/servers/domains.ts +1 -1
- package/src/servers/ecommerce.js +1 -1
- package/src/servers/ecommerce.ts +1 -1
- package/src/servers/horizons.js +1 -1
- package/src/servers/horizons.ts +1 -1
- package/src/servers/hosting.js +1 -1
- package/src/servers/hosting.ts +1 -1
- package/src/servers/mail.js +1 -1
- package/src/servers/mail.ts +1 -1
- package/src/servers/reach.js +1 -1
- package/src/servers/reach.ts +1 -1
- package/src/servers/vps.js +1 -1
- package/src/servers/vps.ts +1 -1
- package/src/servers/wordpress.js +1 -1
- package/src/servers/wordpress.ts +1 -1
- package/types.d.ts +383 -6
package/src/core/tools/all.ts
CHANGED
|
@@ -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.",
|
|
@@ -1371,6 +1395,74 @@ const tools: OpenApiTool[] = [
|
|
|
1371
1395
|
],
|
|
1372
1396
|
"group": "agency-hosting"
|
|
1373
1397
|
},
|
|
1398
|
+
{
|
|
1399
|
+
"name": "agency-hosting_listAgencyPlanWebsitesV1",
|
|
1400
|
+
"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.",
|
|
1401
|
+
"method": "GET",
|
|
1402
|
+
"path": "/api/agency-hosting/v1/websites",
|
|
1403
|
+
"inputSchema": {
|
|
1404
|
+
"type": "object",
|
|
1405
|
+
"properties": {
|
|
1406
|
+
"page": {
|
|
1407
|
+
"type": "integer",
|
|
1408
|
+
"description": "Page number"
|
|
1409
|
+
},
|
|
1410
|
+
"per_page": {
|
|
1411
|
+
"type": "integer",
|
|
1412
|
+
"description": "Number of items per page"
|
|
1413
|
+
},
|
|
1414
|
+
"order_ids": {
|
|
1415
|
+
"type": "array",
|
|
1416
|
+
"description": "Filter by order IDs. Accepts a comma-separated list.",
|
|
1417
|
+
"items": {
|
|
1418
|
+
"type": "integer",
|
|
1419
|
+
"description": "order_ids parameter"
|
|
1420
|
+
}
|
|
1421
|
+
},
|
|
1422
|
+
"states": {
|
|
1423
|
+
"type": "array",
|
|
1424
|
+
"description": "Filter by website state. Accepts a comma-separated list.",
|
|
1425
|
+
"items": {
|
|
1426
|
+
"type": "string",
|
|
1427
|
+
"description": "states parameter",
|
|
1428
|
+
"enum": [
|
|
1429
|
+
"active",
|
|
1430
|
+
"locked",
|
|
1431
|
+
"suspended",
|
|
1432
|
+
"deleting",
|
|
1433
|
+
"deleted"
|
|
1434
|
+
]
|
|
1435
|
+
}
|
|
1436
|
+
},
|
|
1437
|
+
"website_types": {
|
|
1438
|
+
"type": "array",
|
|
1439
|
+
"description": "Filter by detected website type, e.g. wordpress,nodejs. Accepts a comma-separated list.",
|
|
1440
|
+
"items": {
|
|
1441
|
+
"type": "string",
|
|
1442
|
+
"description": "website_types parameter",
|
|
1443
|
+
"enum": [
|
|
1444
|
+
"wordpress",
|
|
1445
|
+
"builder",
|
|
1446
|
+
"horizons",
|
|
1447
|
+
"nodejs",
|
|
1448
|
+
"other"
|
|
1449
|
+
]
|
|
1450
|
+
}
|
|
1451
|
+
},
|
|
1452
|
+
"domain": {
|
|
1453
|
+
"type": "string",
|
|
1454
|
+
"description": "Filter by domain name (case-insensitive substring match)"
|
|
1455
|
+
}
|
|
1456
|
+
},
|
|
1457
|
+
"required": []
|
|
1458
|
+
},
|
|
1459
|
+
"security": [
|
|
1460
|
+
{
|
|
1461
|
+
"apiToken": []
|
|
1462
|
+
}
|
|
1463
|
+
],
|
|
1464
|
+
"group": "agency-hosting"
|
|
1465
|
+
},
|
|
1374
1466
|
{
|
|
1375
1467
|
"name": "agency-hosting_listWebsiteProcessesV1",
|
|
1376
1468
|
"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.",
|
|
@@ -4040,7 +4132,7 @@ const tools: OpenApiTool[] = [
|
|
|
4040
4132
|
},
|
|
4041
4133
|
"domain": {
|
|
4042
4134
|
"type": "string",
|
|
4043
|
-
"description": "Filter by domain name (
|
|
4135
|
+
"description": "Filter by domain name (case-insensitive substring match)"
|
|
4044
4136
|
},
|
|
4045
4137
|
"is_assigned": {
|
|
4046
4138
|
"type": "boolean",
|
|
@@ -4556,6 +4648,35 @@ const tools: OpenApiTool[] = [
|
|
|
4556
4648
|
],
|
|
4557
4649
|
"group": "hosting"
|
|
4558
4650
|
},
|
|
4651
|
+
{
|
|
4652
|
+
"name": "hosting_generateUploadURLV1",
|
|
4653
|
+
"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```",
|
|
4654
|
+
"method": "POST",
|
|
4655
|
+
"path": "/api/hosting/v1/files/upload-urls",
|
|
4656
|
+
"inputSchema": {
|
|
4657
|
+
"type": "object",
|
|
4658
|
+
"properties": {
|
|
4659
|
+
"username": {
|
|
4660
|
+
"type": "string",
|
|
4661
|
+
"description": "Account username"
|
|
4662
|
+
},
|
|
4663
|
+
"domain": {
|
|
4664
|
+
"type": "string",
|
|
4665
|
+
"description": "Website domain"
|
|
4666
|
+
}
|
|
4667
|
+
},
|
|
4668
|
+
"required": [
|
|
4669
|
+
"username",
|
|
4670
|
+
"domain"
|
|
4671
|
+
]
|
|
4672
|
+
},
|
|
4673
|
+
"security": [
|
|
4674
|
+
{
|
|
4675
|
+
"apiToken": []
|
|
4676
|
+
}
|
|
4677
|
+
],
|
|
4678
|
+
"group": "hosting"
|
|
4679
|
+
},
|
|
4559
4680
|
{
|
|
4560
4681
|
"name": "hosting_listWebsiteFilesAndDirectoriesV1",
|
|
4561
4682
|
"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 +4829,122 @@ const tools: OpenApiTool[] = [
|
|
|
4708
4829
|
],
|
|
4709
4830
|
"group": "hosting"
|
|
4710
4831
|
},
|
|
4832
|
+
{
|
|
4833
|
+
"name": "hosting_startNode_jsBuildV1",
|
|
4834
|
+
"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.",
|
|
4835
|
+
"method": "POST",
|
|
4836
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/builds",
|
|
4837
|
+
"inputSchema": {
|
|
4838
|
+
"type": "object",
|
|
4839
|
+
"properties": {
|
|
4840
|
+
"username": {
|
|
4841
|
+
"type": "string",
|
|
4842
|
+
"description": "username parameter"
|
|
4843
|
+
},
|
|
4844
|
+
"domain": {
|
|
4845
|
+
"type": "string",
|
|
4846
|
+
"description": "Domain name"
|
|
4847
|
+
},
|
|
4848
|
+
"node_version": {
|
|
4849
|
+
"type": "integer",
|
|
4850
|
+
"description": "Node.js version",
|
|
4851
|
+
"enum": [
|
|
4852
|
+
18,
|
|
4853
|
+
20,
|
|
4854
|
+
22,
|
|
4855
|
+
24
|
|
4856
|
+
]
|
|
4857
|
+
},
|
|
4858
|
+
"app_type": {
|
|
4859
|
+
"type": "string",
|
|
4860
|
+
"description": "Node.js application type",
|
|
4861
|
+
"enum": [
|
|
4862
|
+
"create-react-app",
|
|
4863
|
+
"gatsby",
|
|
4864
|
+
"vite",
|
|
4865
|
+
"angular",
|
|
4866
|
+
"react",
|
|
4867
|
+
"vue",
|
|
4868
|
+
"parcel",
|
|
4869
|
+
"next",
|
|
4870
|
+
"nuxt",
|
|
4871
|
+
"nest",
|
|
4872
|
+
"express",
|
|
4873
|
+
"fastify",
|
|
4874
|
+
"astro",
|
|
4875
|
+
"svelte",
|
|
4876
|
+
"svelte-kit",
|
|
4877
|
+
"hono",
|
|
4878
|
+
"react-router",
|
|
4879
|
+
"nitro",
|
|
4880
|
+
"other"
|
|
4881
|
+
]
|
|
4882
|
+
},
|
|
4883
|
+
"root_directory": {
|
|
4884
|
+
"type": "string",
|
|
4885
|
+
"description": "Application root directory (where package.json is located) relative to public_html"
|
|
4886
|
+
},
|
|
4887
|
+
"output_directory": {
|
|
4888
|
+
"type": "string",
|
|
4889
|
+
"description": "Build output directory relative to the root directory"
|
|
4890
|
+
},
|
|
4891
|
+
"build_script": {
|
|
4892
|
+
"type": "string",
|
|
4893
|
+
"description": "Build script that will be ran to build the application"
|
|
4894
|
+
},
|
|
4895
|
+
"entry_file": {
|
|
4896
|
+
"type": "string",
|
|
4897
|
+
"description": "The main entry point file for the application"
|
|
4898
|
+
},
|
|
4899
|
+
"package_manager": {
|
|
4900
|
+
"type": "string",
|
|
4901
|
+
"description": "Package manager",
|
|
4902
|
+
"enum": [
|
|
4903
|
+
"npm",
|
|
4904
|
+
"yarn",
|
|
4905
|
+
"pnpm"
|
|
4906
|
+
]
|
|
4907
|
+
},
|
|
4908
|
+
"source_type": {
|
|
4909
|
+
"type": "string",
|
|
4910
|
+
"description": "The source type of the files",
|
|
4911
|
+
"enum": [
|
|
4912
|
+
"archive"
|
|
4913
|
+
]
|
|
4914
|
+
},
|
|
4915
|
+
"source_options": {
|
|
4916
|
+
"type": "object",
|
|
4917
|
+
"description": "Source-specific options",
|
|
4918
|
+
"properties": {
|
|
4919
|
+
"archive_path": {
|
|
4920
|
+
"type": "string",
|
|
4921
|
+
"description": "The path to the archive file relative to the document root of the vhost (required if source is \"archive\")"
|
|
4922
|
+
}
|
|
4923
|
+
}
|
|
4924
|
+
}
|
|
4925
|
+
},
|
|
4926
|
+
"required": [
|
|
4927
|
+
"username",
|
|
4928
|
+
"domain",
|
|
4929
|
+
"node_version",
|
|
4930
|
+
"app_type",
|
|
4931
|
+
"root_directory",
|
|
4932
|
+
"output_directory",
|
|
4933
|
+
"build_script",
|
|
4934
|
+
"source_type",
|
|
4935
|
+
"source_options"
|
|
4936
|
+
]
|
|
4937
|
+
},
|
|
4938
|
+
"security": [
|
|
4939
|
+
{
|
|
4940
|
+
"apiToken": []
|
|
4941
|
+
}
|
|
4942
|
+
],
|
|
4943
|
+
"group": "hosting"
|
|
4944
|
+
},
|
|
4711
4945
|
{
|
|
4712
4946
|
"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.",
|
|
4947
|
+
"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
4948
|
"method": "POST",
|
|
4715
4949
|
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/builds/from-archive",
|
|
4716
4950
|
"inputSchema": {
|
|
@@ -4802,6 +5036,40 @@ const tools: OpenApiTool[] = [
|
|
|
4802
5036
|
],
|
|
4803
5037
|
"group": "hosting"
|
|
4804
5038
|
},
|
|
5039
|
+
{
|
|
5040
|
+
"name": "hosting_getNode_jsBuildSettingsFromArchiveV1",
|
|
5041
|
+
"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.",
|
|
5042
|
+
"method": "GET",
|
|
5043
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/builds/settings/from-archive",
|
|
5044
|
+
"inputSchema": {
|
|
5045
|
+
"type": "object",
|
|
5046
|
+
"properties": {
|
|
5047
|
+
"username": {
|
|
5048
|
+
"type": "string",
|
|
5049
|
+
"description": "username parameter"
|
|
5050
|
+
},
|
|
5051
|
+
"domain": {
|
|
5052
|
+
"type": "string",
|
|
5053
|
+
"description": "Domain name"
|
|
5054
|
+
},
|
|
5055
|
+
"archive_path": {
|
|
5056
|
+
"type": "string",
|
|
5057
|
+
"description": "The path to the archive file relative to the document root of the vhost"
|
|
5058
|
+
}
|
|
5059
|
+
},
|
|
5060
|
+
"required": [
|
|
5061
|
+
"username",
|
|
5062
|
+
"domain",
|
|
5063
|
+
"archive_path"
|
|
5064
|
+
]
|
|
5065
|
+
},
|
|
5066
|
+
"security": [
|
|
5067
|
+
{
|
|
5068
|
+
"apiToken": []
|
|
5069
|
+
}
|
|
5070
|
+
],
|
|
5071
|
+
"group": "hosting"
|
|
5072
|
+
},
|
|
4805
5073
|
{
|
|
4806
5074
|
"name": "hosting_getNodeJSBuildLogsV1",
|
|
4807
5075
|
"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).",
|
|
@@ -5312,7 +5580,7 @@ const tools: OpenApiTool[] = [
|
|
|
5312
5580
|
},
|
|
5313
5581
|
{
|
|
5314
5582
|
"name": "hosting_listWebsitesV1",
|
|
5315
|
-
"description": "Retrieve a paginated list of websites (CloudLinux, Builder, and Horizons) accessible to the\nauthenticated 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\nEach website includes a `website_type` field describing the type of\nwebsite detected on the underlying platform (`wordpress`, `builder`,\n`horizons`, `nodejs`, or `other`). Some fields, such as\n`vhost_type`, `username`, and `root_directory`, only apply to\nCloudLinux websites and are null for other platforms.\n\nUse the available query parameters to
|
|
5583
|
+
"description": "Retrieve a paginated list of websites (CloudLinux, Builder, and Horizons) accessible to the\nauthenticated 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\nEach website includes a `website_type` field describing the type of\nwebsite detected on the underlying platform (`wordpress`, `builder`,\n`horizons`, `nodejs`, or `other`). Some fields, such as\n`vhost_type`, `username`, and `root_directory`, only apply to\nCloudLinux websites and are null for other platforms.\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 the other available query parameters to\nfilter by username, order ID, enabled status, or domain name for more targeted\nresults.",
|
|
5316
5584
|
"method": "GET",
|
|
5317
5585
|
"path": "/api/hosting/v1/websites",
|
|
5318
5586
|
"inputSchema": {
|
|
@@ -5340,7 +5608,22 @@ const tools: OpenApiTool[] = [
|
|
|
5340
5608
|
},
|
|
5341
5609
|
"domain": {
|
|
5342
5610
|
"type": "string",
|
|
5343
|
-
"description": "Filter by domain name (
|
|
5611
|
+
"description": "Filter by domain name (case-insensitive substring match)"
|
|
5612
|
+
},
|
|
5613
|
+
"website_types": {
|
|
5614
|
+
"type": "array",
|
|
5615
|
+
"description": "Filter by detected website type, e.g. wordpress,nodejs. Accepts a comma-separated list.",
|
|
5616
|
+
"items": {
|
|
5617
|
+
"type": "string",
|
|
5618
|
+
"description": "website_types parameter",
|
|
5619
|
+
"enum": [
|
|
5620
|
+
"wordpress",
|
|
5621
|
+
"builder",
|
|
5622
|
+
"horizons",
|
|
5623
|
+
"nodejs",
|
|
5624
|
+
"other"
|
|
5625
|
+
]
|
|
5626
|
+
}
|
|
5344
5627
|
}
|
|
5345
5628
|
},
|
|
5346
5629
|
"required": []
|
|
@@ -5385,6 +5668,40 @@ const tools: OpenApiTool[] = [
|
|
|
5385
5668
|
],
|
|
5386
5669
|
"group": "hosting"
|
|
5387
5670
|
},
|
|
5671
|
+
{
|
|
5672
|
+
"name": "hosting_deployStaticSiteArchiveV1",
|
|
5673
|
+
"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`.",
|
|
5674
|
+
"method": "POST",
|
|
5675
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/deploy",
|
|
5676
|
+
"inputSchema": {
|
|
5677
|
+
"type": "object",
|
|
5678
|
+
"properties": {
|
|
5679
|
+
"username": {
|
|
5680
|
+
"type": "string",
|
|
5681
|
+
"description": "username parameter"
|
|
5682
|
+
},
|
|
5683
|
+
"domain": {
|
|
5684
|
+
"type": "string",
|
|
5685
|
+
"description": "Domain name"
|
|
5686
|
+
},
|
|
5687
|
+
"archive_path": {
|
|
5688
|
+
"type": "string",
|
|
5689
|
+
"description": "Relative path to the archive file from website root directory"
|
|
5690
|
+
}
|
|
5691
|
+
},
|
|
5692
|
+
"required": [
|
|
5693
|
+
"username",
|
|
5694
|
+
"domain",
|
|
5695
|
+
"archive_path"
|
|
5696
|
+
]
|
|
5697
|
+
},
|
|
5698
|
+
"security": [
|
|
5699
|
+
{
|
|
5700
|
+
"apiToken": []
|
|
5701
|
+
}
|
|
5702
|
+
],
|
|
5703
|
+
"group": "hosting"
|
|
5704
|
+
},
|
|
5388
5705
|
{
|
|
5389
5706
|
"name": "hosting_deleteWebsiteV1",
|
|
5390
5707
|
"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 +10861,45 @@ const tools: OpenApiTool[] = [
|
|
|
10544
10861
|
],
|
|
10545
10862
|
"group": "wordpress"
|
|
10546
10863
|
},
|
|
10864
|
+
{
|
|
10865
|
+
"name": "hosting_importWordPressWebsiteV1",
|
|
10866
|
+
"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.",
|
|
10867
|
+
"method": "POST",
|
|
10868
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/wordpress/import",
|
|
10869
|
+
"inputSchema": {
|
|
10870
|
+
"type": "object",
|
|
10871
|
+
"properties": {
|
|
10872
|
+
"username": {
|
|
10873
|
+
"type": "string",
|
|
10874
|
+
"description": "username parameter"
|
|
10875
|
+
},
|
|
10876
|
+
"domain": {
|
|
10877
|
+
"type": "string",
|
|
10878
|
+
"description": "Domain name"
|
|
10879
|
+
},
|
|
10880
|
+
"archive_path": {
|
|
10881
|
+
"type": "string",
|
|
10882
|
+
"description": "Path to the WordPress archive file (relative to website root)"
|
|
10883
|
+
},
|
|
10884
|
+
"sql_path": {
|
|
10885
|
+
"type": "string",
|
|
10886
|
+
"description": "Path to the database SQL file (relative to website root)"
|
|
10887
|
+
}
|
|
10888
|
+
},
|
|
10889
|
+
"required": [
|
|
10890
|
+
"username",
|
|
10891
|
+
"domain",
|
|
10892
|
+
"archive_path",
|
|
10893
|
+
"sql_path"
|
|
10894
|
+
]
|
|
10895
|
+
},
|
|
10896
|
+
"security": [
|
|
10897
|
+
{
|
|
10898
|
+
"apiToken": []
|
|
10899
|
+
}
|
|
10900
|
+
],
|
|
10901
|
+
"group": "wordpress"
|
|
10902
|
+
},
|
|
10547
10903
|
{
|
|
10548
10904
|
"name": "hosting_installWordPressV1",
|
|
10549
10905
|
"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.",
|
|
@@ -10655,7 +11011,7 @@ const tools: OpenApiTool[] = [
|
|
|
10655
11011
|
},
|
|
10656
11012
|
"domain": {
|
|
10657
11013
|
"type": "string",
|
|
10658
|
-
"description": "Filter by domain name (
|
|
11014
|
+
"description": "Filter by domain name (case-insensitive substring match)"
|
|
10659
11015
|
},
|
|
10660
11016
|
"ownership": {
|
|
10661
11017
|
"type": "string",
|
|
@@ -11081,6 +11437,45 @@ const tools: OpenApiTool[] = [
|
|
|
11081
11437
|
],
|
|
11082
11438
|
"group": "wordpress"
|
|
11083
11439
|
},
|
|
11440
|
+
{
|
|
11441
|
+
"name": "hosting_deployWordPressPluginV1",
|
|
11442
|
+
"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.",
|
|
11443
|
+
"method": "POST",
|
|
11444
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/wordpress/plugins/deploy",
|
|
11445
|
+
"inputSchema": {
|
|
11446
|
+
"type": "object",
|
|
11447
|
+
"properties": {
|
|
11448
|
+
"username": {
|
|
11449
|
+
"type": "string",
|
|
11450
|
+
"description": "username parameter"
|
|
11451
|
+
},
|
|
11452
|
+
"domain": {
|
|
11453
|
+
"type": "string",
|
|
11454
|
+
"description": "Domain name"
|
|
11455
|
+
},
|
|
11456
|
+
"slug": {
|
|
11457
|
+
"type": "string",
|
|
11458
|
+
"description": "Slug of the plugin"
|
|
11459
|
+
},
|
|
11460
|
+
"plugin_path": {
|
|
11461
|
+
"type": "string",
|
|
11462
|
+
"description": "Relative path to the plugin directory from wp-content/plugins"
|
|
11463
|
+
}
|
|
11464
|
+
},
|
|
11465
|
+
"required": [
|
|
11466
|
+
"username",
|
|
11467
|
+
"domain",
|
|
11468
|
+
"slug",
|
|
11469
|
+
"plugin_path"
|
|
11470
|
+
]
|
|
11471
|
+
},
|
|
11472
|
+
"security": [
|
|
11473
|
+
{
|
|
11474
|
+
"apiToken": []
|
|
11475
|
+
}
|
|
11476
|
+
],
|
|
11477
|
+
"group": "wordpress"
|
|
11478
|
+
},
|
|
11084
11479
|
{
|
|
11085
11480
|
"name": "hosting_installWordPressPluginsV1",
|
|
11086
11481
|
"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.",
|
|
@@ -11240,7 +11635,7 @@ const tools: OpenApiTool[] = [
|
|
|
11240
11635
|
"properties": {
|
|
11241
11636
|
"domain": {
|
|
11242
11637
|
"type": "string",
|
|
11243
|
-
"description": "Filter by domain name (
|
|
11638
|
+
"description": "Filter by domain name (case-insensitive substring match)"
|
|
11244
11639
|
}
|
|
11245
11640
|
},
|
|
11246
11641
|
"required": []
|
|
@@ -11403,6 +11798,49 @@ const tools: OpenApiTool[] = [
|
|
|
11403
11798
|
],
|
|
11404
11799
|
"group": "wordpress"
|
|
11405
11800
|
},
|
|
11801
|
+
{
|
|
11802
|
+
"name": "hosting_deployWordPressThemeV1",
|
|
11803
|
+
"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.",
|
|
11804
|
+
"method": "POST",
|
|
11805
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/wordpress/themes/deploy",
|
|
11806
|
+
"inputSchema": {
|
|
11807
|
+
"type": "object",
|
|
11808
|
+
"properties": {
|
|
11809
|
+
"username": {
|
|
11810
|
+
"type": "string",
|
|
11811
|
+
"description": "username parameter"
|
|
11812
|
+
},
|
|
11813
|
+
"domain": {
|
|
11814
|
+
"type": "string",
|
|
11815
|
+
"description": "Domain name"
|
|
11816
|
+
},
|
|
11817
|
+
"slug": {
|
|
11818
|
+
"type": "string",
|
|
11819
|
+
"description": "Slug of the theme"
|
|
11820
|
+
},
|
|
11821
|
+
"theme_path": {
|
|
11822
|
+
"type": "string",
|
|
11823
|
+
"description": "Relative path to the theme directory from wp-content/themes"
|
|
11824
|
+
},
|
|
11825
|
+
"is_activated": {
|
|
11826
|
+
"type": "boolean",
|
|
11827
|
+
"description": "Whether to activate the theme after deployment"
|
|
11828
|
+
}
|
|
11829
|
+
},
|
|
11830
|
+
"required": [
|
|
11831
|
+
"username",
|
|
11832
|
+
"domain",
|
|
11833
|
+
"slug",
|
|
11834
|
+
"theme_path"
|
|
11835
|
+
]
|
|
11836
|
+
},
|
|
11837
|
+
"security": [
|
|
11838
|
+
{
|
|
11839
|
+
"apiToken": []
|
|
11840
|
+
}
|
|
11841
|
+
],
|
|
11842
|
+
"group": "wordpress"
|
|
11843
|
+
},
|
|
11406
11844
|
{
|
|
11407
11845
|
"name": "hosting_installWordPressThemeV1",
|
|
11408
11846
|
"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.",
|