hostinger-api-mcp 0.0.13 → 0.0.15

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.
Files changed (5) hide show
  1. package/README.md +198 -5
  2. package/package.json +1 -1
  3. package/server.js +430 -11
  4. package/server.ts +430 -11
  5. package/types.d.ts +276 -8
package/README.md CHANGED
@@ -148,7 +148,7 @@ We recommend use other payment methods than `credit_card` if you encounter this
148
148
 
149
149
  - `payment_method_id`: Payment method ID (required)
150
150
  - `items`: items property (required)
151
- - `coupons`: coupons property
151
+ - `coupons`: Discount coupon codes
152
152
 
153
153
  ### billing_setDefaultPaymentMethodV1
154
154
 
@@ -322,9 +322,79 @@ Endpoint has rate limit of 10 requests per minute.
322
322
 
323
323
  **Parameters**:
324
324
 
325
- - `domain`: domain property (required)
326
- - `tlds`: tlds property (required)
327
- - `with_alternatives`: with_alternatives property
325
+ - `domain`: Domain name without TLD (required)
326
+ - `tlds`: TLDs to check (without trailing dot) (required)
327
+ - `with_alternatives`: Should response include alternatives
328
+
329
+ ### domains_getForwardingDataV1
330
+
331
+ This endpoint retrieves domain forwarding data.
332
+
333
+ - **Method**: `GET`
334
+ - **Path**: `/api/domains/v1/forwarding/{domain}`
335
+
336
+ **Parameters**:
337
+
338
+ - `domain`: Domain name (required)
339
+
340
+ ### domains_deleteForwardingDataV1
341
+
342
+ This endpoint deletes domain forwarding data.
343
+
344
+ - **Method**: `DELETE`
345
+ - **Path**: `/api/domains/v1/forwarding/{domain}`
346
+
347
+ **Parameters**:
348
+
349
+ - `domain`: Domain name (required)
350
+
351
+ ### domains_createForwardingDataV1
352
+
353
+ This endpoint creates domain forwarding data.
354
+
355
+ - **Method**: `POST`
356
+ - **Path**: `/api/domains/v1/forwarding`
357
+
358
+ **Parameters**:
359
+
360
+ - `domain`: Domain name (required)
361
+ - `redirect_type`: Redirect type (required)
362
+ - `redirect_url`: URL to forward domain to (required)
363
+
364
+ ### domains_enableDomainLockV1
365
+
366
+ This endpoint enables domain lock for the domain. When domain lock is enabled,
367
+ the domain cannot be transferred to another registrar without first disabling the lock.
368
+
369
+ - **Method**: `PUT`
370
+ - **Path**: `/api/domains/v1/portfolio/{domain}/domain-lock`
371
+
372
+ **Parameters**:
373
+
374
+ - `domain`: Domain name (required)
375
+
376
+ ### domains_disableDomainLockV1
377
+
378
+ This endpoint disables domain lock for the domain. Domain lock needs to be disabled
379
+ before transferring the domain to another registrar.
380
+
381
+ - **Method**: `DELETE`
382
+ - **Path**: `/api/domains/v1/portfolio/{domain}/domain-lock`
383
+
384
+ **Parameters**:
385
+
386
+ - `domain`: Domain name (required)
387
+
388
+ ### domains_getDomainV1
389
+
390
+ This endpoint retrieves details for specified domain.
391
+
392
+ - **Method**: `GET`
393
+ - **Path**: `/api/domains/v1/portfolio/{domain}`
394
+
395
+ **Parameters**:
396
+
397
+ - `domain`: Domain name (required)
328
398
 
329
399
  ### domains_getDomainListV1
330
400
 
@@ -335,6 +405,129 @@ This endpoint retrieves a list of all domains associated with your account.
335
405
 
336
406
 
337
407
 
408
+ ### domains_purchaseNewDomainV1
409
+
410
+ This endpoint purchases and registers new domain. If registration fails, login to hPanel and check the domain registration status.
411
+
412
+ If no payment method is provided, default will be used.
413
+
414
+ If no WHOIS information is provided, default for that TLD will be used.
415
+ Before making request make sure that WHOIS information for TLD exists.
416
+
417
+ Some TLDs require `additional_details` to be provided and will be validated before making purchase.
418
+
419
+ - **Method**: `POST`
420
+ - **Path**: `/api/domains/v1/portfolio`
421
+
422
+ **Parameters**:
423
+
424
+ - `domain`: Domain name (required)
425
+ - `item_id`: Catalog price item ID (required)
426
+ - `payment_method_id`: Payment method ID
427
+ - `domain_contacts`: Domain contact information
428
+ - `additional_details`: Additional registration data, possible values depends on TLD
429
+ - `coupons`: Discount coupon codes
430
+
431
+ ### domains_enablePrivacyProtectionV1
432
+
433
+ This endpoint enables privacy protection for the domain.
434
+ When privacy protection is enabled, the domain owner's personal information is hidden from the public WHOIS database.
435
+
436
+ - **Method**: `PUT`
437
+ - **Path**: `/api/domains/v1/portfolio/{domain}/privacy-protection`
438
+
439
+ **Parameters**:
440
+
441
+ - `domain`: Domain name (required)
442
+
443
+ ### domains_disablePrivacyProtectionV1
444
+
445
+ This endpoint disables privacy protection for the domain.
446
+ When privacy protection is disabled, the domain owner's personal information is visible in the public WHOIS database.
447
+
448
+ - **Method**: `DELETE`
449
+ - **Path**: `/api/domains/v1/portfolio/{domain}/privacy-protection`
450
+
451
+ **Parameters**:
452
+
453
+ - `domain`: Domain name (required)
454
+
455
+ ### domains_updateNameserversV1
456
+
457
+ This endpoint sets the nameservers for a specified domain.
458
+
459
+ Be aware, that improper nameserver configuration can lead to the domain being unresolvable or unavailable.
460
+
461
+ - **Method**: `PUT`
462
+ - **Path**: `/api/domains/v1/portfolio/{domain}/nameservers`
463
+
464
+ **Parameters**:
465
+
466
+ - `domain`: Domain name (required)
467
+ - `ns1`: First name server (required)
468
+ - `ns2`: Second name server (required)
469
+ - `ns3`: Third name server
470
+ - `ns4`: Fourth name server
471
+
472
+ ### domains_getWHOISProfileV1
473
+
474
+ This endpoint retrieves a WHOIS contact profile.
475
+
476
+ - **Method**: `GET`
477
+ - **Path**: `/api/domains/v1/whois/{whoisId}`
478
+
479
+ **Parameters**:
480
+
481
+ - `whoisId`: WHOIS ID (required)
482
+
483
+ ### domains_deleteWHOISProfileV1
484
+
485
+ This endpoint deletes WHOIS contact profile.
486
+
487
+ - **Method**: `DELETE`
488
+ - **Path**: `/api/domains/v1/whois/{whoisId}`
489
+
490
+ **Parameters**:
491
+
492
+ - `whoisId`: WHOIS ID (required)
493
+
494
+ ### domains_getWHOISProfileListV1
495
+
496
+ This endpoint retrieves a list of WHOIS contact profiles.
497
+
498
+ - **Method**: `GET`
499
+ - **Path**: `/api/domains/v1/whois`
500
+
501
+ **Parameters**:
502
+
503
+ - `tld`: Filter by TLD (without trailing dot)
504
+
505
+ ### domains_createWHOISProfileV1
506
+
507
+ This endpoint creates WHOIS contact profile.
508
+
509
+ - **Method**: `POST`
510
+ - **Path**: `/api/domains/v1/whois`
511
+
512
+ **Parameters**:
513
+
514
+ - `tld`: TLD of the domain (without trailing dot) (required)
515
+ - `country`: ISO 3166 2-letter country code (required)
516
+ - `entity_type`: Legal entity type (required)
517
+ - `tld_details`: TLD details
518
+ - `whois_details`: WHOIS details (required)
519
+
520
+ ### domains_getWHOISProfileUsageV1
521
+
522
+ This endpoint retrieves a domain list where provided WHOIS contact profile is used.
523
+
524
+ - **Method**: `GET`
525
+ - **Path**: `/api/domains/v1/whois/{whoisId}/usage`
526
+
527
+ **Parameters**:
528
+
529
+ - `whoisId`: WHOIS ID (required)
530
+
338
531
  ### VPS_getDataCentersListV1
339
532
 
340
533
  This endpoint retrieves a list of all data centers available.
@@ -676,8 +869,8 @@ This endpoint retrieves a list of backups for a specified virtual machine.
676
869
 
677
870
  **Parameters**:
678
871
 
679
- - `page`: Page number
680
872
  - `virtualMachineId`: Virtual Machine ID (required)
873
+ - `page`: Page number
681
874
 
682
875
  ### VPS_restoreBackupV1
683
876
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hostinger-api-mcp",
3
- "version": "0.0.13",
3
+ "version": "0.0.15",
4
4
  "description": "MCP server for Hostinger API",
5
5
  "repository": {
6
6
  "type": "git",