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.js
CHANGED
|
@@ -475,6 +475,30 @@ export default [
|
|
|
475
475
|
],
|
|
476
476
|
"group": "agency-hosting"
|
|
477
477
|
},
|
|
478
|
+
{
|
|
479
|
+
"name": "agency-hosting_generateUploadURLV1",
|
|
480
|
+
"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```",
|
|
481
|
+
"method": "POST",
|
|
482
|
+
"path": "/api/agency-hosting/v1/websites/{website_uid}/files/upload-urls",
|
|
483
|
+
"inputSchema": {
|
|
484
|
+
"type": "object",
|
|
485
|
+
"properties": {
|
|
486
|
+
"website_uid": {
|
|
487
|
+
"type": "string",
|
|
488
|
+
"description": "Agency Plan website UID"
|
|
489
|
+
}
|
|
490
|
+
},
|
|
491
|
+
"required": [
|
|
492
|
+
"website_uid"
|
|
493
|
+
]
|
|
494
|
+
},
|
|
495
|
+
"security": [
|
|
496
|
+
{
|
|
497
|
+
"apiToken": []
|
|
498
|
+
}
|
|
499
|
+
],
|
|
500
|
+
"group": "agency-hosting"
|
|
501
|
+
},
|
|
478
502
|
{
|
|
479
503
|
"name": "agency-hosting_importWebsiteFromArchiveV1",
|
|
480
504
|
"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.",
|
|
@@ -1357,6 +1381,74 @@ export default [
|
|
|
1357
1381
|
],
|
|
1358
1382
|
"group": "agency-hosting"
|
|
1359
1383
|
},
|
|
1384
|
+
{
|
|
1385
|
+
"name": "agency-hosting_listAgencyPlanWebsitesV1",
|
|
1386
|
+
"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.",
|
|
1387
|
+
"method": "GET",
|
|
1388
|
+
"path": "/api/agency-hosting/v1/websites",
|
|
1389
|
+
"inputSchema": {
|
|
1390
|
+
"type": "object",
|
|
1391
|
+
"properties": {
|
|
1392
|
+
"page": {
|
|
1393
|
+
"type": "integer",
|
|
1394
|
+
"description": "Page number"
|
|
1395
|
+
},
|
|
1396
|
+
"per_page": {
|
|
1397
|
+
"type": "integer",
|
|
1398
|
+
"description": "Number of items per page"
|
|
1399
|
+
},
|
|
1400
|
+
"order_ids": {
|
|
1401
|
+
"type": "array",
|
|
1402
|
+
"description": "Filter by order IDs. Accepts a comma-separated list.",
|
|
1403
|
+
"items": {
|
|
1404
|
+
"type": "integer",
|
|
1405
|
+
"description": "order_ids parameter"
|
|
1406
|
+
}
|
|
1407
|
+
},
|
|
1408
|
+
"states": {
|
|
1409
|
+
"type": "array",
|
|
1410
|
+
"description": "Filter by website state. Accepts a comma-separated list.",
|
|
1411
|
+
"items": {
|
|
1412
|
+
"type": "string",
|
|
1413
|
+
"description": "states parameter",
|
|
1414
|
+
"enum": [
|
|
1415
|
+
"active",
|
|
1416
|
+
"locked",
|
|
1417
|
+
"suspended",
|
|
1418
|
+
"deleting",
|
|
1419
|
+
"deleted"
|
|
1420
|
+
]
|
|
1421
|
+
}
|
|
1422
|
+
},
|
|
1423
|
+
"website_types": {
|
|
1424
|
+
"type": "array",
|
|
1425
|
+
"description": "Filter by detected website type, e.g. wordpress,nodejs. Accepts a comma-separated list.",
|
|
1426
|
+
"items": {
|
|
1427
|
+
"type": "string",
|
|
1428
|
+
"description": "website_types parameter",
|
|
1429
|
+
"enum": [
|
|
1430
|
+
"wordpress",
|
|
1431
|
+
"builder",
|
|
1432
|
+
"horizons",
|
|
1433
|
+
"nodejs",
|
|
1434
|
+
"other"
|
|
1435
|
+
]
|
|
1436
|
+
}
|
|
1437
|
+
},
|
|
1438
|
+
"domain": {
|
|
1439
|
+
"type": "string",
|
|
1440
|
+
"description": "Filter by domain name (case-insensitive substring match)"
|
|
1441
|
+
}
|
|
1442
|
+
},
|
|
1443
|
+
"required": []
|
|
1444
|
+
},
|
|
1445
|
+
"security": [
|
|
1446
|
+
{
|
|
1447
|
+
"apiToken": []
|
|
1448
|
+
}
|
|
1449
|
+
],
|
|
1450
|
+
"group": "agency-hosting"
|
|
1451
|
+
},
|
|
1360
1452
|
{
|
|
1361
1453
|
"name": "agency-hosting_listWebsiteProcessesV1",
|
|
1362
1454
|
"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.",
|
|
@@ -4026,7 +4118,7 @@ export default [
|
|
|
4026
4118
|
},
|
|
4027
4119
|
"domain": {
|
|
4028
4120
|
"type": "string",
|
|
4029
|
-
"description": "Filter by domain name (
|
|
4121
|
+
"description": "Filter by domain name (case-insensitive substring match)"
|
|
4030
4122
|
},
|
|
4031
4123
|
"is_assigned": {
|
|
4032
4124
|
"type": "boolean",
|
|
@@ -4542,6 +4634,35 @@ export default [
|
|
|
4542
4634
|
],
|
|
4543
4635
|
"group": "hosting"
|
|
4544
4636
|
},
|
|
4637
|
+
{
|
|
4638
|
+
"name": "hosting_generateUploadURLV1",
|
|
4639
|
+
"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```",
|
|
4640
|
+
"method": "POST",
|
|
4641
|
+
"path": "/api/hosting/v1/files/upload-urls",
|
|
4642
|
+
"inputSchema": {
|
|
4643
|
+
"type": "object",
|
|
4644
|
+
"properties": {
|
|
4645
|
+
"username": {
|
|
4646
|
+
"type": "string",
|
|
4647
|
+
"description": "Account username"
|
|
4648
|
+
},
|
|
4649
|
+
"domain": {
|
|
4650
|
+
"type": "string",
|
|
4651
|
+
"description": "Website domain"
|
|
4652
|
+
}
|
|
4653
|
+
},
|
|
4654
|
+
"required": [
|
|
4655
|
+
"username",
|
|
4656
|
+
"domain"
|
|
4657
|
+
]
|
|
4658
|
+
},
|
|
4659
|
+
"security": [
|
|
4660
|
+
{
|
|
4661
|
+
"apiToken": []
|
|
4662
|
+
}
|
|
4663
|
+
],
|
|
4664
|
+
"group": "hosting"
|
|
4665
|
+
},
|
|
4545
4666
|
{
|
|
4546
4667
|
"name": "hosting_listWebsiteFilesAndDirectoriesV1",
|
|
4547
4668
|
"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.",
|
|
@@ -4694,9 +4815,122 @@ export default [
|
|
|
4694
4815
|
],
|
|
4695
4816
|
"group": "hosting"
|
|
4696
4817
|
},
|
|
4818
|
+
{
|
|
4819
|
+
"name": "hosting_startNode_jsBuildV1",
|
|
4820
|
+
"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.",
|
|
4821
|
+
"method": "POST",
|
|
4822
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/builds",
|
|
4823
|
+
"inputSchema": {
|
|
4824
|
+
"type": "object",
|
|
4825
|
+
"properties": {
|
|
4826
|
+
"username": {
|
|
4827
|
+
"type": "string",
|
|
4828
|
+
"description": "username parameter"
|
|
4829
|
+
},
|
|
4830
|
+
"domain": {
|
|
4831
|
+
"type": "string",
|
|
4832
|
+
"description": "Domain name"
|
|
4833
|
+
},
|
|
4834
|
+
"node_version": {
|
|
4835
|
+
"type": "integer",
|
|
4836
|
+
"description": "Node.js version",
|
|
4837
|
+
"enum": [
|
|
4838
|
+
18,
|
|
4839
|
+
20,
|
|
4840
|
+
22,
|
|
4841
|
+
24
|
|
4842
|
+
]
|
|
4843
|
+
},
|
|
4844
|
+
"app_type": {
|
|
4845
|
+
"type": "string",
|
|
4846
|
+
"description": "Node.js application type",
|
|
4847
|
+
"enum": [
|
|
4848
|
+
"create-react-app",
|
|
4849
|
+
"gatsby",
|
|
4850
|
+
"vite",
|
|
4851
|
+
"angular",
|
|
4852
|
+
"react",
|
|
4853
|
+
"vue",
|
|
4854
|
+
"parcel",
|
|
4855
|
+
"next",
|
|
4856
|
+
"nuxt",
|
|
4857
|
+
"nest",
|
|
4858
|
+
"express",
|
|
4859
|
+
"fastify",
|
|
4860
|
+
"astro",
|
|
4861
|
+
"svelte",
|
|
4862
|
+
"svelte-kit",
|
|
4863
|
+
"hono",
|
|
4864
|
+
"react-router",
|
|
4865
|
+
"nitro",
|
|
4866
|
+
"other"
|
|
4867
|
+
]
|
|
4868
|
+
},
|
|
4869
|
+
"root_directory": {
|
|
4870
|
+
"type": "string",
|
|
4871
|
+
"description": "Application root directory (where package.json is located) relative to public_html"
|
|
4872
|
+
},
|
|
4873
|
+
"output_directory": {
|
|
4874
|
+
"type": "string",
|
|
4875
|
+
"description": "Build output directory relative to the root directory"
|
|
4876
|
+
},
|
|
4877
|
+
"build_script": {
|
|
4878
|
+
"type": "string",
|
|
4879
|
+
"description": "Build script that will be ran to build the application"
|
|
4880
|
+
},
|
|
4881
|
+
"entry_file": {
|
|
4882
|
+
"type": "string",
|
|
4883
|
+
"description": "The main entry point file for the application"
|
|
4884
|
+
},
|
|
4885
|
+
"package_manager": {
|
|
4886
|
+
"type": "string",
|
|
4887
|
+
"description": "Package manager",
|
|
4888
|
+
"enum": [
|
|
4889
|
+
"npm",
|
|
4890
|
+
"yarn",
|
|
4891
|
+
"pnpm"
|
|
4892
|
+
]
|
|
4893
|
+
},
|
|
4894
|
+
"source_type": {
|
|
4895
|
+
"type": "string",
|
|
4896
|
+
"description": "The source type of the files",
|
|
4897
|
+
"enum": [
|
|
4898
|
+
"archive"
|
|
4899
|
+
]
|
|
4900
|
+
},
|
|
4901
|
+
"source_options": {
|
|
4902
|
+
"type": "object",
|
|
4903
|
+
"description": "Source-specific options",
|
|
4904
|
+
"properties": {
|
|
4905
|
+
"archive_path": {
|
|
4906
|
+
"type": "string",
|
|
4907
|
+
"description": "The path to the archive file relative to the document root of the vhost (required if source is \"archive\")"
|
|
4908
|
+
}
|
|
4909
|
+
}
|
|
4910
|
+
}
|
|
4911
|
+
},
|
|
4912
|
+
"required": [
|
|
4913
|
+
"username",
|
|
4914
|
+
"domain",
|
|
4915
|
+
"node_version",
|
|
4916
|
+
"app_type",
|
|
4917
|
+
"root_directory",
|
|
4918
|
+
"output_directory",
|
|
4919
|
+
"build_script",
|
|
4920
|
+
"source_type",
|
|
4921
|
+
"source_options"
|
|
4922
|
+
]
|
|
4923
|
+
},
|
|
4924
|
+
"security": [
|
|
4925
|
+
{
|
|
4926
|
+
"apiToken": []
|
|
4927
|
+
}
|
|
4928
|
+
],
|
|
4929
|
+
"group": "hosting"
|
|
4930
|
+
},
|
|
4697
4931
|
{
|
|
4698
4932
|
"name": "hosting_createNodeJSBuildFromArchiveV1",
|
|
4699
|
-
"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.",
|
|
4933
|
+
"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.",
|
|
4700
4934
|
"method": "POST",
|
|
4701
4935
|
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/builds/from-archive",
|
|
4702
4936
|
"inputSchema": {
|
|
@@ -4788,6 +5022,40 @@ export default [
|
|
|
4788
5022
|
],
|
|
4789
5023
|
"group": "hosting"
|
|
4790
5024
|
},
|
|
5025
|
+
{
|
|
5026
|
+
"name": "hosting_getNode_jsBuildSettingsFromArchiveV1",
|
|
5027
|
+
"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.",
|
|
5028
|
+
"method": "GET",
|
|
5029
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/builds/settings/from-archive",
|
|
5030
|
+
"inputSchema": {
|
|
5031
|
+
"type": "object",
|
|
5032
|
+
"properties": {
|
|
5033
|
+
"username": {
|
|
5034
|
+
"type": "string",
|
|
5035
|
+
"description": "username parameter"
|
|
5036
|
+
},
|
|
5037
|
+
"domain": {
|
|
5038
|
+
"type": "string",
|
|
5039
|
+
"description": "Domain name"
|
|
5040
|
+
},
|
|
5041
|
+
"archive_path": {
|
|
5042
|
+
"type": "string",
|
|
5043
|
+
"description": "The path to the archive file relative to the document root of the vhost"
|
|
5044
|
+
}
|
|
5045
|
+
},
|
|
5046
|
+
"required": [
|
|
5047
|
+
"username",
|
|
5048
|
+
"domain",
|
|
5049
|
+
"archive_path"
|
|
5050
|
+
]
|
|
5051
|
+
},
|
|
5052
|
+
"security": [
|
|
5053
|
+
{
|
|
5054
|
+
"apiToken": []
|
|
5055
|
+
}
|
|
5056
|
+
],
|
|
5057
|
+
"group": "hosting"
|
|
5058
|
+
},
|
|
4791
5059
|
{
|
|
4792
5060
|
"name": "hosting_getNodeJSBuildLogsV1",
|
|
4793
5061
|
"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).",
|
|
@@ -5298,7 +5566,7 @@ export default [
|
|
|
5298
5566
|
},
|
|
5299
5567
|
{
|
|
5300
5568
|
"name": "hosting_listWebsitesV1",
|
|
5301
|
-
"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
|
|
5569
|
+
"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.",
|
|
5302
5570
|
"method": "GET",
|
|
5303
5571
|
"path": "/api/hosting/v1/websites",
|
|
5304
5572
|
"inputSchema": {
|
|
@@ -5326,7 +5594,22 @@ export default [
|
|
|
5326
5594
|
},
|
|
5327
5595
|
"domain": {
|
|
5328
5596
|
"type": "string",
|
|
5329
|
-
"description": "Filter by domain name (
|
|
5597
|
+
"description": "Filter by domain name (case-insensitive substring match)"
|
|
5598
|
+
},
|
|
5599
|
+
"website_types": {
|
|
5600
|
+
"type": "array",
|
|
5601
|
+
"description": "Filter by detected website type, e.g. wordpress,nodejs. Accepts a comma-separated list.",
|
|
5602
|
+
"items": {
|
|
5603
|
+
"type": "string",
|
|
5604
|
+
"description": "website_types parameter",
|
|
5605
|
+
"enum": [
|
|
5606
|
+
"wordpress",
|
|
5607
|
+
"builder",
|
|
5608
|
+
"horizons",
|
|
5609
|
+
"nodejs",
|
|
5610
|
+
"other"
|
|
5611
|
+
]
|
|
5612
|
+
}
|
|
5330
5613
|
}
|
|
5331
5614
|
},
|
|
5332
5615
|
"required": []
|
|
@@ -5371,6 +5654,40 @@ export default [
|
|
|
5371
5654
|
],
|
|
5372
5655
|
"group": "hosting"
|
|
5373
5656
|
},
|
|
5657
|
+
{
|
|
5658
|
+
"name": "hosting_deployStaticSiteArchiveV1",
|
|
5659
|
+
"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`.",
|
|
5660
|
+
"method": "POST",
|
|
5661
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/deploy",
|
|
5662
|
+
"inputSchema": {
|
|
5663
|
+
"type": "object",
|
|
5664
|
+
"properties": {
|
|
5665
|
+
"username": {
|
|
5666
|
+
"type": "string",
|
|
5667
|
+
"description": "username parameter"
|
|
5668
|
+
},
|
|
5669
|
+
"domain": {
|
|
5670
|
+
"type": "string",
|
|
5671
|
+
"description": "Domain name"
|
|
5672
|
+
},
|
|
5673
|
+
"archive_path": {
|
|
5674
|
+
"type": "string",
|
|
5675
|
+
"description": "Relative path to the archive file from website root directory"
|
|
5676
|
+
}
|
|
5677
|
+
},
|
|
5678
|
+
"required": [
|
|
5679
|
+
"username",
|
|
5680
|
+
"domain",
|
|
5681
|
+
"archive_path"
|
|
5682
|
+
]
|
|
5683
|
+
},
|
|
5684
|
+
"security": [
|
|
5685
|
+
{
|
|
5686
|
+
"apiToken": []
|
|
5687
|
+
}
|
|
5688
|
+
],
|
|
5689
|
+
"group": "hosting"
|
|
5690
|
+
},
|
|
5374
5691
|
{
|
|
5375
5692
|
"name": "hosting_deleteWebsiteV1",
|
|
5376
5693
|
"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.",
|
|
@@ -10530,6 +10847,45 @@ export default [
|
|
|
10530
10847
|
],
|
|
10531
10848
|
"group": "wordpress"
|
|
10532
10849
|
},
|
|
10850
|
+
{
|
|
10851
|
+
"name": "hosting_importWordPressWebsiteV1",
|
|
10852
|
+
"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.",
|
|
10853
|
+
"method": "POST",
|
|
10854
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/wordpress/import",
|
|
10855
|
+
"inputSchema": {
|
|
10856
|
+
"type": "object",
|
|
10857
|
+
"properties": {
|
|
10858
|
+
"username": {
|
|
10859
|
+
"type": "string",
|
|
10860
|
+
"description": "username parameter"
|
|
10861
|
+
},
|
|
10862
|
+
"domain": {
|
|
10863
|
+
"type": "string",
|
|
10864
|
+
"description": "Domain name"
|
|
10865
|
+
},
|
|
10866
|
+
"archive_path": {
|
|
10867
|
+
"type": "string",
|
|
10868
|
+
"description": "Path to the WordPress archive file (relative to website root)"
|
|
10869
|
+
},
|
|
10870
|
+
"sql_path": {
|
|
10871
|
+
"type": "string",
|
|
10872
|
+
"description": "Path to the database SQL file (relative to website root)"
|
|
10873
|
+
}
|
|
10874
|
+
},
|
|
10875
|
+
"required": [
|
|
10876
|
+
"username",
|
|
10877
|
+
"domain",
|
|
10878
|
+
"archive_path",
|
|
10879
|
+
"sql_path"
|
|
10880
|
+
]
|
|
10881
|
+
},
|
|
10882
|
+
"security": [
|
|
10883
|
+
{
|
|
10884
|
+
"apiToken": []
|
|
10885
|
+
}
|
|
10886
|
+
],
|
|
10887
|
+
"group": "wordpress"
|
|
10888
|
+
},
|
|
10533
10889
|
{
|
|
10534
10890
|
"name": "hosting_installWordPressV1",
|
|
10535
10891
|
"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.",
|
|
@@ -10641,7 +10997,7 @@ export default [
|
|
|
10641
10997
|
},
|
|
10642
10998
|
"domain": {
|
|
10643
10999
|
"type": "string",
|
|
10644
|
-
"description": "Filter by domain name (
|
|
11000
|
+
"description": "Filter by domain name (case-insensitive substring match)"
|
|
10645
11001
|
},
|
|
10646
11002
|
"ownership": {
|
|
10647
11003
|
"type": "string",
|
|
@@ -11067,6 +11423,45 @@ export default [
|
|
|
11067
11423
|
],
|
|
11068
11424
|
"group": "wordpress"
|
|
11069
11425
|
},
|
|
11426
|
+
{
|
|
11427
|
+
"name": "hosting_deployWordPressPluginV1",
|
|
11428
|
+
"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.",
|
|
11429
|
+
"method": "POST",
|
|
11430
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/wordpress/plugins/deploy",
|
|
11431
|
+
"inputSchema": {
|
|
11432
|
+
"type": "object",
|
|
11433
|
+
"properties": {
|
|
11434
|
+
"username": {
|
|
11435
|
+
"type": "string",
|
|
11436
|
+
"description": "username parameter"
|
|
11437
|
+
},
|
|
11438
|
+
"domain": {
|
|
11439
|
+
"type": "string",
|
|
11440
|
+
"description": "Domain name"
|
|
11441
|
+
},
|
|
11442
|
+
"slug": {
|
|
11443
|
+
"type": "string",
|
|
11444
|
+
"description": "Slug of the plugin"
|
|
11445
|
+
},
|
|
11446
|
+
"plugin_path": {
|
|
11447
|
+
"type": "string",
|
|
11448
|
+
"description": "Relative path to the plugin directory from wp-content/plugins"
|
|
11449
|
+
}
|
|
11450
|
+
},
|
|
11451
|
+
"required": [
|
|
11452
|
+
"username",
|
|
11453
|
+
"domain",
|
|
11454
|
+
"slug",
|
|
11455
|
+
"plugin_path"
|
|
11456
|
+
]
|
|
11457
|
+
},
|
|
11458
|
+
"security": [
|
|
11459
|
+
{
|
|
11460
|
+
"apiToken": []
|
|
11461
|
+
}
|
|
11462
|
+
],
|
|
11463
|
+
"group": "wordpress"
|
|
11464
|
+
},
|
|
11070
11465
|
{
|
|
11071
11466
|
"name": "hosting_installWordPressPluginsV1",
|
|
11072
11467
|
"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.",
|
|
@@ -11226,7 +11621,7 @@ export default [
|
|
|
11226
11621
|
"properties": {
|
|
11227
11622
|
"domain": {
|
|
11228
11623
|
"type": "string",
|
|
11229
|
-
"description": "Filter by domain name (
|
|
11624
|
+
"description": "Filter by domain name (case-insensitive substring match)"
|
|
11230
11625
|
}
|
|
11231
11626
|
},
|
|
11232
11627
|
"required": []
|
|
@@ -11389,6 +11784,49 @@ export default [
|
|
|
11389
11784
|
],
|
|
11390
11785
|
"group": "wordpress"
|
|
11391
11786
|
},
|
|
11787
|
+
{
|
|
11788
|
+
"name": "hosting_deployWordPressThemeV1",
|
|
11789
|
+
"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.",
|
|
11790
|
+
"method": "POST",
|
|
11791
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/wordpress/themes/deploy",
|
|
11792
|
+
"inputSchema": {
|
|
11793
|
+
"type": "object",
|
|
11794
|
+
"properties": {
|
|
11795
|
+
"username": {
|
|
11796
|
+
"type": "string",
|
|
11797
|
+
"description": "username parameter"
|
|
11798
|
+
},
|
|
11799
|
+
"domain": {
|
|
11800
|
+
"type": "string",
|
|
11801
|
+
"description": "Domain name"
|
|
11802
|
+
},
|
|
11803
|
+
"slug": {
|
|
11804
|
+
"type": "string",
|
|
11805
|
+
"description": "Slug of the theme"
|
|
11806
|
+
},
|
|
11807
|
+
"theme_path": {
|
|
11808
|
+
"type": "string",
|
|
11809
|
+
"description": "Relative path to the theme directory from wp-content/themes"
|
|
11810
|
+
},
|
|
11811
|
+
"is_activated": {
|
|
11812
|
+
"type": "boolean",
|
|
11813
|
+
"description": "Whether to activate the theme after deployment"
|
|
11814
|
+
}
|
|
11815
|
+
},
|
|
11816
|
+
"required": [
|
|
11817
|
+
"username",
|
|
11818
|
+
"domain",
|
|
11819
|
+
"slug",
|
|
11820
|
+
"theme_path"
|
|
11821
|
+
]
|
|
11822
|
+
},
|
|
11823
|
+
"security": [
|
|
11824
|
+
{
|
|
11825
|
+
"apiToken": []
|
|
11826
|
+
}
|
|
11827
|
+
],
|
|
11828
|
+
"group": "wordpress"
|
|
11829
|
+
},
|
|
11392
11830
|
{
|
|
11393
11831
|
"name": "hosting_installWordPressThemeV1",
|
|
11394
11832
|
"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.",
|