hostinger-api-mcp 0.2.2 → 0.2.3
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 +31 -2
- package/package.json +1 -1
- package/src/core/runtime.js +1 -1
- package/src/core/runtime.ts +1 -1
- package/src/core/tools/all.js +105 -0
- package/src/core/tools/all.ts +105 -0
- package/src/core/tools/hosting.js +105 -0
- package/src/core/tools/hosting.ts +105 -0
- 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/hosting.js +1 -1
- package/src/servers/hosting.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/types.d.ts +75 -0
package/README.md
CHANGED
|
@@ -49,11 +49,11 @@ pnpm update -g hostinger-api-mcp
|
|
|
49
49
|
|
|
50
50
|
This package installs the following MCP server commands:
|
|
51
51
|
|
|
52
|
-
- `hostinger-api-mcp` — unified server with every tool (
|
|
52
|
+
- `hostinger-api-mcp` — unified server with every tool (121 total)
|
|
53
53
|
- `hostinger-billing-mcp` — 7 tools for billing
|
|
54
54
|
- `hostinger-dns-mcp` — 8 tools for dns
|
|
55
55
|
- `hostinger-domains-mcp` — 18 tools for domains
|
|
56
|
-
- `hostinger-hosting-mcp` —
|
|
56
|
+
- `hostinger-hosting-mcp` — 16 tools for hosting
|
|
57
57
|
- `hostinger-reach-mcp` — 10 tools for reach
|
|
58
58
|
- `hostinger-vps-mcp` — 62 tools for vps
|
|
59
59
|
|
|
@@ -612,6 +612,35 @@ and you can always connect a custom domain to your site later.
|
|
|
612
612
|
- **Method**: `POST`
|
|
613
613
|
- **Path**: `/api/hosting/v1/domains/free-subdomains`
|
|
614
614
|
|
|
615
|
+
#### hosting_listWebsiteSubdomainsV1
|
|
616
|
+
|
|
617
|
+
Retrieve all subdomains created under the selected website.
|
|
618
|
+
|
|
619
|
+
Use this endpoint to inspect subdomain configuration for a specific website,
|
|
620
|
+
including the parent domain and root directory assigned to each subdomain.
|
|
621
|
+
|
|
622
|
+
- **Method**: `GET`
|
|
623
|
+
- **Path**: `/api/hosting/v1/accounts/{username}/websites/{domain}/subdomains`
|
|
624
|
+
|
|
625
|
+
#### hosting_createWebsiteSubdomainV1
|
|
626
|
+
|
|
627
|
+
Create a new subdomain for the selected website.
|
|
628
|
+
|
|
629
|
+
Provide a subdomain prefix and, optionally, a custom directory or the
|
|
630
|
+
website public directory to use as the subdomain root.
|
|
631
|
+
|
|
632
|
+
- **Method**: `POST`
|
|
633
|
+
- **Path**: `/api/hosting/v1/accounts/{username}/websites/{domain}/subdomains`
|
|
634
|
+
|
|
635
|
+
#### hosting_deleteWebsiteSubdomainV1
|
|
636
|
+
|
|
637
|
+
Delete an existing subdomain from the selected website.
|
|
638
|
+
|
|
639
|
+
Use this endpoint to remove subdomains that are no longer needed.
|
|
640
|
+
|
|
641
|
+
- **Method**: `DELETE`
|
|
642
|
+
- **Path**: `/api/hosting/v1/accounts/{username}/websites/{domain}/subdomains/{subdomain}`
|
|
643
|
+
|
|
615
644
|
#### hosting_verifyDomainOwnershipV1
|
|
616
645
|
|
|
617
646
|
Verify ownership of a single domain and return the verification status.
|
package/package.json
CHANGED
package/src/core/runtime.js
CHANGED
package/src/core/runtime.ts
CHANGED
package/src/core/tools/all.js
CHANGED
|
@@ -1328,6 +1328,111 @@ export default [
|
|
|
1328
1328
|
],
|
|
1329
1329
|
"group": "hosting"
|
|
1330
1330
|
},
|
|
1331
|
+
{
|
|
1332
|
+
"name": "hosting_listWebsiteSubdomainsV1",
|
|
1333
|
+
"description": "Retrieve all subdomains created under the selected website.\n\nUse this endpoint to inspect subdomain configuration for a specific website,\nincluding the parent domain and root directory assigned to each subdomain.",
|
|
1334
|
+
"method": "GET",
|
|
1335
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/subdomains",
|
|
1336
|
+
"inputSchema": {
|
|
1337
|
+
"type": "object",
|
|
1338
|
+
"properties": {
|
|
1339
|
+
"username": {
|
|
1340
|
+
"type": "string",
|
|
1341
|
+
"description": "username parameter"
|
|
1342
|
+
},
|
|
1343
|
+
"domain": {
|
|
1344
|
+
"type": "string",
|
|
1345
|
+
"description": "Domain name"
|
|
1346
|
+
}
|
|
1347
|
+
},
|
|
1348
|
+
"required": [
|
|
1349
|
+
"username",
|
|
1350
|
+
"domain"
|
|
1351
|
+
]
|
|
1352
|
+
},
|
|
1353
|
+
"security": [
|
|
1354
|
+
{
|
|
1355
|
+
"apiToken": []
|
|
1356
|
+
}
|
|
1357
|
+
],
|
|
1358
|
+
"group": "hosting"
|
|
1359
|
+
},
|
|
1360
|
+
{
|
|
1361
|
+
"name": "hosting_createWebsiteSubdomainV1",
|
|
1362
|
+
"description": "Create a new subdomain for the selected website.\n\nProvide a subdomain prefix and, optionally, a custom directory or the\nwebsite public directory to use as the subdomain root.",
|
|
1363
|
+
"method": "POST",
|
|
1364
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/subdomains",
|
|
1365
|
+
"inputSchema": {
|
|
1366
|
+
"type": "object",
|
|
1367
|
+
"properties": {
|
|
1368
|
+
"username": {
|
|
1369
|
+
"type": "string",
|
|
1370
|
+
"description": "username parameter"
|
|
1371
|
+
},
|
|
1372
|
+
"domain": {
|
|
1373
|
+
"type": "string",
|
|
1374
|
+
"description": "Domain name"
|
|
1375
|
+
},
|
|
1376
|
+
"subdomain": {
|
|
1377
|
+
"type": "string",
|
|
1378
|
+
"description": "Subdomain prefix to create under the selected website"
|
|
1379
|
+
},
|
|
1380
|
+
"directory": {
|
|
1381
|
+
"type": "string",
|
|
1382
|
+
"description": "Directory name for the subdomain relative to the website root"
|
|
1383
|
+
},
|
|
1384
|
+
"is_using_public_directory": {
|
|
1385
|
+
"type": "boolean",
|
|
1386
|
+
"description": "Use the website public directory as the subdomain root directory"
|
|
1387
|
+
}
|
|
1388
|
+
},
|
|
1389
|
+
"required": [
|
|
1390
|
+
"username",
|
|
1391
|
+
"domain",
|
|
1392
|
+
"subdomain"
|
|
1393
|
+
]
|
|
1394
|
+
},
|
|
1395
|
+
"security": [
|
|
1396
|
+
{
|
|
1397
|
+
"apiToken": []
|
|
1398
|
+
}
|
|
1399
|
+
],
|
|
1400
|
+
"group": "hosting"
|
|
1401
|
+
},
|
|
1402
|
+
{
|
|
1403
|
+
"name": "hosting_deleteWebsiteSubdomainV1",
|
|
1404
|
+
"description": "Delete an existing subdomain from the selected website.\n\nUse this endpoint to remove subdomains that are no longer needed.",
|
|
1405
|
+
"method": "DELETE",
|
|
1406
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/subdomains/{subdomain}",
|
|
1407
|
+
"inputSchema": {
|
|
1408
|
+
"type": "object",
|
|
1409
|
+
"properties": {
|
|
1410
|
+
"username": {
|
|
1411
|
+
"type": "string",
|
|
1412
|
+
"description": "username parameter"
|
|
1413
|
+
},
|
|
1414
|
+
"domain": {
|
|
1415
|
+
"type": "string",
|
|
1416
|
+
"description": "Domain name"
|
|
1417
|
+
},
|
|
1418
|
+
"subdomain": {
|
|
1419
|
+
"type": "string",
|
|
1420
|
+
"description": "subdomain parameter"
|
|
1421
|
+
}
|
|
1422
|
+
},
|
|
1423
|
+
"required": [
|
|
1424
|
+
"username",
|
|
1425
|
+
"domain",
|
|
1426
|
+
"subdomain"
|
|
1427
|
+
]
|
|
1428
|
+
},
|
|
1429
|
+
"security": [
|
|
1430
|
+
{
|
|
1431
|
+
"apiToken": []
|
|
1432
|
+
}
|
|
1433
|
+
],
|
|
1434
|
+
"group": "hosting"
|
|
1435
|
+
},
|
|
1331
1436
|
{
|
|
1332
1437
|
"name": "hosting_verifyDomainOwnershipV1",
|
|
1333
1438
|
"description": "Verify ownership of a single domain and return the verification status.\n\nUse this endpoint to check if a domain is accessible for you before using it for new websites.\nIf the domain is accessible, the response will have `is_accessible: true`.\nIf not, add the given TXT record to your domain's DNS records and try verifying again.\nKeep in mind that it may take up to 10 minutes for new TXT DNS records to propagate.\n\nSkip this verification when using Hostinger's free subdomains (*.hostingersite.com).",
|
package/src/core/tools/all.ts
CHANGED
|
@@ -1338,6 +1338,111 @@ const tools: OpenApiTool[] = [
|
|
|
1338
1338
|
],
|
|
1339
1339
|
"group": "hosting"
|
|
1340
1340
|
},
|
|
1341
|
+
{
|
|
1342
|
+
"name": "hosting_listWebsiteSubdomainsV1",
|
|
1343
|
+
"description": "Retrieve all subdomains created under the selected website.\n\nUse this endpoint to inspect subdomain configuration for a specific website,\nincluding the parent domain and root directory assigned to each subdomain.",
|
|
1344
|
+
"method": "GET",
|
|
1345
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/subdomains",
|
|
1346
|
+
"inputSchema": {
|
|
1347
|
+
"type": "object",
|
|
1348
|
+
"properties": {
|
|
1349
|
+
"username": {
|
|
1350
|
+
"type": "string",
|
|
1351
|
+
"description": "username parameter"
|
|
1352
|
+
},
|
|
1353
|
+
"domain": {
|
|
1354
|
+
"type": "string",
|
|
1355
|
+
"description": "Domain name"
|
|
1356
|
+
}
|
|
1357
|
+
},
|
|
1358
|
+
"required": [
|
|
1359
|
+
"username",
|
|
1360
|
+
"domain"
|
|
1361
|
+
]
|
|
1362
|
+
},
|
|
1363
|
+
"security": [
|
|
1364
|
+
{
|
|
1365
|
+
"apiToken": []
|
|
1366
|
+
}
|
|
1367
|
+
],
|
|
1368
|
+
"group": "hosting"
|
|
1369
|
+
},
|
|
1370
|
+
{
|
|
1371
|
+
"name": "hosting_createWebsiteSubdomainV1",
|
|
1372
|
+
"description": "Create a new subdomain for the selected website.\n\nProvide a subdomain prefix and, optionally, a custom directory or the\nwebsite public directory to use as the subdomain root.",
|
|
1373
|
+
"method": "POST",
|
|
1374
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/subdomains",
|
|
1375
|
+
"inputSchema": {
|
|
1376
|
+
"type": "object",
|
|
1377
|
+
"properties": {
|
|
1378
|
+
"username": {
|
|
1379
|
+
"type": "string",
|
|
1380
|
+
"description": "username parameter"
|
|
1381
|
+
},
|
|
1382
|
+
"domain": {
|
|
1383
|
+
"type": "string",
|
|
1384
|
+
"description": "Domain name"
|
|
1385
|
+
},
|
|
1386
|
+
"subdomain": {
|
|
1387
|
+
"type": "string",
|
|
1388
|
+
"description": "Subdomain prefix to create under the selected website"
|
|
1389
|
+
},
|
|
1390
|
+
"directory": {
|
|
1391
|
+
"type": "string",
|
|
1392
|
+
"description": "Directory name for the subdomain relative to the website root"
|
|
1393
|
+
},
|
|
1394
|
+
"is_using_public_directory": {
|
|
1395
|
+
"type": "boolean",
|
|
1396
|
+
"description": "Use the website public directory as the subdomain root directory"
|
|
1397
|
+
}
|
|
1398
|
+
},
|
|
1399
|
+
"required": [
|
|
1400
|
+
"username",
|
|
1401
|
+
"domain",
|
|
1402
|
+
"subdomain"
|
|
1403
|
+
]
|
|
1404
|
+
},
|
|
1405
|
+
"security": [
|
|
1406
|
+
{
|
|
1407
|
+
"apiToken": []
|
|
1408
|
+
}
|
|
1409
|
+
],
|
|
1410
|
+
"group": "hosting"
|
|
1411
|
+
},
|
|
1412
|
+
{
|
|
1413
|
+
"name": "hosting_deleteWebsiteSubdomainV1",
|
|
1414
|
+
"description": "Delete an existing subdomain from the selected website.\n\nUse this endpoint to remove subdomains that are no longer needed.",
|
|
1415
|
+
"method": "DELETE",
|
|
1416
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/subdomains/{subdomain}",
|
|
1417
|
+
"inputSchema": {
|
|
1418
|
+
"type": "object",
|
|
1419
|
+
"properties": {
|
|
1420
|
+
"username": {
|
|
1421
|
+
"type": "string",
|
|
1422
|
+
"description": "username parameter"
|
|
1423
|
+
},
|
|
1424
|
+
"domain": {
|
|
1425
|
+
"type": "string",
|
|
1426
|
+
"description": "Domain name"
|
|
1427
|
+
},
|
|
1428
|
+
"subdomain": {
|
|
1429
|
+
"type": "string",
|
|
1430
|
+
"description": "subdomain parameter"
|
|
1431
|
+
}
|
|
1432
|
+
},
|
|
1433
|
+
"required": [
|
|
1434
|
+
"username",
|
|
1435
|
+
"domain",
|
|
1436
|
+
"subdomain"
|
|
1437
|
+
]
|
|
1438
|
+
},
|
|
1439
|
+
"security": [
|
|
1440
|
+
{
|
|
1441
|
+
"apiToken": []
|
|
1442
|
+
}
|
|
1443
|
+
],
|
|
1444
|
+
"group": "hosting"
|
|
1445
|
+
},
|
|
1341
1446
|
{
|
|
1342
1447
|
"name": "hosting_verifyDomainOwnershipV1",
|
|
1343
1448
|
"description": "Verify ownership of a single domain and return the verification status.\n\nUse this endpoint to check if a domain is accessible for you before using it for new websites.\nIf the domain is accessible, the response will have `is_accessible: true`.\nIf not, add the given TXT record to your domain's DNS records and try verifying again.\nKeep in mind that it may take up to 10 minutes for new TXT DNS records to propagate.\n\nSkip this verification when using Hostinger's free subdomains (*.hostingersite.com).",
|
|
@@ -298,6 +298,111 @@ export default [
|
|
|
298
298
|
],
|
|
299
299
|
"group": "hosting"
|
|
300
300
|
},
|
|
301
|
+
{
|
|
302
|
+
"name": "hosting_listWebsiteSubdomainsV1",
|
|
303
|
+
"description": "Retrieve all subdomains created under the selected website.\n\nUse this endpoint to inspect subdomain configuration for a specific website,\nincluding the parent domain and root directory assigned to each subdomain.",
|
|
304
|
+
"method": "GET",
|
|
305
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/subdomains",
|
|
306
|
+
"inputSchema": {
|
|
307
|
+
"type": "object",
|
|
308
|
+
"properties": {
|
|
309
|
+
"username": {
|
|
310
|
+
"type": "string",
|
|
311
|
+
"description": "username parameter"
|
|
312
|
+
},
|
|
313
|
+
"domain": {
|
|
314
|
+
"type": "string",
|
|
315
|
+
"description": "Domain name"
|
|
316
|
+
}
|
|
317
|
+
},
|
|
318
|
+
"required": [
|
|
319
|
+
"username",
|
|
320
|
+
"domain"
|
|
321
|
+
]
|
|
322
|
+
},
|
|
323
|
+
"security": [
|
|
324
|
+
{
|
|
325
|
+
"apiToken": []
|
|
326
|
+
}
|
|
327
|
+
],
|
|
328
|
+
"group": "hosting"
|
|
329
|
+
},
|
|
330
|
+
{
|
|
331
|
+
"name": "hosting_createWebsiteSubdomainV1",
|
|
332
|
+
"description": "Create a new subdomain for the selected website.\n\nProvide a subdomain prefix and, optionally, a custom directory or the\nwebsite public directory to use as the subdomain root.",
|
|
333
|
+
"method": "POST",
|
|
334
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/subdomains",
|
|
335
|
+
"inputSchema": {
|
|
336
|
+
"type": "object",
|
|
337
|
+
"properties": {
|
|
338
|
+
"username": {
|
|
339
|
+
"type": "string",
|
|
340
|
+
"description": "username parameter"
|
|
341
|
+
},
|
|
342
|
+
"domain": {
|
|
343
|
+
"type": "string",
|
|
344
|
+
"description": "Domain name"
|
|
345
|
+
},
|
|
346
|
+
"subdomain": {
|
|
347
|
+
"type": "string",
|
|
348
|
+
"description": "Subdomain prefix to create under the selected website"
|
|
349
|
+
},
|
|
350
|
+
"directory": {
|
|
351
|
+
"type": "string",
|
|
352
|
+
"description": "Directory name for the subdomain relative to the website root"
|
|
353
|
+
},
|
|
354
|
+
"is_using_public_directory": {
|
|
355
|
+
"type": "boolean",
|
|
356
|
+
"description": "Use the website public directory as the subdomain root directory"
|
|
357
|
+
}
|
|
358
|
+
},
|
|
359
|
+
"required": [
|
|
360
|
+
"username",
|
|
361
|
+
"domain",
|
|
362
|
+
"subdomain"
|
|
363
|
+
]
|
|
364
|
+
},
|
|
365
|
+
"security": [
|
|
366
|
+
{
|
|
367
|
+
"apiToken": []
|
|
368
|
+
}
|
|
369
|
+
],
|
|
370
|
+
"group": "hosting"
|
|
371
|
+
},
|
|
372
|
+
{
|
|
373
|
+
"name": "hosting_deleteWebsiteSubdomainV1",
|
|
374
|
+
"description": "Delete an existing subdomain from the selected website.\n\nUse this endpoint to remove subdomains that are no longer needed.",
|
|
375
|
+
"method": "DELETE",
|
|
376
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/subdomains/{subdomain}",
|
|
377
|
+
"inputSchema": {
|
|
378
|
+
"type": "object",
|
|
379
|
+
"properties": {
|
|
380
|
+
"username": {
|
|
381
|
+
"type": "string",
|
|
382
|
+
"description": "username parameter"
|
|
383
|
+
},
|
|
384
|
+
"domain": {
|
|
385
|
+
"type": "string",
|
|
386
|
+
"description": "Domain name"
|
|
387
|
+
},
|
|
388
|
+
"subdomain": {
|
|
389
|
+
"type": "string",
|
|
390
|
+
"description": "subdomain parameter"
|
|
391
|
+
}
|
|
392
|
+
},
|
|
393
|
+
"required": [
|
|
394
|
+
"username",
|
|
395
|
+
"domain",
|
|
396
|
+
"subdomain"
|
|
397
|
+
]
|
|
398
|
+
},
|
|
399
|
+
"security": [
|
|
400
|
+
{
|
|
401
|
+
"apiToken": []
|
|
402
|
+
}
|
|
403
|
+
],
|
|
404
|
+
"group": "hosting"
|
|
405
|
+
},
|
|
301
406
|
{
|
|
302
407
|
"name": "hosting_verifyDomainOwnershipV1",
|
|
303
408
|
"description": "Verify ownership of a single domain and return the verification status.\n\nUse this endpoint to check if a domain is accessible for you before using it for new websites.\nIf the domain is accessible, the response will have `is_accessible: true`.\nIf not, add the given TXT record to your domain's DNS records and try verifying again.\nKeep in mind that it may take up to 10 minutes for new TXT DNS records to propagate.\n\nSkip this verification when using Hostinger's free subdomains (*.hostingersite.com).",
|
|
@@ -308,6 +308,111 @@ const tools: OpenApiTool[] = [
|
|
|
308
308
|
],
|
|
309
309
|
"group": "hosting"
|
|
310
310
|
},
|
|
311
|
+
{
|
|
312
|
+
"name": "hosting_listWebsiteSubdomainsV1",
|
|
313
|
+
"description": "Retrieve all subdomains created under the selected website.\n\nUse this endpoint to inspect subdomain configuration for a specific website,\nincluding the parent domain and root directory assigned to each subdomain.",
|
|
314
|
+
"method": "GET",
|
|
315
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/subdomains",
|
|
316
|
+
"inputSchema": {
|
|
317
|
+
"type": "object",
|
|
318
|
+
"properties": {
|
|
319
|
+
"username": {
|
|
320
|
+
"type": "string",
|
|
321
|
+
"description": "username parameter"
|
|
322
|
+
},
|
|
323
|
+
"domain": {
|
|
324
|
+
"type": "string",
|
|
325
|
+
"description": "Domain name"
|
|
326
|
+
}
|
|
327
|
+
},
|
|
328
|
+
"required": [
|
|
329
|
+
"username",
|
|
330
|
+
"domain"
|
|
331
|
+
]
|
|
332
|
+
},
|
|
333
|
+
"security": [
|
|
334
|
+
{
|
|
335
|
+
"apiToken": []
|
|
336
|
+
}
|
|
337
|
+
],
|
|
338
|
+
"group": "hosting"
|
|
339
|
+
},
|
|
340
|
+
{
|
|
341
|
+
"name": "hosting_createWebsiteSubdomainV1",
|
|
342
|
+
"description": "Create a new subdomain for the selected website.\n\nProvide a subdomain prefix and, optionally, a custom directory or the\nwebsite public directory to use as the subdomain root.",
|
|
343
|
+
"method": "POST",
|
|
344
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/subdomains",
|
|
345
|
+
"inputSchema": {
|
|
346
|
+
"type": "object",
|
|
347
|
+
"properties": {
|
|
348
|
+
"username": {
|
|
349
|
+
"type": "string",
|
|
350
|
+
"description": "username parameter"
|
|
351
|
+
},
|
|
352
|
+
"domain": {
|
|
353
|
+
"type": "string",
|
|
354
|
+
"description": "Domain name"
|
|
355
|
+
},
|
|
356
|
+
"subdomain": {
|
|
357
|
+
"type": "string",
|
|
358
|
+
"description": "Subdomain prefix to create under the selected website"
|
|
359
|
+
},
|
|
360
|
+
"directory": {
|
|
361
|
+
"type": "string",
|
|
362
|
+
"description": "Directory name for the subdomain relative to the website root"
|
|
363
|
+
},
|
|
364
|
+
"is_using_public_directory": {
|
|
365
|
+
"type": "boolean",
|
|
366
|
+
"description": "Use the website public directory as the subdomain root directory"
|
|
367
|
+
}
|
|
368
|
+
},
|
|
369
|
+
"required": [
|
|
370
|
+
"username",
|
|
371
|
+
"domain",
|
|
372
|
+
"subdomain"
|
|
373
|
+
]
|
|
374
|
+
},
|
|
375
|
+
"security": [
|
|
376
|
+
{
|
|
377
|
+
"apiToken": []
|
|
378
|
+
}
|
|
379
|
+
],
|
|
380
|
+
"group": "hosting"
|
|
381
|
+
},
|
|
382
|
+
{
|
|
383
|
+
"name": "hosting_deleteWebsiteSubdomainV1",
|
|
384
|
+
"description": "Delete an existing subdomain from the selected website.\n\nUse this endpoint to remove subdomains that are no longer needed.",
|
|
385
|
+
"method": "DELETE",
|
|
386
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/subdomains/{subdomain}",
|
|
387
|
+
"inputSchema": {
|
|
388
|
+
"type": "object",
|
|
389
|
+
"properties": {
|
|
390
|
+
"username": {
|
|
391
|
+
"type": "string",
|
|
392
|
+
"description": "username parameter"
|
|
393
|
+
},
|
|
394
|
+
"domain": {
|
|
395
|
+
"type": "string",
|
|
396
|
+
"description": "Domain name"
|
|
397
|
+
},
|
|
398
|
+
"subdomain": {
|
|
399
|
+
"type": "string",
|
|
400
|
+
"description": "subdomain parameter"
|
|
401
|
+
}
|
|
402
|
+
},
|
|
403
|
+
"required": [
|
|
404
|
+
"username",
|
|
405
|
+
"domain",
|
|
406
|
+
"subdomain"
|
|
407
|
+
]
|
|
408
|
+
},
|
|
409
|
+
"security": [
|
|
410
|
+
{
|
|
411
|
+
"apiToken": []
|
|
412
|
+
}
|
|
413
|
+
],
|
|
414
|
+
"group": "hosting"
|
|
415
|
+
},
|
|
311
416
|
{
|
|
312
417
|
"name": "hosting_verifyDomainOwnershipV1",
|
|
313
418
|
"description": "Verify ownership of a single domain and return the verification status.\n\nUse this endpoint to check if a domain is accessible for you before using it for new websites.\nIf the domain is accessible, the response will have `is_accessible: true`.\nIf not, add the given TXT record to your domain's DNS records and try verifying again.\nKeep in mind that it may take up to 10 minutes for new TXT DNS records to propagate.\n\nSkip this verification when using Hostinger's free subdomains (*.hostingersite.com).",
|
package/src/servers/all.js
CHANGED
package/src/servers/all.ts
CHANGED
package/src/servers/billing.js
CHANGED
package/src/servers/billing.ts
CHANGED
package/src/servers/dns.js
CHANGED
package/src/servers/dns.ts
CHANGED
package/src/servers/domains.js
CHANGED
package/src/servers/domains.ts
CHANGED
package/src/servers/hosting.js
CHANGED
package/src/servers/hosting.ts
CHANGED
package/src/servers/reach.js
CHANGED
package/src/servers/reach.ts
CHANGED
package/src/servers/vps.js
CHANGED
package/src/servers/vps.ts
CHANGED
package/types.d.ts
CHANGED
|
@@ -824,6 +824,81 @@ and you can always connect a custom domain to your site later.
|
|
|
824
824
|
response: any; // Response structure will depend on the API
|
|
825
825
|
};
|
|
826
826
|
|
|
827
|
+
/**
|
|
828
|
+
* Retrieve all subdomains created under the selected website.
|
|
829
|
+
|
|
830
|
+
Use this endpoint to inspect subdomain configuration for a specific website,
|
|
831
|
+
including the parent domain and root directory assigned to each subdomain.
|
|
832
|
+
*/
|
|
833
|
+
"hosting_listWebsiteSubdomainsV1": {
|
|
834
|
+
params: {
|
|
835
|
+
/**
|
|
836
|
+
* username parameter
|
|
837
|
+
*/
|
|
838
|
+
username: string;
|
|
839
|
+
/**
|
|
840
|
+
* Domain name
|
|
841
|
+
*/
|
|
842
|
+
domain: string;
|
|
843
|
+
};
|
|
844
|
+
response: any; // Response structure will depend on the API
|
|
845
|
+
};
|
|
846
|
+
|
|
847
|
+
/**
|
|
848
|
+
* Create a new subdomain for the selected website.
|
|
849
|
+
|
|
850
|
+
Provide a subdomain prefix and, optionally, a custom directory or the
|
|
851
|
+
website public directory to use as the subdomain root.
|
|
852
|
+
*/
|
|
853
|
+
"hosting_createWebsiteSubdomainV1": {
|
|
854
|
+
params: {
|
|
855
|
+
/**
|
|
856
|
+
* username parameter
|
|
857
|
+
*/
|
|
858
|
+
username: string;
|
|
859
|
+
/**
|
|
860
|
+
* Domain name
|
|
861
|
+
*/
|
|
862
|
+
domain: string;
|
|
863
|
+
/**
|
|
864
|
+
* Subdomain prefix to create under the selected website
|
|
865
|
+
*/
|
|
866
|
+
subdomain: string;
|
|
867
|
+
/**
|
|
868
|
+
* Directory name for the subdomain relative to the website root
|
|
869
|
+
*/
|
|
870
|
+
directory?: string;
|
|
871
|
+
/**
|
|
872
|
+
* Use the website public directory as the subdomain root directory
|
|
873
|
+
*/
|
|
874
|
+
is_using_public_directory?: boolean;
|
|
875
|
+
};
|
|
876
|
+
response: any; // Response structure will depend on the API
|
|
877
|
+
};
|
|
878
|
+
|
|
879
|
+
/**
|
|
880
|
+
* Delete an existing subdomain from the selected website.
|
|
881
|
+
|
|
882
|
+
Use this endpoint to remove subdomains that are no longer needed.
|
|
883
|
+
*/
|
|
884
|
+
"hosting_deleteWebsiteSubdomainV1": {
|
|
885
|
+
params: {
|
|
886
|
+
/**
|
|
887
|
+
* username parameter
|
|
888
|
+
*/
|
|
889
|
+
username: string;
|
|
890
|
+
/**
|
|
891
|
+
* Domain name
|
|
892
|
+
*/
|
|
893
|
+
domain: string;
|
|
894
|
+
/**
|
|
895
|
+
* subdomain parameter
|
|
896
|
+
*/
|
|
897
|
+
subdomain: string;
|
|
898
|
+
};
|
|
899
|
+
response: any; // Response structure will depend on the API
|
|
900
|
+
};
|
|
901
|
+
|
|
827
902
|
/**
|
|
828
903
|
* Verify ownership of a single domain and return the verification status.
|
|
829
904
|
|