hostinger-api-mcp 1.18.0 → 1.20.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.
@@ -4261,6 +4261,111 @@ const tools: OpenApiTool[] = [
4261
4261
  ],
4262
4262
  "group": "hosting"
4263
4263
  },
4264
+ {
4265
+ "name": "mail_createAPITokenV1",
4266
+ "description": "Create an API token for the given mail order. The token grants access\nto the [Hostinger Email API](https://api.mail.hostinger.com/), where\nyou can provision and manage the mailboxes it is scoped to.\n\nThe plaintext token is returned only in this response, never again.\nA maximum of 10 tokens can exist per order. Use\n`scope.has_all_mailboxes` to cover all current and future mailboxes,\nor list specific mailboxes in `scope.mailbox_ids`.",
4267
+ "method": "POST",
4268
+ "path": "/api/mail/v1/orders/{orderId}/api-tokens",
4269
+ "inputSchema": {
4270
+ "type": "object",
4271
+ "properties": {
4272
+ "orderId": {
4273
+ "type": "string",
4274
+ "description": "Order resource ID"
4275
+ },
4276
+ "name": {
4277
+ "type": "string",
4278
+ "description": "Human-readable label for this token"
4279
+ },
4280
+ "scope": {
4281
+ "type": "object",
4282
+ "description": "Mailbox scope this token can access",
4283
+ "properties": {
4284
+ "has_all_mailboxes": {
4285
+ "type": "boolean",
4286
+ "description": "Grant access to all current and future mailboxes of the order"
4287
+ },
4288
+ "mailbox_ids": {
4289
+ "type": "array",
4290
+ "description": "Required when `has_all_mailboxes` is false. Mailbox resource IDs of this order.",
4291
+ "items": {
4292
+ "type": "string",
4293
+ "description": "mailbox_ids parameter"
4294
+ }
4295
+ }
4296
+ },
4297
+ "required": [
4298
+ "has_all_mailboxes"
4299
+ ]
4300
+ }
4301
+ },
4302
+ "required": [
4303
+ "orderId",
4304
+ "name",
4305
+ "scope"
4306
+ ]
4307
+ },
4308
+ "security": [
4309
+ {
4310
+ "apiToken": []
4311
+ }
4312
+ ],
4313
+ "group": "mail"
4314
+ },
4315
+ {
4316
+ "name": "mail_revokeAPITokenV1",
4317
+ "description": "Revoke an API token. The token immediately loses access to the\n[Hostinger Email API](https://api.mail.hostinger.com/). This action\ncannot be undone.",
4318
+ "method": "DELETE",
4319
+ "path": "/api/mail/v1/api-tokens/{tokenId}",
4320
+ "inputSchema": {
4321
+ "type": "object",
4322
+ "properties": {
4323
+ "tokenId": {
4324
+ "type": "string",
4325
+ "description": "API token ID (returned when the token was created)"
4326
+ }
4327
+ },
4328
+ "required": [
4329
+ "tokenId"
4330
+ ]
4331
+ },
4332
+ "security": [
4333
+ {
4334
+ "apiToken": []
4335
+ }
4336
+ ],
4337
+ "group": "mail"
4338
+ },
4339
+ {
4340
+ "name": "mail_listAPITokensV1",
4341
+ "description": "Retrieve a paginated list of\n[Hostinger Email API](https://api.mail.hostinger.com/) tokens across\nall your mail orders, optionally filtered by order. Plaintext tokens\nare never included; they are returned only when a token is created.",
4342
+ "method": "GET",
4343
+ "path": "/api/mail/v1/api-tokens",
4344
+ "inputSchema": {
4345
+ "type": "object",
4346
+ "properties": {
4347
+ "order_id": {
4348
+ "type": "string",
4349
+ "description": "Filter tokens by order resource ID. Single value or comma-separated list."
4350
+ },
4351
+ "page": {
4352
+ "type": "integer",
4353
+ "description": "Page number"
4354
+ },
4355
+ "per_page": {
4356
+ "type": "integer",
4357
+ "description": "Number of items per page"
4358
+ }
4359
+ },
4360
+ "required": []
4361
+ },
4362
+ "security": [
4363
+ {
4364
+ "apiToken": []
4365
+ }
4366
+ ],
4367
+ "group": "mail"
4368
+ },
4264
4369
  {
4265
4370
  "name": "mail_listAccessLogsV1",
4266
4371
  "description": "Retrieve paginated access logs for the domain attached to the given\nmail order. Supports filtering by account, date range, protocol,\nstatus, and deletion flag. Results are sorted by timestamp descending.",
@@ -4843,6 +4948,239 @@ const tools: OpenApiTool[] = [
4843
4948
  ],
4844
4949
  "group": "mail"
4845
4950
  },
4951
+ {
4952
+ "name": "mail_listWebhookDeliveryLogsV1",
4953
+ "description": "Retrieve a paginated list of webhook delivery logs for the given mail\norder, including delivery outcome, duration, and retry counts.\nSupports filtering by mailbox.",
4954
+ "method": "GET",
4955
+ "path": "/api/mail/v1/orders/{orderId}/webhooks/delivery-logs",
4956
+ "inputSchema": {
4957
+ "type": "object",
4958
+ "properties": {
4959
+ "orderId": {
4960
+ "type": "string",
4961
+ "description": "Order resource ID"
4962
+ },
4963
+ "mailbox_id": {
4964
+ "type": "string",
4965
+ "description": "Filter by the mailbox resource ID the webhooks are attached to"
4966
+ },
4967
+ "page": {
4968
+ "type": "integer",
4969
+ "description": "Page number"
4970
+ },
4971
+ "per_page": {
4972
+ "type": "integer",
4973
+ "description": "Number of items per page"
4974
+ }
4975
+ },
4976
+ "required": [
4977
+ "orderId"
4978
+ ]
4979
+ },
4980
+ "security": [
4981
+ {
4982
+ "apiToken": []
4983
+ }
4984
+ ],
4985
+ "group": "mail"
4986
+ },
4987
+ {
4988
+ "name": "mail_getWebhookV1",
4989
+ "description": "Retrieve the details of a single webhook. The webhook secret is never\nincluded; it is returned only when a webhook is created or its secret\nis regenerated.",
4990
+ "method": "GET",
4991
+ "path": "/api/mail/v1/webhooks/{webhookId}",
4992
+ "inputSchema": {
4993
+ "type": "object",
4994
+ "properties": {
4995
+ "webhookId": {
4996
+ "type": "string",
4997
+ "description": "Webhook ID (returned when the webhook was created)"
4998
+ }
4999
+ },
5000
+ "required": [
5001
+ "webhookId"
5002
+ ]
5003
+ },
5004
+ "security": [
5005
+ {
5006
+ "apiToken": []
5007
+ }
5008
+ ],
5009
+ "group": "mail"
5010
+ },
5011
+ {
5012
+ "name": "mail_deleteWebhookV1",
5013
+ "description": "Permanently delete a webhook. This action cannot be undone. After\ndeletion the URL no longer receives event notifications.",
5014
+ "method": "DELETE",
5015
+ "path": "/api/mail/v1/webhooks/{webhookId}",
5016
+ "inputSchema": {
5017
+ "type": "object",
5018
+ "properties": {
5019
+ "webhookId": {
5020
+ "type": "string",
5021
+ "description": "Webhook ID (returned when the webhook was created)"
5022
+ }
5023
+ },
5024
+ "required": [
5025
+ "webhookId"
5026
+ ]
5027
+ },
5028
+ "security": [
5029
+ {
5030
+ "apiToken": []
5031
+ }
5032
+ ],
5033
+ "group": "mail"
5034
+ },
5035
+ {
5036
+ "name": "mail_updateWebhookV1",
5037
+ "description": "Partially update a webhook. Only the fields included in the request\nbody are changed; omitted fields retain their current values. Pass\n`\"description\": null` to clear the description.",
5038
+ "method": "PATCH",
5039
+ "path": "/api/mail/v1/webhooks/{webhookId}",
5040
+ "inputSchema": {
5041
+ "type": "object",
5042
+ "properties": {
5043
+ "webhookId": {
5044
+ "type": "string",
5045
+ "description": "Webhook ID (returned when the webhook was created)"
5046
+ },
5047
+ "name": {
5048
+ "type": "string",
5049
+ "description": "New human-readable name for the webhook"
5050
+ },
5051
+ "description": {
5052
+ "type": "string",
5053
+ "description": "New description, or null to clear it"
5054
+ },
5055
+ "events": {
5056
+ "type": "array",
5057
+ "description": "Replaces the full list of subscribed events",
5058
+ "items": {
5059
+ "type": "string",
5060
+ "description": "events parameter",
5061
+ "enum": [
5062
+ "message.received"
5063
+ ]
5064
+ }
5065
+ },
5066
+ "status": {
5067
+ "type": "string",
5068
+ "description": "New status for the webhook",
5069
+ "enum": [
5070
+ "active",
5071
+ "disabled",
5072
+ "paused"
5073
+ ]
5074
+ },
5075
+ "url": {
5076
+ "type": "string",
5077
+ "description": "New URL to deliver events to"
5078
+ }
5079
+ },
5080
+ "required": [
5081
+ "webhookId"
5082
+ ]
5083
+ },
5084
+ "security": [
5085
+ {
5086
+ "apiToken": []
5087
+ }
5088
+ ],
5089
+ "group": "mail"
5090
+ },
5091
+ {
5092
+ "name": "mail_listWebhooksV1",
5093
+ "description": "Retrieve a paginated list of webhooks belonging to the given mail\norder. Supports filtering by mailbox and status. The webhook secret\nis never included; it is returned only when a webhook is created or\nits secret is regenerated.",
5094
+ "method": "GET",
5095
+ "path": "/api/mail/v1/orders/{orderId}/webhooks",
5096
+ "inputSchema": {
5097
+ "type": "object",
5098
+ "properties": {
5099
+ "orderId": {
5100
+ "type": "string",
5101
+ "description": "Order resource ID"
5102
+ },
5103
+ "mailbox_id": {
5104
+ "type": "string",
5105
+ "description": "Filter by the mailbox resource ID the webhooks are attached to"
5106
+ },
5107
+ "status": {
5108
+ "type": "string",
5109
+ "description": "Filter webhooks by status",
5110
+ "enum": [
5111
+ "active",
5112
+ "disabled",
5113
+ "paused"
5114
+ ]
5115
+ },
5116
+ "page": {
5117
+ "type": "integer",
5118
+ "description": "Page number"
5119
+ },
5120
+ "per_page": {
5121
+ "type": "integer",
5122
+ "description": "Number of items per page"
5123
+ }
5124
+ },
5125
+ "required": [
5126
+ "orderId"
5127
+ ]
5128
+ },
5129
+ "security": [
5130
+ {
5131
+ "apiToken": []
5132
+ }
5133
+ ],
5134
+ "group": "mail"
5135
+ },
5136
+ {
5137
+ "name": "mail_regenerateWebhookSecretV1",
5138
+ "description": "Regenerate the secret of a webhook. The previous secret is\nimmediately invalidated. The new secret is returned only in this\nresponse and is sent as a bearer token with every delivery.",
5139
+ "method": "POST",
5140
+ "path": "/api/mail/v1/webhooks/{webhookId}/regenerate-secret",
5141
+ "inputSchema": {
5142
+ "type": "object",
5143
+ "properties": {
5144
+ "webhookId": {
5145
+ "type": "string",
5146
+ "description": "Webhook ID (returned when the webhook was created)"
5147
+ }
5148
+ },
5149
+ "required": [
5150
+ "webhookId"
5151
+ ]
5152
+ },
5153
+ "security": [
5154
+ {
5155
+ "apiToken": []
5156
+ }
5157
+ ],
5158
+ "group": "mail"
5159
+ },
5160
+ {
5161
+ "name": "mail_testWebhookV1",
5162
+ "description": "Send a test delivery to the webhook URL and return the result. Test\nrequests are rate limited upstream.",
5163
+ "method": "POST",
5164
+ "path": "/api/mail/v1/webhooks/{webhookId}/test",
5165
+ "inputSchema": {
5166
+ "type": "object",
5167
+ "properties": {
5168
+ "webhookId": {
5169
+ "type": "string",
5170
+ "description": "Webhook ID (returned when the webhook was created)"
5171
+ }
5172
+ },
5173
+ "required": [
5174
+ "webhookId"
5175
+ ]
5176
+ },
5177
+ "security": [
5178
+ {
5179
+ "apiToken": []
5180
+ }
5181
+ ],
5182
+ "group": "mail"
5183
+ },
4846
5184
  {
4847
5185
  "name": "reach_deleteAContactV1",
4848
5186
  "description": "Delete a contact with the specified UUID.\n\nThis endpoint permanently removes a contact from the email marketing system.",
@@ -1,5 +1,110 @@
1
1
  // Auto-generated tool list for group: mail
2
2
  export default [
3
+ {
4
+ "name": "mail_createAPITokenV1",
5
+ "description": "Create an API token for the given mail order. The token grants access\nto the [Hostinger Email API](https://api.mail.hostinger.com/), where\nyou can provision and manage the mailboxes it is scoped to.\n\nThe plaintext token is returned only in this response, never again.\nA maximum of 10 tokens can exist per order. Use\n`scope.has_all_mailboxes` to cover all current and future mailboxes,\nor list specific mailboxes in `scope.mailbox_ids`.",
6
+ "method": "POST",
7
+ "path": "/api/mail/v1/orders/{orderId}/api-tokens",
8
+ "inputSchema": {
9
+ "type": "object",
10
+ "properties": {
11
+ "orderId": {
12
+ "type": "string",
13
+ "description": "Order resource ID"
14
+ },
15
+ "name": {
16
+ "type": "string",
17
+ "description": "Human-readable label for this token"
18
+ },
19
+ "scope": {
20
+ "type": "object",
21
+ "description": "Mailbox scope this token can access",
22
+ "properties": {
23
+ "has_all_mailboxes": {
24
+ "type": "boolean",
25
+ "description": "Grant access to all current and future mailboxes of the order"
26
+ },
27
+ "mailbox_ids": {
28
+ "type": "array",
29
+ "description": "Required when `has_all_mailboxes` is false. Mailbox resource IDs of this order.",
30
+ "items": {
31
+ "type": "string",
32
+ "description": "mailbox_ids parameter"
33
+ }
34
+ }
35
+ },
36
+ "required": [
37
+ "has_all_mailboxes"
38
+ ]
39
+ }
40
+ },
41
+ "required": [
42
+ "orderId",
43
+ "name",
44
+ "scope"
45
+ ]
46
+ },
47
+ "security": [
48
+ {
49
+ "apiToken": []
50
+ }
51
+ ],
52
+ "group": "mail"
53
+ },
54
+ {
55
+ "name": "mail_revokeAPITokenV1",
56
+ "description": "Revoke an API token. The token immediately loses access to the\n[Hostinger Email API](https://api.mail.hostinger.com/). This action\ncannot be undone.",
57
+ "method": "DELETE",
58
+ "path": "/api/mail/v1/api-tokens/{tokenId}",
59
+ "inputSchema": {
60
+ "type": "object",
61
+ "properties": {
62
+ "tokenId": {
63
+ "type": "string",
64
+ "description": "API token ID (returned when the token was created)"
65
+ }
66
+ },
67
+ "required": [
68
+ "tokenId"
69
+ ]
70
+ },
71
+ "security": [
72
+ {
73
+ "apiToken": []
74
+ }
75
+ ],
76
+ "group": "mail"
77
+ },
78
+ {
79
+ "name": "mail_listAPITokensV1",
80
+ "description": "Retrieve a paginated list of\n[Hostinger Email API](https://api.mail.hostinger.com/) tokens across\nall your mail orders, optionally filtered by order. Plaintext tokens\nare never included; they are returned only when a token is created.",
81
+ "method": "GET",
82
+ "path": "/api/mail/v1/api-tokens",
83
+ "inputSchema": {
84
+ "type": "object",
85
+ "properties": {
86
+ "order_id": {
87
+ "type": "string",
88
+ "description": "Filter tokens by order resource ID. Single value or comma-separated list."
89
+ },
90
+ "page": {
91
+ "type": "integer",
92
+ "description": "Page number"
93
+ },
94
+ "per_page": {
95
+ "type": "integer",
96
+ "description": "Number of items per page"
97
+ }
98
+ },
99
+ "required": []
100
+ },
101
+ "security": [
102
+ {
103
+ "apiToken": []
104
+ }
105
+ ],
106
+ "group": "mail"
107
+ },
3
108
  {
4
109
  "name": "mail_listAccessLogsV1",
5
110
  "description": "Retrieve paginated access logs for the domain attached to the given\nmail order. Supports filtering by account, date range, protocol,\nstatus, and deletion flag. Results are sorted by timestamp descending.",
@@ -581,5 +686,238 @@ export default [
581
686
  }
582
687
  ],
583
688
  "group": "mail"
689
+ },
690
+ {
691
+ "name": "mail_listWebhookDeliveryLogsV1",
692
+ "description": "Retrieve a paginated list of webhook delivery logs for the given mail\norder, including delivery outcome, duration, and retry counts.\nSupports filtering by mailbox.",
693
+ "method": "GET",
694
+ "path": "/api/mail/v1/orders/{orderId}/webhooks/delivery-logs",
695
+ "inputSchema": {
696
+ "type": "object",
697
+ "properties": {
698
+ "orderId": {
699
+ "type": "string",
700
+ "description": "Order resource ID"
701
+ },
702
+ "mailbox_id": {
703
+ "type": "string",
704
+ "description": "Filter by the mailbox resource ID the webhooks are attached to"
705
+ },
706
+ "page": {
707
+ "type": "integer",
708
+ "description": "Page number"
709
+ },
710
+ "per_page": {
711
+ "type": "integer",
712
+ "description": "Number of items per page"
713
+ }
714
+ },
715
+ "required": [
716
+ "orderId"
717
+ ]
718
+ },
719
+ "security": [
720
+ {
721
+ "apiToken": []
722
+ }
723
+ ],
724
+ "group": "mail"
725
+ },
726
+ {
727
+ "name": "mail_getWebhookV1",
728
+ "description": "Retrieve the details of a single webhook. The webhook secret is never\nincluded; it is returned only when a webhook is created or its secret\nis regenerated.",
729
+ "method": "GET",
730
+ "path": "/api/mail/v1/webhooks/{webhookId}",
731
+ "inputSchema": {
732
+ "type": "object",
733
+ "properties": {
734
+ "webhookId": {
735
+ "type": "string",
736
+ "description": "Webhook ID (returned when the webhook was created)"
737
+ }
738
+ },
739
+ "required": [
740
+ "webhookId"
741
+ ]
742
+ },
743
+ "security": [
744
+ {
745
+ "apiToken": []
746
+ }
747
+ ],
748
+ "group": "mail"
749
+ },
750
+ {
751
+ "name": "mail_deleteWebhookV1",
752
+ "description": "Permanently delete a webhook. This action cannot be undone. After\ndeletion the URL no longer receives event notifications.",
753
+ "method": "DELETE",
754
+ "path": "/api/mail/v1/webhooks/{webhookId}",
755
+ "inputSchema": {
756
+ "type": "object",
757
+ "properties": {
758
+ "webhookId": {
759
+ "type": "string",
760
+ "description": "Webhook ID (returned when the webhook was created)"
761
+ }
762
+ },
763
+ "required": [
764
+ "webhookId"
765
+ ]
766
+ },
767
+ "security": [
768
+ {
769
+ "apiToken": []
770
+ }
771
+ ],
772
+ "group": "mail"
773
+ },
774
+ {
775
+ "name": "mail_updateWebhookV1",
776
+ "description": "Partially update a webhook. Only the fields included in the request\nbody are changed; omitted fields retain their current values. Pass\n`\"description\": null` to clear the description.",
777
+ "method": "PATCH",
778
+ "path": "/api/mail/v1/webhooks/{webhookId}",
779
+ "inputSchema": {
780
+ "type": "object",
781
+ "properties": {
782
+ "webhookId": {
783
+ "type": "string",
784
+ "description": "Webhook ID (returned when the webhook was created)"
785
+ },
786
+ "name": {
787
+ "type": "string",
788
+ "description": "New human-readable name for the webhook"
789
+ },
790
+ "description": {
791
+ "type": "string",
792
+ "description": "New description, or null to clear it"
793
+ },
794
+ "events": {
795
+ "type": "array",
796
+ "description": "Replaces the full list of subscribed events",
797
+ "items": {
798
+ "type": "string",
799
+ "description": "events parameter",
800
+ "enum": [
801
+ "message.received"
802
+ ]
803
+ }
804
+ },
805
+ "status": {
806
+ "type": "string",
807
+ "description": "New status for the webhook",
808
+ "enum": [
809
+ "active",
810
+ "disabled",
811
+ "paused"
812
+ ]
813
+ },
814
+ "url": {
815
+ "type": "string",
816
+ "description": "New URL to deliver events to"
817
+ }
818
+ },
819
+ "required": [
820
+ "webhookId"
821
+ ]
822
+ },
823
+ "security": [
824
+ {
825
+ "apiToken": []
826
+ }
827
+ ],
828
+ "group": "mail"
829
+ },
830
+ {
831
+ "name": "mail_listWebhooksV1",
832
+ "description": "Retrieve a paginated list of webhooks belonging to the given mail\norder. Supports filtering by mailbox and status. The webhook secret\nis never included; it is returned only when a webhook is created or\nits secret is regenerated.",
833
+ "method": "GET",
834
+ "path": "/api/mail/v1/orders/{orderId}/webhooks",
835
+ "inputSchema": {
836
+ "type": "object",
837
+ "properties": {
838
+ "orderId": {
839
+ "type": "string",
840
+ "description": "Order resource ID"
841
+ },
842
+ "mailbox_id": {
843
+ "type": "string",
844
+ "description": "Filter by the mailbox resource ID the webhooks are attached to"
845
+ },
846
+ "status": {
847
+ "type": "string",
848
+ "description": "Filter webhooks by status",
849
+ "enum": [
850
+ "active",
851
+ "disabled",
852
+ "paused"
853
+ ]
854
+ },
855
+ "page": {
856
+ "type": "integer",
857
+ "description": "Page number"
858
+ },
859
+ "per_page": {
860
+ "type": "integer",
861
+ "description": "Number of items per page"
862
+ }
863
+ },
864
+ "required": [
865
+ "orderId"
866
+ ]
867
+ },
868
+ "security": [
869
+ {
870
+ "apiToken": []
871
+ }
872
+ ],
873
+ "group": "mail"
874
+ },
875
+ {
876
+ "name": "mail_regenerateWebhookSecretV1",
877
+ "description": "Regenerate the secret of a webhook. The previous secret is\nimmediately invalidated. The new secret is returned only in this\nresponse and is sent as a bearer token with every delivery.",
878
+ "method": "POST",
879
+ "path": "/api/mail/v1/webhooks/{webhookId}/regenerate-secret",
880
+ "inputSchema": {
881
+ "type": "object",
882
+ "properties": {
883
+ "webhookId": {
884
+ "type": "string",
885
+ "description": "Webhook ID (returned when the webhook was created)"
886
+ }
887
+ },
888
+ "required": [
889
+ "webhookId"
890
+ ]
891
+ },
892
+ "security": [
893
+ {
894
+ "apiToken": []
895
+ }
896
+ ],
897
+ "group": "mail"
898
+ },
899
+ {
900
+ "name": "mail_testWebhookV1",
901
+ "description": "Send a test delivery to the webhook URL and return the result. Test\nrequests are rate limited upstream.",
902
+ "method": "POST",
903
+ "path": "/api/mail/v1/webhooks/{webhookId}/test",
904
+ "inputSchema": {
905
+ "type": "object",
906
+ "properties": {
907
+ "webhookId": {
908
+ "type": "string",
909
+ "description": "Webhook ID (returned when the webhook was created)"
910
+ }
911
+ },
912
+ "required": [
913
+ "webhookId"
914
+ ]
915
+ },
916
+ "security": [
917
+ {
918
+ "apiToken": []
919
+ }
920
+ ],
921
+ "group": "mail"
584
922
  }
585
923
  ];