hostinger-api-sdk 0.0.17 → 0.0.20

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 (127) hide show
  1. package/.github/workflows/build-release.yaml +28 -11
  2. package/README.md +2 -2
  3. package/api.ts +8387 -2618
  4. package/base.ts +1 -1
  5. package/common.ts +1 -1
  6. package/configuration.ts +2 -2
  7. package/dist/api.d.ts +5666 -1808
  8. package/dist/api.js +4008 -376
  9. package/dist/base.d.ts +1 -1
  10. package/dist/base.js +1 -1
  11. package/dist/common.d.ts +1 -1
  12. package/dist/common.js +1 -1
  13. package/dist/configuration.d.ts +1 -1
  14. package/dist/configuration.js +2 -2
  15. package/dist/esm/api.d.ts +5666 -1808
  16. package/dist/esm/api.js +3939 -365
  17. package/dist/esm/base.d.ts +1 -1
  18. package/dist/esm/base.js +1 -1
  19. package/dist/esm/common.d.ts +1 -1
  20. package/dist/esm/common.js +1 -1
  21. package/dist/esm/configuration.d.ts +1 -1
  22. package/dist/esm/configuration.js +2 -2
  23. package/dist/esm/index.d.ts +1 -1
  24. package/dist/esm/index.js +1 -1
  25. package/dist/index.d.ts +1 -1
  26. package/dist/index.js +1 -1
  27. package/docs/BillingSubscriptionsApi.md +0 -59
  28. package/docs/BillingV1CatalogCatalogItemResource.md +1 -1
  29. package/docs/DomainAccessVerifierV2VerificationsActiveVerificationsCollection.md +21 -0
  30. package/docs/DomainAccessVerifierV2VerificationsActiveVerificationsCollectionData.md +23 -0
  31. package/docs/DomainAccessVerifierV2VerificationsActiveVerificationsCollectionDataPENDING.md +21 -0
  32. package/docs/DomainAccessVerifierV2VerificationsActiveVerificationsCollectionDataPENDINGDOMAINTLD.md +21 -0
  33. package/docs/DomainAccessVerifierV2VerificationsActiveVerificationsCollectionDataPENDINGDOMAINTLDVERIFICATIONTYPE.md +27 -0
  34. package/docs/DomainAccessVerifierV2VerificationsActiveVerificationsCollectionDataVERIFIED.md +21 -0
  35. package/docs/DomainAccessVerifierV2VerificationsActiveVerificationsCollectionDataVERIFIEDDOMAINTLD.md +21 -0
  36. package/docs/DomainAccessVerifierV2VerificationsActiveVerificationsCollectionDataVERIFIEDDOMAINTLDVERIFICATIONTYPE.md +21 -0
  37. package/docs/DomainAccessVerifierV2VerificationsListRequest.md +20 -0
  38. package/docs/DomainAccessVerifierVerificationsApi.md +63 -0
  39. package/docs/DomainsPortfolioApi.md +1 -1
  40. package/docs/EcommerceGetStoresV1200Response.md +22 -0
  41. package/docs/EcommercePaymentsApi.md +66 -0
  42. package/docs/EcommerceProductsApi.md +125 -0
  43. package/docs/EcommerceShippingApi.md +66 -0
  44. package/docs/EcommerceStoresApi.md +171 -0
  45. package/docs/EcommerceV1PaymentEnableManualPaymentRequest.md +20 -0
  46. package/docs/EcommerceV1PaymentManualPaymentResource.md +22 -0
  47. package/docs/EcommerceV1PaymentManualPaymentResourcePaymentMethod.md +26 -0
  48. package/docs/EcommerceV1ProductCreateDigitalProductRequest.md +28 -0
  49. package/docs/EcommerceV1ProductCreatePhysicalProductRequest.md +26 -0
  50. package/docs/EcommerceV1ProductProductCreationResource.md +22 -0
  51. package/docs/EcommerceV1ProductProductCreationResourceProduct.md +30 -0
  52. package/docs/EcommerceV1ShippingSetShippingRequest.md +20 -0
  53. package/docs/EcommerceV1ShippingShippingResource.md +22 -0
  54. package/docs/EcommerceV1ShippingShippingResourceShippingOption.md +24 -0
  55. package/docs/EcommerceV1StoreStoreCreationResource.md +22 -0
  56. package/docs/EcommerceV1StoreStoreCreationResourceSalesChannel.md +24 -0
  57. package/docs/EcommerceV1StoreStoreCreationResourceStore.md +30 -0
  58. package/docs/EcommerceV1StoreStoreDeleteResource.md +22 -0
  59. package/docs/EcommerceV1StoreStoreRequest.md +30 -0
  60. package/docs/EcommerceV1StoreStoreRequestSalesChannel.md +22 -0
  61. package/docs/EcommerceV1StoreStoreResource.md +30 -0
  62. package/docs/HorizonsV1WebsitesCreateWebsiteRequest.md +20 -0
  63. package/docs/HorizonsV1WebsitesCreateWebsiteRequestMessageInner.md +22 -0
  64. package/docs/HorizonsV1WebsitesCreatedWebsiteResource.md +22 -0
  65. package/docs/HorizonsV1WebsitesWebsiteUrlResource.md +20 -0
  66. package/docs/HorizonsWebsitesApi.md +117 -0
  67. package/docs/HostingDatabasesApi.md +368 -0
  68. package/docs/HostingDatacentersApi.md +61 -0
  69. package/docs/HostingDomainsApi.md +468 -0
  70. package/docs/HostingListAccountDatabasesV1200Response.md +22 -0
  71. package/docs/HostingListNodeJSBuildsV1200Response.md +22 -0
  72. package/docs/HostingListOrdersV1200Response.md +22 -0
  73. package/docs/HostingListWebsitesV1200Response.md +22 -0
  74. package/docs/HostingNodeJSApi.md +199 -0
  75. package/docs/HostingOrdersApi.md +70 -0
  76. package/docs/HostingV1DatabasesChangeDatabasePasswordRequest.md +20 -0
  77. package/docs/HostingV1DatabasesCreateDatabaseRequest.md +26 -0
  78. package/docs/HostingV1DatabasesDatabaseResource.md +34 -0
  79. package/docs/HostingV1DatabasesPhpMyAdminLinkResource.md +20 -0
  80. package/docs/HostingV1DatacenterCoordinatesResource.md +22 -0
  81. package/docs/HostingV1DatacenterDatacenterResource.md +24 -0
  82. package/docs/HostingV1DatacentersListRequest.md +20 -0
  83. package/docs/HostingV1DomainsCreateParkedDomainRequest.md +20 -0
  84. package/docs/HostingV1DomainsCreateSubdomainRequest.md +24 -0
  85. package/docs/HostingV1DomainsDomainAccessResource.md +24 -0
  86. package/docs/HostingV1DomainsFreeSubdomainResource.md +20 -0
  87. package/docs/HostingV1DomainsParkedDomainResource.md +28 -0
  88. package/docs/HostingV1DomainsSubdomainResource.md +28 -0
  89. package/docs/HostingV1DomainsVerifyOwnershipRequest.md +20 -0
  90. package/docs/HostingV1NodeJsBuildLogsResource.md +22 -0
  91. package/docs/HostingV1NodeJsBuildOptionsResource.md +36 -0
  92. package/docs/HostingV1NodeJsBuildResource.md +28 -0
  93. package/docs/HostingV1NodeJsCreateFromArchiveRequest.md +34 -0
  94. package/docs/{BillingV1OrderStoreRequestItemsInner.md → HostingV1NodeJsSourceOptionsResource.md} +5 -7
  95. package/docs/HostingV1OrdersOrderResource.md +30 -0
  96. package/docs/HostingV1OrdersPlanResource.md +20 -0
  97. package/docs/HostingV1WebsitesCreateWebsiteRequest.md +24 -0
  98. package/docs/HostingV1WebsitesWebsiteResource.md +36 -0
  99. package/docs/HostingV1WordpressInstallWordpressRequest.md +36 -0
  100. package/docs/HostingV1WordpressInstallWordpressRequestCredentials.md +25 -0
  101. package/docs/HostingV1WordpressInstallWordpressRequestDatabase.md +23 -0
  102. package/docs/HostingV1WordpressWordpressInstallationResource.md +42 -0
  103. package/docs/HostingWebsitesApi.md +132 -0
  104. package/docs/HostingWordpressApi.md +126 -0
  105. package/docs/ReachContactsApi.md +63 -4
  106. package/docs/ReachListProfileSegmentContactsV1200Response.md +22 -0
  107. package/docs/ReachProfilesApi.md +54 -0
  108. package/docs/ReachSegmentsApi.md +287 -0
  109. package/docs/ReachV1ContactsSegmentsContactSegmentResource.md +26 -0
  110. package/docs/ReachV1ContactsSegmentsSegmentResource.md +28 -0
  111. package/docs/ReachV1ContactsSegmentsSegmentationContactResource.md +34 -0
  112. package/docs/ReachV1ContactsSegmentsStoreRequest.md +24 -0
  113. package/docs/ReachV1ContactsSegmentsStoreRequestConditionsInner.md +24 -0
  114. package/docs/ReachV1ContactsSegmentsStoreRequestConditionsInnerValue.md +18 -0
  115. package/docs/ReachV1ContactsStoreRequest.md +2 -2
  116. package/docs/ReachV1ProfilesProfileResource.md +30 -0
  117. package/docs/ReachV1ProfilesProfileResourceLimits.md +26 -0
  118. package/docs/ReachV1ProfilesProfileResourceProfilesInner.md +26 -0
  119. package/docs/VPSActionsApi.md +1 -1
  120. package/docs/VPSDockerManagerApi.md +7 -7
  121. package/docs/VPSFirewallApi.md +1 -1
  122. package/docs/VPSMalwareScannerApi.md +2 -2
  123. package/docs/VPSVirtualMachineApi.md +2 -2
  124. package/index.ts +1 -1
  125. package/package.json +1 -1
  126. package/docs/BillingOrdersApi.md +0 -63
  127. package/docs/BillingV1OrderStoreRequest.md +0 -24
@@ -5,14 +5,15 @@ All URIs are relative to *https://developers.hostinger.com*
5
5
  |Method | HTTP request | Description|
6
6
  |------------- | ------------- | -------------|
7
7
  |[**createANewContactV1**](#createanewcontactv1) | **POST** /api/reach/v1/contacts | Create a new contact|
8
+ |[**createNewContactsV1**](#createnewcontactsv1) | **POST** /api/reach/v1/profiles/{profileUuid}/contacts | Create new contacts|
8
9
  |[**deleteAContactV1**](#deleteacontactv1) | **DELETE** /api/reach/v1/contacts/{uuid} | Delete a contact|
9
10
  |[**listContactGroupsV1**](#listcontactgroupsv1) | **GET** /api/reach/v1/contacts/groups | List contact groups|
10
11
  |[**listContactsV1**](#listcontactsv1) | **GET** /api/reach/v1/contacts | List contacts|
11
12
 
12
13
  # **createANewContactV1**
13
- > ReachV1ContactsContactResource createANewContactV1(reachV1ContactsStoreRequest)
14
+ > CommonSuccessEmptyResource createANewContactV1(reachV1ContactsStoreRequest)
14
15
 
15
- Create a new contact in the email marketing system. This endpoint allows you to create a new contact with basic information like name, email, and surname. You can optionally assign the contact to specific groups and add notes. The contact will be automatically subscribed to email communications.
16
+ Create a new contact in the email marketing system. This endpoint allows you to create a new contact with basic information like name, email, and surname. If double opt-in is enabled, the contact will be created with a pending status and a confirmation email will be sent.
16
17
 
17
18
  ### Example
18
19
 
@@ -42,7 +43,7 @@ const { status, data } = await apiInstance.createANewContactV1(
42
43
 
43
44
  ### Return type
44
45
 
45
- **ReachV1ContactsContactResource**
46
+ **CommonSuccessEmptyResource**
46
47
 
47
48
  ### Authorization
48
49
 
@@ -57,7 +58,65 @@ const { status, data } = await apiInstance.createANewContactV1(
57
58
  ### HTTP response details
58
59
  | Status code | Description | Response headers |
59
60
  |-------------|-------------|------------------|
60
- |**200** | Success response | - |
61
+ |**200** | Success empty response | - |
62
+ |**422** | Validation error response | - |
63
+ |**401** | Unauthenticated response | - |
64
+ |**500** | Error response | - |
65
+
66
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
67
+
68
+ # **createNewContactsV1**
69
+ > CommonSuccessEmptyResource createNewContactsV1(reachV1ContactsStoreRequest)
70
+
71
+ Create a new contact in the email marketing system. This endpoint allows you to create a new contact with basic information like name, email, and surname. If double opt-in is enabled, the contact will be created with a pending status and a confirmation email will be sent.
72
+
73
+ ### Example
74
+
75
+ ```typescript
76
+ import {
77
+ ReachContactsApi,
78
+ Configuration,
79
+ ReachV1ContactsStoreRequest
80
+ } from 'hostinger-api-sdk';
81
+
82
+ const configuration = new Configuration();
83
+ const apiInstance = new ReachContactsApi(configuration);
84
+
85
+ let profileUuid: string; //Profile uuid parameter (default to undefined)
86
+ let reachV1ContactsStoreRequest: ReachV1ContactsStoreRequest; //
87
+
88
+ const { status, data } = await apiInstance.createNewContactsV1(
89
+ profileUuid,
90
+ reachV1ContactsStoreRequest
91
+ );
92
+ ```
93
+
94
+ ### Parameters
95
+
96
+ |Name | Type | Description | Notes|
97
+ |------------- | ------------- | ------------- | -------------|
98
+ | **reachV1ContactsStoreRequest** | **ReachV1ContactsStoreRequest**| | |
99
+ | **profileUuid** | [**string**] | Profile uuid parameter | defaults to undefined|
100
+
101
+
102
+ ### Return type
103
+
104
+ **CommonSuccessEmptyResource**
105
+
106
+ ### Authorization
107
+
108
+ [apiToken](../README.md#apiToken)
109
+
110
+ ### HTTP request headers
111
+
112
+ - **Content-Type**: application/json
113
+ - **Accept**: application/json
114
+
115
+
116
+ ### HTTP response details
117
+ | Status code | Description | Response headers |
118
+ |-------------|-------------|------------------|
119
+ |**200** | Success empty response | - |
61
120
  |**422** | Validation error response | - |
62
121
  |**401** | Unauthenticated response | - |
63
122
  |**500** | Error response | - |
@@ -0,0 +1,22 @@
1
+ # ReachListProfileSegmentContactsV1200Response
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **data** | [**Array<ReachV1ContactsSegmentsSegmentationContactResource>**](ReachV1ContactsSegmentsSegmentationContactResource.md) | Array of [`Reach.V1.Contacts.Segments.SegmentationContactResource`](#model/reachv1contactssegmentssegmentationcontactresource) | [optional] [default to undefined]
9
+ **meta** | [**CommonSchemaPaginationMetaSchema**](CommonSchemaPaginationMetaSchema.md) | | [optional] [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { ReachListProfileSegmentContactsV1200Response } from 'hostinger-api-sdk';
15
+
16
+ const instance: ReachListProfileSegmentContactsV1200Response = {
17
+ data,
18
+ meta,
19
+ };
20
+ ```
21
+
22
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,54 @@
1
+ # ReachProfilesApi
2
+
3
+ All URIs are relative to *https://developers.hostinger.com*
4
+
5
+ |Method | HTTP request | Description|
6
+ |------------- | ------------- | -------------|
7
+ |[**listProfilesV1**](#listprofilesv1) | **GET** /api/reach/v1/profiles | List Profiles|
8
+
9
+ # **listProfilesV1**
10
+ > Array<ReachV1ProfilesProfileResource> listProfilesV1()
11
+
12
+ This endpoint returns all profiles available to the client, including their basic information.
13
+
14
+ ### Example
15
+
16
+ ```typescript
17
+ import {
18
+ ReachProfilesApi,
19
+ Configuration
20
+ } from 'hostinger-api-sdk';
21
+
22
+ const configuration = new Configuration();
23
+ const apiInstance = new ReachProfilesApi(configuration);
24
+
25
+ const { status, data } = await apiInstance.listProfilesV1();
26
+ ```
27
+
28
+ ### Parameters
29
+ This endpoint does not have any parameters.
30
+
31
+
32
+ ### Return type
33
+
34
+ **Array<ReachV1ProfilesProfileResource>**
35
+
36
+ ### Authorization
37
+
38
+ [apiToken](../README.md#apiToken)
39
+
40
+ ### HTTP request headers
41
+
42
+ - **Content-Type**: Not defined
43
+ - **Accept**: application/json
44
+
45
+
46
+ ### HTTP response details
47
+ | Status code | Description | Response headers |
48
+ |-------------|-------------|------------------|
49
+ |**200** | Success response | - |
50
+ |**401** | Unauthenticated response | - |
51
+ |**500** | Error response | - |
52
+
53
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
54
+
@@ -0,0 +1,287 @@
1
+ # ReachSegmentsApi
2
+
3
+ All URIs are relative to *https://developers.hostinger.com*
4
+
5
+ |Method | HTTP request | Description|
6
+ |------------- | ------------- | -------------|
7
+ |[**createANewContactSegmentV1**](#createanewcontactsegmentv1) | **POST** /api/reach/v1/segmentation/segments | Create a new contact segment|
8
+ |[**getSegmentDetailsV1**](#getsegmentdetailsv1) | **GET** /api/reach/v1/segmentation/segments/{segmentUuid} | Get segment details|
9
+ |[**listProfileSegmentContactsV1**](#listprofilesegmentcontactsv1) | **GET** /api/reach/v1/profiles/{profileUuid}/segmentation/segments/{segmentUuid}/contacts | List profile segment contacts|
10
+ |[**listSegmentContactsV1**](#listsegmentcontactsv1) | **GET** /api/reach/v1/segmentation/segments/{segmentUuid}/contacts | List segment contacts|
11
+ |[**listSegmentsV1**](#listsegmentsv1) | **GET** /api/reach/v1/segmentation/segments | List segments|
12
+
13
+ # **createANewContactSegmentV1**
14
+ > ReachV1ContactsSegmentsSegmentResource createANewContactSegmentV1(reachV1ContactsSegmentsStoreRequest)
15
+
16
+ Create a new contact segment. This endpoint allows creating a new contact segment that can be used to organize contacts. The segment can be configured with specific criteria like email, name, subscription status, etc.
17
+
18
+ ### Example
19
+
20
+ ```typescript
21
+ import {
22
+ ReachSegmentsApi,
23
+ Configuration,
24
+ ReachV1ContactsSegmentsStoreRequest
25
+ } from 'hostinger-api-sdk';
26
+
27
+ const configuration = new Configuration();
28
+ const apiInstance = new ReachSegmentsApi(configuration);
29
+
30
+ let reachV1ContactsSegmentsStoreRequest: ReachV1ContactsSegmentsStoreRequest; //
31
+
32
+ const { status, data } = await apiInstance.createANewContactSegmentV1(
33
+ reachV1ContactsSegmentsStoreRequest
34
+ );
35
+ ```
36
+
37
+ ### Parameters
38
+
39
+ |Name | Type | Description | Notes|
40
+ |------------- | ------------- | ------------- | -------------|
41
+ | **reachV1ContactsSegmentsStoreRequest** | **ReachV1ContactsSegmentsStoreRequest**| | |
42
+
43
+
44
+ ### Return type
45
+
46
+ **ReachV1ContactsSegmentsSegmentResource**
47
+
48
+ ### Authorization
49
+
50
+ [apiToken](../README.md#apiToken)
51
+
52
+ ### HTTP request headers
53
+
54
+ - **Content-Type**: application/json
55
+ - **Accept**: application/json
56
+
57
+
58
+ ### HTTP response details
59
+ | Status code | Description | Response headers |
60
+ |-------------|-------------|------------------|
61
+ |**200** | Success response | - |
62
+ |**422** | Validation error response | - |
63
+ |**401** | Unauthenticated response | - |
64
+ |**500** | Error response | - |
65
+
66
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
67
+
68
+ # **getSegmentDetailsV1**
69
+ > ReachV1ContactsSegmentsSegmentResource getSegmentDetailsV1()
70
+
71
+ Get details of a specific segment. This endpoint retrieves information about a single segment identified by UUID. Segments are used to organize and group contacts based on specific criteria.
72
+
73
+ ### Example
74
+
75
+ ```typescript
76
+ import {
77
+ ReachSegmentsApi,
78
+ Configuration
79
+ } from 'hostinger-api-sdk';
80
+
81
+ const configuration = new Configuration();
82
+ const apiInstance = new ReachSegmentsApi(configuration);
83
+
84
+ let segmentUuid: string; //Segment uuid parameter (default to undefined)
85
+
86
+ const { status, data } = await apiInstance.getSegmentDetailsV1(
87
+ segmentUuid
88
+ );
89
+ ```
90
+
91
+ ### Parameters
92
+
93
+ |Name | Type | Description | Notes|
94
+ |------------- | ------------- | ------------- | -------------|
95
+ | **segmentUuid** | [**string**] | Segment uuid parameter | defaults to undefined|
96
+
97
+
98
+ ### Return type
99
+
100
+ **ReachV1ContactsSegmentsSegmentResource**
101
+
102
+ ### Authorization
103
+
104
+ [apiToken](../README.md#apiToken)
105
+
106
+ ### HTTP request headers
107
+
108
+ - **Content-Type**: Not defined
109
+ - **Accept**: application/json
110
+
111
+
112
+ ### HTTP response details
113
+ | Status code | Description | Response headers |
114
+ |-------------|-------------|------------------|
115
+ |**200** | Success response | - |
116
+ |**401** | Unauthenticated response | - |
117
+ |**500** | Error response | - |
118
+
119
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
120
+
121
+ # **listProfileSegmentContactsV1**
122
+ > ReachListProfileSegmentContactsV1200Response listProfileSegmentContactsV1()
123
+
124
+ Retrieve contacts associated with a specific segment for a given profile. This endpoint allows you to fetch and filter contacts that belong to a particular segment, identified by its UUID, scoped to a specific profile.
125
+
126
+ ### Example
127
+
128
+ ```typescript
129
+ import {
130
+ ReachSegmentsApi,
131
+ Configuration
132
+ } from 'hostinger-api-sdk';
133
+
134
+ const configuration = new Configuration();
135
+ const apiInstance = new ReachSegmentsApi(configuration);
136
+
137
+ let profileUuid: string; //Profile uuid parameter (default to undefined)
138
+ let segmentUuid: string; //Segment uuid parameter (default to undefined)
139
+ let page: number; //Page number (optional) (default to undefined)
140
+ let perPage: number; //Number of items per page (optional) (default to 25)
141
+
142
+ const { status, data } = await apiInstance.listProfileSegmentContactsV1(
143
+ profileUuid,
144
+ segmentUuid,
145
+ page,
146
+ perPage
147
+ );
148
+ ```
149
+
150
+ ### Parameters
151
+
152
+ |Name | Type | Description | Notes|
153
+ |------------- | ------------- | ------------- | -------------|
154
+ | **profileUuid** | [**string**] | Profile uuid parameter | defaults to undefined|
155
+ | **segmentUuid** | [**string**] | Segment uuid parameter | defaults to undefined|
156
+ | **page** | [**number**] | Page number | (optional) defaults to undefined|
157
+ | **perPage** | [**number**] | Number of items per page | (optional) defaults to 25|
158
+
159
+
160
+ ### Return type
161
+
162
+ **ReachListProfileSegmentContactsV1200Response**
163
+
164
+ ### Authorization
165
+
166
+ [apiToken](../README.md#apiToken)
167
+
168
+ ### HTTP request headers
169
+
170
+ - **Content-Type**: Not defined
171
+ - **Accept**: application/json
172
+
173
+
174
+ ### HTTP response details
175
+ | Status code | Description | Response headers |
176
+ |-------------|-------------|------------------|
177
+ |**200** | Success response | - |
178
+ |**401** | Unauthenticated response | - |
179
+ |**500** | Error response | - |
180
+
181
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
182
+
183
+ # **listSegmentContactsV1**
184
+ > ReachListProfileSegmentContactsV1200Response listSegmentContactsV1()
185
+
186
+ Retrieve contacts associated with a specific segment. This endpoint allows you to fetch and filter contacts that belong to a particular segment, identified by its UUID.
187
+
188
+ ### Example
189
+
190
+ ```typescript
191
+ import {
192
+ ReachSegmentsApi,
193
+ Configuration
194
+ } from 'hostinger-api-sdk';
195
+
196
+ const configuration = new Configuration();
197
+ const apiInstance = new ReachSegmentsApi(configuration);
198
+
199
+ let segmentUuid: string; //Segment uuid parameter (default to undefined)
200
+ let page: number; //Page number (optional) (default to undefined)
201
+ let perPage: number; //Number of items per page (optional) (default to 25)
202
+
203
+ const { status, data } = await apiInstance.listSegmentContactsV1(
204
+ segmentUuid,
205
+ page,
206
+ perPage
207
+ );
208
+ ```
209
+
210
+ ### Parameters
211
+
212
+ |Name | Type | Description | Notes|
213
+ |------------- | ------------- | ------------- | -------------|
214
+ | **segmentUuid** | [**string**] | Segment uuid parameter | defaults to undefined|
215
+ | **page** | [**number**] | Page number | (optional) defaults to undefined|
216
+ | **perPage** | [**number**] | Number of items per page | (optional) defaults to 25|
217
+
218
+
219
+ ### Return type
220
+
221
+ **ReachListProfileSegmentContactsV1200Response**
222
+
223
+ ### Authorization
224
+
225
+ [apiToken](../README.md#apiToken)
226
+
227
+ ### HTTP request headers
228
+
229
+ - **Content-Type**: Not defined
230
+ - **Accept**: application/json
231
+
232
+
233
+ ### HTTP response details
234
+ | Status code | Description | Response headers |
235
+ |-------------|-------------|------------------|
236
+ |**200** | Success response | - |
237
+ |**401** | Unauthenticated response | - |
238
+ |**500** | Error response | - |
239
+
240
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
241
+
242
+ # **listSegmentsV1**
243
+ > Array<ReachV1ContactsSegmentsContactSegmentResource> listSegmentsV1()
244
+
245
+ Get a list of all contact segments. This endpoint returns a list of contact segments that can be used to organize contacts.
246
+
247
+ ### Example
248
+
249
+ ```typescript
250
+ import {
251
+ ReachSegmentsApi,
252
+ Configuration
253
+ } from 'hostinger-api-sdk';
254
+
255
+ const configuration = new Configuration();
256
+ const apiInstance = new ReachSegmentsApi(configuration);
257
+
258
+ const { status, data } = await apiInstance.listSegmentsV1();
259
+ ```
260
+
261
+ ### Parameters
262
+ This endpoint does not have any parameters.
263
+
264
+
265
+ ### Return type
266
+
267
+ **Array<ReachV1ContactsSegmentsContactSegmentResource>**
268
+
269
+ ### Authorization
270
+
271
+ [apiToken](../README.md#apiToken)
272
+
273
+ ### HTTP request headers
274
+
275
+ - **Content-Type**: Not defined
276
+ - **Accept**: application/json
277
+
278
+
279
+ ### HTTP response details
280
+ | Status code | Description | Response headers |
281
+ |-------------|-------------|------------------|
282
+ |**200** | Success response | - |
283
+ |**401** | Unauthenticated response | - |
284
+ |**500** | Error response | - |
285
+
286
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
287
+
@@ -0,0 +1,26 @@
1
+ # ReachV1ContactsSegmentsContactSegmentResource
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **uuid** | **string** | | [optional] [default to undefined]
9
+ **name** | **string** | | [optional] [default to undefined]
10
+ **created_at** | **string** | | [optional] [default to undefined]
11
+ **updated_at** | **string** | | [optional] [default to undefined]
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import { ReachV1ContactsSegmentsContactSegmentResource } from 'hostinger-api-sdk';
17
+
18
+ const instance: ReachV1ContactsSegmentsContactSegmentResource = {
19
+ uuid,
20
+ name,
21
+ created_at,
22
+ updated_at,
23
+ };
24
+ ```
25
+
26
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,28 @@
1
+ # ReachV1ContactsSegmentsSegmentResource
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **uuid** | **string** | | [optional] [default to undefined]
9
+ **name** | **string** | | [optional] [default to undefined]
10
+ **query** | **Array&lt;any&gt;** | | [optional] [default to undefined]
11
+ **created_at** | **string** | | [optional] [default to undefined]
12
+ **updated_at** | **string** | | [optional] [default to undefined]
13
+
14
+ ## Example
15
+
16
+ ```typescript
17
+ import { ReachV1ContactsSegmentsSegmentResource } from 'hostinger-api-sdk';
18
+
19
+ const instance: ReachV1ContactsSegmentsSegmentResource = {
20
+ uuid,
21
+ name,
22
+ query,
23
+ created_at,
24
+ updated_at,
25
+ };
26
+ ```
27
+
28
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,34 @@
1
+ # ReachV1ContactsSegmentsSegmentationContactResource
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **uuid** | **string** | | [optional] [default to undefined]
9
+ **name** | **string** | | [optional] [default to undefined]
10
+ **surname** | **string** | | [optional] [default to undefined]
11
+ **email** | **string** | | [optional] [default to undefined]
12
+ **subscription_status** | **string** | | [optional] [default to undefined]
13
+ **subscribed_at** | **string** | | [optional] [default to undefined]
14
+ **source** | **string** | | [optional] [default to undefined]
15
+ **note** | **string** | | [optional] [default to undefined]
16
+
17
+ ## Example
18
+
19
+ ```typescript
20
+ import { ReachV1ContactsSegmentsSegmentationContactResource } from 'hostinger-api-sdk';
21
+
22
+ const instance: ReachV1ContactsSegmentsSegmentationContactResource = {
23
+ uuid,
24
+ name,
25
+ surname,
26
+ email,
27
+ subscription_status,
28
+ subscribed_at,
29
+ source,
30
+ note,
31
+ };
32
+ ```
33
+
34
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,24 @@
1
+ # ReachV1ContactsSegmentsStoreRequest
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **name** | **string** | | [default to undefined]
9
+ **conditions** | [**Array&lt;ReachV1ContactsSegmentsStoreRequestConditionsInner&gt;**](ReachV1ContactsSegmentsStoreRequestConditionsInner.md) | | [default to undefined]
10
+ **logic** | **string** | | [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { ReachV1ContactsSegmentsStoreRequest } from 'hostinger-api-sdk';
16
+
17
+ const instance: ReachV1ContactsSegmentsStoreRequest = {
18
+ name,
19
+ conditions,
20
+ logic,
21
+ };
22
+ ```
23
+
24
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,24 @@
1
+ # ReachV1ContactsSegmentsStoreRequestConditionsInner
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **operator** | **string** | | [optional] [default to undefined]
9
+ **value** | [**ReachV1ContactsSegmentsStoreRequestConditionsInnerValue**](ReachV1ContactsSegmentsStoreRequestConditionsInnerValue.md) | | [optional] [default to undefined]
10
+ **attribute** | **string** | | [optional] [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { ReachV1ContactsSegmentsStoreRequestConditionsInner } from 'hostinger-api-sdk';
16
+
17
+ const instance: ReachV1ContactsSegmentsStoreRequestConditionsInner = {
18
+ operator,
19
+ value,
20
+ attribute,
21
+ };
22
+ ```
23
+
24
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,18 @@
1
+ # ReachV1ContactsSegmentsStoreRequestConditionsInnerValue
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+
9
+ ## Example
10
+
11
+ ```typescript
12
+ import { ReachV1ContactsSegmentsStoreRequestConditionsInnerValue } from 'hostinger-api-sdk';
13
+
14
+ const instance: ReachV1ContactsSegmentsStoreRequestConditionsInnerValue = {
15
+ };
16
+ ```
17
+
18
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -8,7 +8,7 @@ Name | Type | Description | Notes
8
8
  **email** | **string** | | [default to undefined]
9
9
  **name** | **string** | | [optional] [default to undefined]
10
10
  **surname** | **string** | | [optional] [default to undefined]
11
- **group_uuids** | **Array&lt;string&gt;** | | [optional] [default to undefined]
11
+ **phone** | **string** | Phone number in E.164 format (leading \&quot;+\&quot; then 7-15 digits) | [optional] [default to undefined]
12
12
  **note** | **string** | | [optional] [default to undefined]
13
13
 
14
14
  ## Example
@@ -20,7 +20,7 @@ const instance: ReachV1ContactsStoreRequest = {
20
20
  email,
21
21
  name,
22
22
  surname,
23
- group_uuids,
23
+ phone,
24
24
  note,
25
25
  };
26
26
  ```
@@ -0,0 +1,30 @@
1
+ # ReachV1ProfilesProfileResource
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **limits** | [**ReachV1ProfilesProfileResourceLimits**](ReachV1ProfilesProfileResourceLimits.md) | | [optional] [default to undefined]
9
+ **is_trial** | **boolean** | | [optional] [default to undefined]
10
+ **expires_at** | **string** | | [optional] [default to undefined]
11
+ **resource_id** | **number** | | [optional] [default to undefined]
12
+ **status** | **string** | | [optional] [default to undefined]
13
+ **profiles** | [**Array&lt;ReachV1ProfilesProfileResourceProfilesInner&gt;**](ReachV1ProfilesProfileResourceProfilesInner.md) | | [optional] [default to undefined]
14
+
15
+ ## Example
16
+
17
+ ```typescript
18
+ import { ReachV1ProfilesProfileResource } from 'hostinger-api-sdk';
19
+
20
+ const instance: ReachV1ProfilesProfileResource = {
21
+ limits,
22
+ is_trial,
23
+ expires_at,
24
+ resource_id,
25
+ status,
26
+ profiles,
27
+ };
28
+ ```
29
+
30
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)