hostinger-api-sdk 2.3.0 → 2.4.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.
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 2.3.0
4
+ * API Version: 2.4.0
5
5
  *
6
6
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
7
7
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
package/dist/esm/base.js CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 2.3.0
6
+ * API Version: 2.4.0
7
7
  *
8
8
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
9
9
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 2.3.0
4
+ * API Version: 2.4.0
5
5
  *
6
6
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
7
7
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 2.3.0
6
+ * API Version: 2.4.0
7
7
  *
8
8
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
9
9
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 2.3.0
4
+ * API Version: 2.4.0
5
5
  *
6
6
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
7
7
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 2.3.0
6
+ * API Version: 2.4.0
7
7
  *
8
8
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
9
9
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -13,7 +13,7 @@ export class Configuration {
13
13
  var _a;
14
14
  this.accessToken = param.accessToken;
15
15
  this.basePath = param.basePath;
16
- this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/2.3.0" }, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
16
+ this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/2.4.0" }, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
17
17
  this.formDataCtor = param.formDataCtor;
18
18
  }
19
19
  /**
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 2.3.0
4
+ * API Version: 2.4.0
5
5
  *
6
6
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
7
7
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
package/dist/esm/index.js CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 2.3.0
6
+ * API Version: 2.4.0
7
7
  *
8
8
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
9
9
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 2.3.0
4
+ * API Version: 2.4.0
5
5
  *
6
6
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
7
7
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
package/dist/index.js CHANGED
@@ -4,7 +4,7 @@
4
4
  /**
5
5
  * Hostinger API
6
6
  *
7
- * API Version: 2.3.0
7
+ * API Version: 2.4.0
8
8
  *
9
9
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
10
10
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -70,7 +70,7 @@ const { status, data } = await apiInstance.createADraftCampaignV1(
70
70
  # **getCampaignDetailsV1**
71
71
  > ReachV1CampaignsCampaignDetailsResource getCampaignDetailsV1()
72
72
 
73
- Get a single campaign with its sender, subject, template reference, targeting and delivery progress. This describes how the campaign was set up and how far it has got. For opens, clicks and unsubscribes use the campaign statistics endpoint.
73
+ Get a single campaign with its sender, subject, template reference, targeting and delivery progress. This describes how the campaign was set up and how far it has got. For opens, clicks and unsubscribes use the campaign statistics endpoint. The email content is not included: pass `template_uuid` to the get email template endpoint to read its HTML.
74
74
 
75
75
  ### Example
76
76
 
@@ -0,0 +1,349 @@
1
+ # ReachIntegrationsApi
2
+
3
+ All URIs are relative to *https://developers.hostinger.com*
4
+
5
+ |Method | HTTP request | Description|
6
+ |------------- | ------------- | -------------|
7
+ |[**connectAIWebsiteBuilderSiteV1**](#connectaiwebsitebuildersitev1) | **POST** /api/reach/v1/profiles/{profileUuid}/websites/website-builder | Connect AI Website Builder site|
8
+ |[**disconnectAIWebsiteBuilderSiteV1**](#disconnectaiwebsitebuildersitev1) | **DELETE** /api/reach/v1/profiles/{profileUuid}/websites/website-builder | Disconnect AI Website Builder site|
9
+ |[**disconnectEcommerceStoreV1**](#disconnectecommercestorev1) | **DELETE** /api/reach/v1/profiles/{profileUuid}/ecommerce/stores/{storeId} | Disconnect Ecommerce store|
10
+ |[**disconnectWordPressSiteV1**](#disconnectwordpresssitev1) | **DELETE** /api/reach/v1/profiles/{profileUuid}/websites/wordpress | Disconnect WordPress site|
11
+ |[**listConnectedWebsitesV1**](#listconnectedwebsitesv1) | **GET** /api/reach/v1/profiles/{profileUuid}/websites | List connected websites|
12
+ |[**listEcommerceStoresV1**](#listecommercestoresv1) | **GET** /api/reach/v1/profiles/{profileUuid}/ecommerce/stores | List Ecommerce stores|
13
+
14
+ # **connectAIWebsiteBuilderSiteV1**
15
+ > CommonSuccessEmptyResource connectAIWebsiteBuilderSiteV1(reachV1WebsitesWebsiteBuilderConnectRequest)
16
+
17
+ Connect an AI Website Builder site the customer built manually to the profile, so its subscribers flow into Reach. Fails with not found when the customer owns no AI Website Builder site with that domain. Fails with `DOMAIN_ALREADY_EXISTS` when the domain is connected to any profile - to move a site to another plan, disconnect it from the old profile first - and with `WEBSITE_CONNECTION_ALREADY_EXISTS` when this profile already has an AI Website Builder site. The eCommerce store selling on the site, if it is not connected anywhere, is connected too. WordPress sites and sites made with the agentic AI Website Builder cannot be connected here.
18
+
19
+ ### Example
20
+
21
+ ```typescript
22
+ import {
23
+ ReachIntegrationsApi,
24
+ Configuration,
25
+ ReachV1WebsitesWebsiteBuilderConnectRequest
26
+ } from '@hostinger/sdk';
27
+
28
+ const configuration = new Configuration();
29
+ const apiInstance = new ReachIntegrationsApi(configuration);
30
+
31
+ let profileUuid: string; //Profile uuid parameter (default to undefined)
32
+ let reachV1WebsitesWebsiteBuilderConnectRequest: ReachV1WebsitesWebsiteBuilderConnectRequest; //
33
+
34
+ const { status, data } = await apiInstance.connectAIWebsiteBuilderSiteV1(
35
+ profileUuid,
36
+ reachV1WebsitesWebsiteBuilderConnectRequest
37
+ );
38
+ ```
39
+
40
+ ### Parameters
41
+
42
+ |Name | Type | Description | Notes|
43
+ |------------- | ------------- | ------------- | -------------|
44
+ | **reachV1WebsitesWebsiteBuilderConnectRequest** | **ReachV1WebsitesWebsiteBuilderConnectRequest**| | |
45
+ | **profileUuid** | [**string**] | Profile uuid parameter | defaults to undefined|
46
+
47
+
48
+ ### Return type
49
+
50
+ **CommonSuccessEmptyResource**
51
+
52
+ ### Authorization
53
+
54
+ [apiToken](../README.md#apiToken)
55
+
56
+ ### HTTP request headers
57
+
58
+ - **Content-Type**: application/json
59
+ - **Accept**: application/json
60
+
61
+
62
+ ### HTTP response details
63
+ | Status code | Description | Response headers |
64
+ |-------------|-------------|------------------|
65
+ |**200** | Success empty response | - |
66
+ |**401** | Unauthenticated response | - |
67
+ |**422** | Validation error response | - |
68
+ |**500** | Error response | - |
69
+
70
+ [[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)
71
+
72
+ # **disconnectAIWebsiteBuilderSiteV1**
73
+ > CommonSuccessEmptyResource disconnectAIWebsiteBuilderSiteV1(reachV1WebsitesWebsiteBuilderDisconnectRequest)
74
+
75
+ Disconnect an AI Website Builder site from the profile; the site stops sending subscribers to Reach. Take `domain` from the list connected websites endpoint. Works for a site that was already deleted in the builder. Fails with not found when the domain is not connected to this profile. Contacts and any connected eCommerce store stay. The site stays disconnected until it is connected again, so confirm the site and the plan with the customer before calling.
76
+
77
+ ### Example
78
+
79
+ ```typescript
80
+ import {
81
+ ReachIntegrationsApi,
82
+ Configuration,
83
+ ReachV1WebsitesWebsiteBuilderDisconnectRequest
84
+ } from '@hostinger/sdk';
85
+
86
+ const configuration = new Configuration();
87
+ const apiInstance = new ReachIntegrationsApi(configuration);
88
+
89
+ let profileUuid: string; //Profile uuid parameter (default to undefined)
90
+ let reachV1WebsitesWebsiteBuilderDisconnectRequest: ReachV1WebsitesWebsiteBuilderDisconnectRequest; //
91
+
92
+ const { status, data } = await apiInstance.disconnectAIWebsiteBuilderSiteV1(
93
+ profileUuid,
94
+ reachV1WebsitesWebsiteBuilderDisconnectRequest
95
+ );
96
+ ```
97
+
98
+ ### Parameters
99
+
100
+ |Name | Type | Description | Notes|
101
+ |------------- | ------------- | ------------- | -------------|
102
+ | **reachV1WebsitesWebsiteBuilderDisconnectRequest** | **ReachV1WebsitesWebsiteBuilderDisconnectRequest**| | |
103
+ | **profileUuid** | [**string**] | Profile uuid parameter | defaults to undefined|
104
+
105
+
106
+ ### Return type
107
+
108
+ **CommonSuccessEmptyResource**
109
+
110
+ ### Authorization
111
+
112
+ [apiToken](../README.md#apiToken)
113
+
114
+ ### HTTP request headers
115
+
116
+ - **Content-Type**: application/json
117
+ - **Accept**: application/json
118
+
119
+
120
+ ### HTTP response details
121
+ | Status code | Description | Response headers |
122
+ |-------------|-------------|------------------|
123
+ |**200** | Success empty response | - |
124
+ |**422** | Validation error response | - |
125
+ |**401** | Unauthenticated response | - |
126
+ |**500** | Error response | - |
127
+
128
+ [[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)
129
+
130
+ # **disconnectEcommerceStoreV1**
131
+ > CommonSuccessEmptyResource disconnectEcommerceStoreV1()
132
+
133
+ Disconnect an eCommerce store from the profile. Reach stops receiving the store\'s customers and orders, and its products and coupons are removed from Reach; contacts and past orders stay. Take `store_id` from the list eCommerce stores endpoint; for a store that is `connected_to_other_profile`, call this with that profile. Also succeeds when the store is not connected to this profile, so success is not proof that anything was disconnected. Confirm the store and the plan with the customer before calling.
134
+
135
+ ### Example
136
+
137
+ ```typescript
138
+ import {
139
+ ReachIntegrationsApi,
140
+ Configuration
141
+ } from '@hostinger/sdk';
142
+
143
+ const configuration = new Configuration();
144
+ const apiInstance = new ReachIntegrationsApi(configuration);
145
+
146
+ let profileUuid: string; //Profile uuid parameter (default to undefined)
147
+ let storeId: string; //Hostinger eCommerce store ID, as returned by the eCommerce stores list (default to undefined)
148
+
149
+ const { status, data } = await apiInstance.disconnectEcommerceStoreV1(
150
+ profileUuid,
151
+ storeId
152
+ );
153
+ ```
154
+
155
+ ### Parameters
156
+
157
+ |Name | Type | Description | Notes|
158
+ |------------- | ------------- | ------------- | -------------|
159
+ | **profileUuid** | [**string**] | Profile uuid parameter | defaults to undefined|
160
+ | **storeId** | [**string**] | Hostinger eCommerce store ID, as returned by the eCommerce stores list | defaults to undefined|
161
+
162
+
163
+ ### Return type
164
+
165
+ **CommonSuccessEmptyResource**
166
+
167
+ ### Authorization
168
+
169
+ [apiToken](../README.md#apiToken)
170
+
171
+ ### HTTP request headers
172
+
173
+ - **Content-Type**: Not defined
174
+ - **Accept**: application/json
175
+
176
+
177
+ ### HTTP response details
178
+ | Status code | Description | Response headers |
179
+ |-------------|-------------|------------------|
180
+ |**200** | Success empty response | - |
181
+ |**401** | Unauthenticated response | - |
182
+ |**500** | Error response | - |
183
+
184
+ [[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)
185
+
186
+ # **disconnectWordPressSiteV1**
187
+ > CommonSuccessEmptyResource disconnectWordPressSiteV1(reachV1WebsitesWordPressDisconnectRequest)
188
+
189
+ Disconnect a WordPress site from the profile. The Reach plugin on the site stops sending subscribers and store data, and the site\'s products and coupons are removed from Reach; contacts and past orders stay. Take `domain` from the list connected websites endpoint. Fails with not found when the domain is not connected to this profile. This cannot be undone through the API - the customer reconnects from the WordPress plugin - so confirm the site and the plan with the customer before calling.
190
+
191
+ ### Example
192
+
193
+ ```typescript
194
+ import {
195
+ ReachIntegrationsApi,
196
+ Configuration,
197
+ ReachV1WebsitesWordPressDisconnectRequest
198
+ } from '@hostinger/sdk';
199
+
200
+ const configuration = new Configuration();
201
+ const apiInstance = new ReachIntegrationsApi(configuration);
202
+
203
+ let profileUuid: string; //Profile uuid parameter (default to undefined)
204
+ let reachV1WebsitesWordPressDisconnectRequest: ReachV1WebsitesWordPressDisconnectRequest; //
205
+
206
+ const { status, data } = await apiInstance.disconnectWordPressSiteV1(
207
+ profileUuid,
208
+ reachV1WebsitesWordPressDisconnectRequest
209
+ );
210
+ ```
211
+
212
+ ### Parameters
213
+
214
+ |Name | Type | Description | Notes|
215
+ |------------- | ------------- | ------------- | -------------|
216
+ | **reachV1WebsitesWordPressDisconnectRequest** | **ReachV1WebsitesWordPressDisconnectRequest**| | |
217
+ | **profileUuid** | [**string**] | Profile uuid parameter | defaults to undefined|
218
+
219
+
220
+ ### Return type
221
+
222
+ **CommonSuccessEmptyResource**
223
+
224
+ ### Authorization
225
+
226
+ [apiToken](../README.md#apiToken)
227
+
228
+ ### HTTP request headers
229
+
230
+ - **Content-Type**: application/json
231
+ - **Accept**: application/json
232
+
233
+
234
+ ### HTTP response details
235
+ | Status code | Description | Response headers |
236
+ |-------------|-------------|------------------|
237
+ |**200** | Success empty response | - |
238
+ |**422** | Validation error response | - |
239
+ |**401** | Unauthenticated response | - |
240
+ |**500** | Error response | - |
241
+
242
+ [[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)
243
+
244
+ # **listConnectedWebsitesV1**
245
+ > Array<ReachV1WebsitesWebsiteResource> listConnectedWebsitesV1()
246
+
247
+ Get the websites connected to the profile, each with its `domain` and `platform_type`. A domain is connected to at most one profile, so to find which plan a site is on, call this for each profile. Only connected sites are listed, not every website the customer owns, and eCommerce stores are not included - use the list eCommerce stores endpoint for those. Pass `domain` to the disconnect WordPress site or disconnect AI Website Builder site endpoint.
248
+
249
+ ### Example
250
+
251
+ ```typescript
252
+ import {
253
+ ReachIntegrationsApi,
254
+ Configuration
255
+ } from '@hostinger/sdk';
256
+
257
+ const configuration = new Configuration();
258
+ const apiInstance = new ReachIntegrationsApi(configuration);
259
+
260
+ let profileUuid: string; //Profile uuid parameter (default to undefined)
261
+
262
+ const { status, data } = await apiInstance.listConnectedWebsitesV1(
263
+ profileUuid
264
+ );
265
+ ```
266
+
267
+ ### Parameters
268
+
269
+ |Name | Type | Description | Notes|
270
+ |------------- | ------------- | ------------- | -------------|
271
+ | **profileUuid** | [**string**] | Profile uuid parameter | defaults to undefined|
272
+
273
+
274
+ ### Return type
275
+
276
+ **Array<ReachV1WebsitesWebsiteResource>**
277
+
278
+ ### Authorization
279
+
280
+ [apiToken](../README.md#apiToken)
281
+
282
+ ### HTTP request headers
283
+
284
+ - **Content-Type**: Not defined
285
+ - **Accept**: application/json
286
+
287
+
288
+ ### HTTP response details
289
+ | Status code | Description | Response headers |
290
+ |-------------|-------------|------------------|
291
+ |**200** | Success response | - |
292
+ |**401** | Unauthenticated response | - |
293
+ |**500** | Error response | - |
294
+
295
+ [[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)
296
+
297
+ # **listEcommerceStoresV1**
298
+ > Array<ReachV1StoresStoreResource> listEcommerceStoresV1()
299
+
300
+ Get all of the customer\'s Hostinger eCommerce stores, each with its `store_id` and `connection_status` for the profile in the path. A store is connected to at most one profile. `connected_to_other_profile` does not name that profile - call this for each profile to find it. The list is empty, not an error, when the eCommerce service cannot be reached. Pass `store_id` to the disconnect eCommerce store endpoint. Connecting an AI Website Builder site connects the store selling on it.
301
+
302
+ ### Example
303
+
304
+ ```typescript
305
+ import {
306
+ ReachIntegrationsApi,
307
+ Configuration
308
+ } from '@hostinger/sdk';
309
+
310
+ const configuration = new Configuration();
311
+ const apiInstance = new ReachIntegrationsApi(configuration);
312
+
313
+ let profileUuid: string; //Profile uuid parameter (default to undefined)
314
+
315
+ const { status, data } = await apiInstance.listEcommerceStoresV1(
316
+ profileUuid
317
+ );
318
+ ```
319
+
320
+ ### Parameters
321
+
322
+ |Name | Type | Description | Notes|
323
+ |------------- | ------------- | ------------- | -------------|
324
+ | **profileUuid** | [**string**] | Profile uuid parameter | defaults to undefined|
325
+
326
+
327
+ ### Return type
328
+
329
+ **Array<ReachV1StoresStoreResource>**
330
+
331
+ ### Authorization
332
+
333
+ [apiToken](../README.md#apiToken)
334
+
335
+ ### HTTP request headers
336
+
337
+ - **Content-Type**: Not defined
338
+ - **Accept**: application/json
339
+
340
+
341
+ ### HTTP response details
342
+ | Status code | Description | Response headers |
343
+ |-------------|-------------|------------------|
344
+ |**200** | Success response | - |
345
+ |**401** | Unauthenticated response | - |
346
+ |**500** | Error response | - |
347
+
348
+ [[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)
349
+
@@ -5,6 +5,7 @@ All URIs are relative to *https://developers.hostinger.com*
5
5
  |Method | HTTP request | Description|
6
6
  |------------- | ------------- | -------------|
7
7
  |[**createAnEmailTemplateV1**](#createanemailtemplatev1) | **POST** /api/reach/v1/profiles/{profileUuid}/templates | Create an email template|
8
+ |[**getEmailTemplateV1**](#getemailtemplatev1) | **GET** /api/reach/v1/profiles/{profileUuid}/templates/{templateUuid} | Get email template|
8
9
  |[**listEmailTemplatesV1**](#listemailtemplatesv1) | **GET** /api/reach/v1/profiles/{profileUuid}/templates | List email templates|
9
10
 
10
11
  # **createAnEmailTemplateV1**
@@ -65,10 +66,66 @@ const { status, data } = await apiInstance.createAnEmailTemplateV1(
65
66
 
66
67
  [[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
 
69
+ # **getEmailTemplateV1**
70
+ > ReachV1TemplatesTemplateDetailsResource getEmailTemplateV1()
71
+
72
+ Get one email template of the profile with its full HTML in `template_content`. A campaign\'s email content is its template: to read what a campaign sends, get the campaign and pass its `template_uuid` here. The HTML can be large, so fetch it only when the content itself is needed, never to browse or pick templates - the list email templates endpoint does that without content. Personalization tags such as `{{name}}` come back unrendered.
73
+
74
+ ### Example
75
+
76
+ ```typescript
77
+ import {
78
+ ReachTemplatesApi,
79
+ Configuration
80
+ } from '@hostinger/sdk';
81
+
82
+ const configuration = new Configuration();
83
+ const apiInstance = new ReachTemplatesApi(configuration);
84
+
85
+ let profileUuid: string; //Profile uuid parameter (default to undefined)
86
+ let templateUuid: string; //Template uuid parameter (default to undefined)
87
+
88
+ const { status, data } = await apiInstance.getEmailTemplateV1(
89
+ profileUuid,
90
+ templateUuid
91
+ );
92
+ ```
93
+
94
+ ### Parameters
95
+
96
+ |Name | Type | Description | Notes|
97
+ |------------- | ------------- | ------------- | -------------|
98
+ | **profileUuid** | [**string**] | Profile uuid parameter | defaults to undefined|
99
+ | **templateUuid** | [**string**] | Template uuid parameter | defaults to undefined|
100
+
101
+
102
+ ### Return type
103
+
104
+ **ReachV1TemplatesTemplateDetailsResource**
105
+
106
+ ### Authorization
107
+
108
+ [apiToken](../README.md#apiToken)
109
+
110
+ ### HTTP request headers
111
+
112
+ - **Content-Type**: Not defined
113
+ - **Accept**: application/json
114
+
115
+
116
+ ### HTTP response details
117
+ | Status code | Description | Response headers |
118
+ |-------------|-------------|------------------|
119
+ |**200** | Success response | - |
120
+ |**401** | Unauthenticated response | - |
121
+ |**500** | Error response | - |
122
+
123
+ [[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)
124
+
68
125
  # **listEmailTemplatesV1**
69
126
  > Array<ReachV1TemplatesTemplateResource> listEmailTemplatesV1()
70
127
 
71
- Get a list of the email templates in a profile, most recently updated first. Templates are the reusable email bodies a campaign is built from. The list is not paginated and only the metadata is returned - the template content itself is not exposed. Use the `uuid` of a template as the `template_uuid` when creating a campaign.
128
+ Get a list of the email templates in a profile, most recently updated first. Templates are the reusable email bodies a campaign is built from. The list is not paginated and only the metadata is returned, without the HTML content. Use the `uuid` of a template as the `template_uuid` when creating a campaign. To read one template\'s HTML use the get email template endpoint, and only when the content itself is needed.
72
129
 
73
130
  ### Example
74
131
 
@@ -0,0 +1,32 @@
1
+ # ReachV1StoresStoreResource
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **store_id** | **string** | Pass this to the disconnect eCommerce store endpoint. | [optional] [default to undefined]
9
+ **business_name** | **string** | | [optional] [default to undefined]
10
+ **domain** | **string** | | [optional] [default to undefined]
11
+ **logo_url** | **string** | | [optional] [default to undefined]
12
+ **version** | **string** | | [optional] [default to undefined]
13
+ **sales_channels** | [**Array&lt;ReachV1StoresStoreResourceSalesChannelsInner&gt;**](ReachV1StoresStoreResourceSalesChannelsInner.md) | Storefronts of the store. | [optional] [default to undefined]
14
+ **connection_status** | **string** | &#x60;connected&#x60; to the profile in the path, &#x60;connected_to_other_profile&#x60; when another profile of the account holds it, or &#x60;not_connected&#x60;. | [optional] [default to undefined]
15
+
16
+ ## Example
17
+
18
+ ```typescript
19
+ import { ReachV1StoresStoreResource } from '@hostinger/sdk';
20
+
21
+ const instance: ReachV1StoresStoreResource = {
22
+ store_id,
23
+ business_name,
24
+ domain,
25
+ logo_url,
26
+ version,
27
+ sales_channels,
28
+ connection_status,
29
+ };
30
+ ```
31
+
32
+ [[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,26 @@
1
+ # ReachV1StoresStoreResourceSalesChannelsInner
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **id** | **string** | | [optional] [default to undefined]
9
+ **name** | **string** | | [optional] [default to undefined]
10
+ **type** | **string** | | [optional] [default to undefined]
11
+ **domain** | **string** | | [optional] [default to undefined]
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import { ReachV1StoresStoreResourceSalesChannelsInner } from '@hostinger/sdk';
17
+
18
+ const instance: ReachV1StoresStoreResourceSalesChannelsInner = {
19
+ id,
20
+ name,
21
+ type,
22
+ domain,
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
+ # ReachV1TemplatesTemplateDetailsResource
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **uuid** | **string** | Pass this as the &#x60;template_uuid&#x60; of a campaign. | [optional] [default to undefined]
9
+ **title** | **string** | Null for templates that were never named. | [optional] [default to undefined]
10
+ **template_content** | **string** | Full HTML of the template, with personalization tags such as &#x60;{{name}}&#x60; unrendered. Null when the stored HTML cannot be read. | [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 { ReachV1TemplatesTemplateDetailsResource } from '@hostinger/sdk';
18
+
19
+ const instance: ReachV1TemplatesTemplateDetailsResource = {
20
+ uuid,
21
+ title,
22
+ template_content,
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,21 @@
1
+ # ReachV1WebsitesWebsiteBuilderConnectRequest
2
+
3
+ AI Website Builder site to connect to the profile
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **domain** | **string** | | [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { ReachV1WebsitesWebsiteBuilderConnectRequest } from '@hostinger/sdk';
15
+
16
+ const instance: ReachV1WebsitesWebsiteBuilderConnectRequest = {
17
+ domain,
18
+ };
19
+ ```
20
+
21
+ [[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,21 @@
1
+ # ReachV1WebsitesWebsiteBuilderDisconnectRequest
2
+
3
+ AI Website Builder site to disconnect from the profile
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **domain** | **string** | | [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { ReachV1WebsitesWebsiteBuilderDisconnectRequest } from '@hostinger/sdk';
15
+
16
+ const instance: ReachV1WebsitesWebsiteBuilderDisconnectRequest = {
17
+ domain,
18
+ };
19
+ ```
20
+
21
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)