mailgun.js 12.3.0 → 12.3.1

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,4 +1,4 @@
1
- // mailgun.js v12.2.0 Copyright (c) 2025 Mailgun and contributors
1
+ // mailgun.js v12.3.0 Copyright (c) 2025 Mailgun and contributors
2
2
  define(['exports'], (function (exports) { 'use strict';
3
3
 
4
4
  var Resolution;
package/CHANGELOG.md CHANGED
@@ -2,6 +2,19 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [12.3.1](https://github.com/mailgun/mailgun.js/compare/v12.3.0...v12.3.1) (2025-12-03)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * **deps:** bump js-yaml ([24ac7ea](https://github.com/mailgun/mailgun.js/commits/24ac7ead7725a13dd14b978701264178d4d3caa1))
11
+
12
+
13
+ ### Other changes
14
+
15
+ * Fix links in readme ([1d209a9](https://github.com/mailgun/mailgun.js/commits/1d209a9df893678de342b19abd0b6b291fcbf995))
16
+ * Update incorrect create link in readme ([bf6fd50](https://github.com/mailgun/mailgun.js/commits/bf6fd502f8660a29445a0d94ea99713a3ab60f50))
17
+
5
18
  ## [12.3.0](https://github.com/mailgun/mailgun.js/compare/v12.2.0...v12.3.0) (2025-12-01)
6
19
 
7
20
 
@@ -1,4 +1,4 @@
1
- // mailgun.js v12.2.0 Copyright (c) 2025 Mailgun and contributors
1
+ // mailgun.js v12.3.0 Copyright (c) 2025 Mailgun and contributors
2
2
  'use strict';
3
3
 
4
4
  var Resolution;
@@ -1,4 +1,4 @@
1
- // mailgun.js v12.2.0 Copyright (c) 2025 Mailgun and contributors
1
+ // mailgun.js v12.3.0 Copyright (c) 2025 Mailgun and contributors
2
2
  var Resolution;
3
3
  (function (Resolution) {
4
4
  Resolution["HOUR"] = "hour";
@@ -1,4 +1,4 @@
1
- // mailgun.js v12.2.0 Copyright (c) 2025 Mailgun and contributors
1
+ // mailgun.js v12.3.0 Copyright (c) 2025 Mailgun and contributors
2
2
  var Resolution;
3
3
  (function (Resolution) {
4
4
  Resolution["HOUR"] = "hour";
package/README.md CHANGED
@@ -27,7 +27,7 @@ __Table of Contents__
27
27
  - [Release Process](#release-process)
28
28
 
29
29
  # Documentation
30
- [Mailgun API Documentation](https://documentation.mailgun.com/en/latest/api_reference.html):
30
+ [Mailgun API Documentation](https://documentation.mailgun.com/docs/mailgun/api-reference/api-overview)
31
31
 
32
32
  ## Install
33
33
 
@@ -35,7 +35,7 @@ __Table of Contents__
35
35
 
36
36
  Install mailgun.js with:
37
37
 
38
- ```sh
38
+ ```SH
39
39
  npm install mailgun.js
40
40
  ```
41
41
 
@@ -45,7 +45,7 @@ The next step is to import the module and instantiate a mailgun client by callin
45
45
 
46
46
  NOTE: starting from version 3.0 you need to pass FormData (we need this to keep library universal). For node.js you can use built-in FormData or `form-data` library.
47
47
 
48
- **IMPORTANT**: if you are using EU infrastructure, you need to also pass `url: 'https://api.eu.mailgun.net'` together with auth credentials as stated in [Mailgun docs](https://documentation.mailgun.com/en/latest/quickstart-sending.html#send-via-api)
48
+ **IMPORTANT**: if you use EU infrastructure, you need to also pass `url: 'https://api.eu.mailgun.net'` together with auth credentials as stated in [Mailgun docs](https://documentation.mailgun.com/docs/mailgun/api-reference/api-overview#base-url)
49
49
 
50
50
  ### Imports
51
51
  Once the package is installed, you can import the library using `import` or `require` approach:
@@ -186,7 +186,7 @@ Example:
186
186
 
187
187
 
188
188
  ### SubAccounts Usage
189
- Primary accounts can make API calls on behalf of their subaccounts. [API documentation](https://documentation.mailgun.com/en/latest/subaccounts.html#subaccounts)
189
+ Primary accounts can make API calls on behalf of their subaccounts. [API documentation](https://documentation.mailgun.com/docs/mailgun/api-reference/send/mailgun/subaccounts)
190
190
  ```js
191
191
  import Mailgun from 'mailgun.js';
192
192
  const mailgun = new Mailgun(FormData); // or import FormData from 'form-data'
@@ -374,8 +374,9 @@ The following service methods are available to instantiated clients. The example
374
374
  ### Messages
375
375
 
376
376
  - #### create
377
+ [API Reference](https://documentation.mailgun.com/docs/mailgun/api-reference/send/mailgun/messages/post-v3--domain-name--messages)
377
378
 
378
- `mg.messages.create(domain, data)` - [api docs](https://documentation.mailgun.com/docs/mailgun/api-reference/send/mailgun/messages/post-v3--domain-name--messages)
379
+ `mg.messages.create(domain, data)`
379
380
 
380
381
  Options:
381
382
 
@@ -553,7 +554,7 @@ The following service methods are available to instantiated clients. The example
553
554
  ```
554
555
 
555
556
  - #### retrieveStoredEmail
556
- [Link to api doc](https://documentation.mailgun.com/docs/mailgun/api-reference/send/mailgun/messages/get-v3-domains--domain-name--messages--storage-key-)
557
+ [API Reference](https://documentation.mailgun.com/docs/mailgun/api-reference/send/mailgun/messages/get-v3-domains--domain-name--messages--storage-key-)
557
558
 
558
559
  `mg.messages.retrieveStoredEmail(domain, storageKey)`
559
560
 
@@ -610,7 +611,7 @@ The following service methods are available to instantiated clients. The example
610
611
  ```
611
612
 
612
613
  - ### resendEmail
613
- [Link to api doc](https://documentation.mailgun.com/docs/mailgun/api-reference/send/mailgun/messages/post-v3-domains--domain-name--messages--storage-key-)
614
+ [API Reference](https://documentation.mailgun.com/docs/mailgun/api-reference/send/mailgun/messages/post-v3-domains--domain-name--messages--storage-key-)
614
615
 
615
616
  `mg.messages.resendEmail(domain, storageKey, recipient)`
616
617
 
@@ -642,7 +643,7 @@ The following service methods are available to instantiated clients. The example
642
643
  ```
643
644
 
644
645
  - ### getMessagesQueueStatus
645
- [Link to api doc](https://documentation.mailgun.com/docs/mailgun/api-reference/send/mailgun/messages/get-v3-domains--name--sending-queues)
646
+ [API Reference](https://documentation.mailgun.com/docs/mailgun/api-reference/send/mailgun/messages/get-v3-domains--name--sending-queues)
646
647
 
647
648
  `mg.messages.getMessagesQueueStatus(domain)`
648
649
 
@@ -678,7 +679,7 @@ The following service methods are available to instantiated clients. The example
678
679
  - ### clearMessagesQueue
679
680
  Deletes all scheduled and undelivered mail from the domain queue.
680
681
 
681
- [Link to api doc](https://documentation.mailgun.com/docs/mailgun/api-reference/send/mailgun/messages/delete-v3--domain-name--envelopes)
682
+ [API Reference](https://documentation.mailgun.com/docs/mailgun/api-reference/send/mailgun/messages/delete-v3--domain-name--envelopes)
682
683
 
683
684
  `mg.messages.getMessagesQueueStatus(domain, storageUrl)`
684
685
 
@@ -703,19 +704,19 @@ The following service methods are available to instantiated clients. The example
703
704
 
704
705
  Mailgun’s templates uses a fork of the very popular template engine [handlebars](https://handlebarsjs.com/).
705
706
 
706
- To provide values for a substitution you need to use 'h:X-Mailgun-Variables' property in the message description.
707
+ To provide values for a substitution you need to use `h:X-Mailgun-Variables` property in the message description.
707
708
 
708
709
  Make sure that this property is a JSON string like:
709
- ```js
710
- JSON.stringify({
711
- "title": "A title",
712
- "body": "The body"
713
- })
710
+ ```JS
711
+ JSON.stringify({
712
+ title: "A title",
713
+ body: "The body"
714
+ })
714
715
  ```
715
716
 
716
717
  You can find few examples of how to use templates below.
717
718
  - Providing values for **title** and **slug** variables to render in template
718
- ```js
719
+ ```JS
719
720
  ...
720
721
  const {
721
722
  title,
@@ -766,7 +767,7 @@ The following service methods are available to instantiated clients. The example
766
767
 
767
768
  ### Recipient Variables
768
769
 
769
- [Docs](https://documentation.mailgun.com/en/latest/user_manual.html#batch-sending)
770
+ [API Reference](https://documentation.mailgun.com/docs/mailgun/api-reference/send/mailgun/messages/post-v3--domain-name--messages)
770
771
 
771
772
  Recipient Variables are custom variables that you define, which you can then reference in the message body. They give you the ability to send a custom message to each recipient while still using a single API Call.
772
773
 
@@ -799,14 +800,17 @@ The following service methods are available to instantiated clients. The example
799
800
 
800
801
  - #### list
801
802
  Get the list of domains. Can be filtered by state or authority. Sorting is optional. The list is paginated and limited to 1000 items per page.
802
- `mg.domains.list(query)` - [api docs](https://documentation.mailgun.com/docs/mailgun/api-reference/openapi-final/tag/Domains/#tag/Domains/operation/GET-v4-domains)
803
+
804
+ [API Reference](https://documentation.mailgun.com/docs/mailgun/api-reference/send/mailgun/domains/get-v4-domains)
805
+
806
+ `mg.domains.list(query)`
803
807
 
804
808
  Example:
805
809
 
806
- ```js
807
- mg.domains.list()
808
- .then(domains => console.log(domains)) // logs array of domains
809
- .catch(err => console.error(err)); // logs any error
810
+ ```JS
811
+ mg.domains.list()
812
+ .then(domains => console.log(domains)) // logs array of domains
813
+ .catch(err => console.error(err)); // logs any error
810
814
  ```
811
815
 
812
816
  Promise returns: array of Domain instances
@@ -847,7 +851,9 @@ The following service methods are available to instantiated clients. The example
847
851
  - #### get
848
852
  Fetches representation of a domain that includes details about the domain's state and settings.
849
853
 
850
- `mg.domains.get(domain, query)` - [api docs](https://documentation.mailgun.com/docs/mailgun/api-reference/openapi-final/tag/Domains/#tag/Domains/operation/GET-v4-domains--name-)
854
+ [API Reference](https://documentation.mailgun.com/docs/mailgun/api-reference/send/mailgun/domains/get-v4-domains--name-)
855
+
856
+ `mg.domains.get(domain, query)`
851
857
 
852
858
  Example:
853
859
 
@@ -915,7 +921,9 @@ The following service methods are available to instantiated clients. The example
915
921
  - #### create
916
922
  Creates a domain for sending emails
917
923
 
918
- `mg.domains.create(data)` [api docs](https://documentation.mailgun.com/docs/mailgun/api-reference/openapi-final/tag/Domains/#tag/Domains/operation/POST-v4-domains)
924
+ [API Reference](https://documentation.mailgun.com/docs/mailgun/api-reference/send/mailgun/domains/post-v4-domains)
925
+
926
+ `mg.domains.create(data)`
919
927
 
920
928
  Example:
921
929
 
@@ -1007,7 +1015,9 @@ The following service methods are available to instantiated clients. The example
1007
1015
  - #### verify
1008
1016
  Verify the domains DNS records (includes A, CNAME, SPF, DKIM and MX records) to ensure the domain is ready and able to send
1009
1017
 
1010
- `mg.domains.verify(domainAddress)` [api docs](https://documentation.mailgun.com/docs/mailgun/api-reference/openapi-final/tag/Domains/#tag/Domains/operation/PUT-v4-domains--name--verify)
1018
+ [API Reference](https://documentation.mailgun.com/docs/mailgun/api-reference/send/mailgun/domains/put-v4-domains--name--verify)
1019
+
1020
+ `mg.domains.verify(domainAddress)`
1011
1021
 
1012
1022
  Example:
1013
1023
 
@@ -1065,7 +1075,9 @@ The following service methods are available to instantiated clients. The example
1065
1075
  - #### update
1066
1076
  Update domains configuration like smtp credentials, enable/disable automatic sender security, spam actions, wildcard, or tracking web scheme.
1067
1077
 
1068
- `mg.domains.update(domain, options)` [api docs](https://documentation.mailgun.com/docs/mailgun/api-reference/openapi-final/tag/Domains/#tag/Domains/operation/PUT-v4-domains--name-)
1078
+ [API Reference](https://documentation.mailgun.com/docs/mailgun/api-reference/send/mailgun/domains/put-v4-domains--name-)
1079
+
1080
+ `mg.domains.update(domain, options)`
1069
1081
 
1070
1082
  Example:
1071
1083
 
@@ -1145,7 +1157,10 @@ The following service methods are available to instantiated clients. The example
1145
1157
 
1146
1158
  - #### destroy
1147
1159
  The domain must not be disabled or used as an authority for an other domain. Sandbox domain can't be deleted.
1148
- `mg.domains.destroy(domainAddress)` [api docs](https://documentation.mailgun.com/docs/mailgun/api-reference/openapi-final/tag/Domains/#tag/Domains/operation/DELETE-v3-domains--name-)
1160
+
1161
+ [API Reference](https://documentation.mailgun.com/docs/mailgun/api-reference/send/mailgun/domains/delete-v3-domains--name-)
1162
+
1163
+ `mg.domains.destroy(domainAddress)`
1149
1164
 
1150
1165
  Example:
1151
1166
 
@@ -1170,9 +1185,13 @@ The following service methods are available to instantiated clients. The example
1170
1185
  `domains.updateTracking` method is deprecated, and will be removed. Please use `domains.domainTracking.updateTracking` instead.
1171
1186
 
1172
1187
  - #### getConnection
1188
+ ***Deprecated, and will be removed in the future releases***
1189
+
1173
1190
  Returns domain's delivery connection settings.
1174
1191
 
1175
- `mg.domains.getConnection(domainAddress)` [api docs](https://documentation.mailgun.com/docs/mailgun/api-reference/openapi-final/tag/Domain-Connection/#tag/Domain-Connection/operation/GET-v3-domains--name--connection)
1192
+ [API Reference](https://mailgun-docs.redoc.ly/docs/mailgun/api-reference/domain/operation/httpapi.(*T).GetDomainConnection-fm-14-0/)
1193
+
1194
+ `mg.domains.getConnection(domainAddress)`
1176
1195
 
1177
1196
  Example:
1178
1197
 
@@ -1192,9 +1211,13 @@ The following service methods are available to instantiated clients. The example
1192
1211
  ```
1193
1212
 
1194
1213
  - #### updateConnection
1214
+ ***Deprecated, and will be removed in the future releases***
1215
+
1195
1216
  Update a domain's TLS connection settings.
1196
1217
 
1197
- `mg.domains.updateConnection(domainAddress, data)` [api docs](https://documentation.mailgun.com/docs/mailgun/api-reference/openapi-final/tag/Domain-Connection/#tag/Domain-Connection/operation/PUT-v3-domains--name--connection)
1218
+ [API Reference](https://mailgun-docs.redoc.ly/docs/mailgun/api-reference/domain/operation/httpapi.(*T).UpdateDomainConnection-fm-15-0/)
1219
+
1220
+ `mg.domains.updateConnection(domainAddress, data)`
1198
1221
 
1199
1222
  Example:
1200
1223
 
@@ -1218,13 +1241,13 @@ The following service methods are available to instantiated clients. The example
1218
1241
  ```
1219
1242
 
1220
1243
  - #### updateDKIMAuthority
1221
- `domains.updateDKIMAuthority` method is deprecated, and will be removed. Please use `domains.domainKeys.updateDKIMAuthority` instead.
1244
+ `domains.updateDKIMAuthority` method is deprecated, and will be removed. Please use `domains.domainKeys.updateDKIMAuthority` [instead](#updatedkimauthority-1).
1222
1245
 
1223
1246
  - #### updateDKIMSelector
1224
- `domains.updateDKIMSelector` method is deprecated, and will be removed. Please use `domains.domainKeys.updateDKIMSelector` instead.
1247
+ `domains.updateDKIMSelector` method is deprecated, and will be removed. Please use `domains.domainKeys.updateDKIMSelector` [instead](#updatedkimselector-1).
1225
1248
 
1226
1249
  - #### getIps
1227
- **Deprecated, and will be removed in the future releases**
1250
+ ***Deprecated, and will be removed in the future releases***
1228
1251
 
1229
1252
  `mg.domains.getIps(domain)`
1230
1253
 
@@ -1243,7 +1266,7 @@ The following service methods are available to instantiated clients. The example
1243
1266
  ```
1244
1267
 
1245
1268
  - #### assignIp
1246
- **Deprecated, and will be removed in the future releases**
1269
+ ***Deprecated, and will be removed in the future releases***
1247
1270
  `mg.domains.assignIp(domain, ip)`
1248
1271
 
1249
1272
  Example:
@@ -1285,7 +1308,9 @@ The following service methods are available to instantiated clients. The example
1285
1308
  - #### list
1286
1309
  Returns a list of templates for the domain.
1287
1310
 
1288
- `mg.domains.domainTemplates.list('domainId', query)` - [api docs](https://documentation.mailgun.com/docs/mailgun/api-reference/openapi-final/tag/Templates/#tag/Templates/operation/httpapi.(*TemplateAPIControler).GetPage-fm-9)
1311
+ [API Reference](https://documentation.mailgun.com/docs/mailgun/api-reference/send/mailgun/templates/get-v3--domain-name--templates)
1312
+
1313
+ `mg.domains.domainTemplates.list('domainId', query)`
1289
1314
 
1290
1315
  Example:
1291
1316
 
@@ -1324,7 +1349,9 @@ The following service methods are available to instantiated clients. The example
1324
1349
 
1325
1350
  Returns metadata information about the stored template specified in the url. If the active flag is provided, the content of the active version of the template is returned.
1326
1351
 
1327
- `mg.domains.domainTemplates.get('domainId', 'templateName', query)` [api docs](https://documentation.mailgun.com/docs/mailgun/api-reference/openapi-final/tag/Templates/#tag/Templates/operation/httpapi.(*TemplateAPIControler).Get-fm-6)
1352
+ [API Reference](https://documentation.mailgun.com/docs/mailgun/api-reference/send/mailgun/templates/get-v3--domain-name--templates--template-name-)
1353
+
1354
+ `mg.domains.domainTemplates.get('domainId', 'templateName', query)`
1328
1355
 
1329
1356
  Example:
1330
1357
 
@@ -1369,7 +1396,9 @@ The following service methods are available to instantiated clients. The example
1369
1396
  Store a new template, including its name, description and (optionally) the template content.
1370
1397
  If the template content is provided, a new version is automatically created and becomes the active version.
1371
1398
 
1372
- `mg.domains.domainTemplates.create(domainId, templateData)` [api docs](https://documentation.mailgun.com/docs/mailgun/api-reference/openapi-final/tag/Templates/#tag/Templates/operation/httpapi.(*TemplateAPIControler).Post-fm-4)
1399
+ [API Reference](https://documentation.mailgun.com/docs/mailgun/api-reference/send/mailgun/templates/post-v3--domain-name--templates)
1400
+
1401
+ `mg.domains.domainTemplates.create(domainId, templateData)`
1373
1402
 
1374
1403
  Example:
1375
1404
 
@@ -1428,7 +1457,9 @@ The following service methods are available to instantiated clients. The example
1428
1457
  - #### update
1429
1458
  Update the description of a template.
1430
1459
 
1431
- `mg.domains.domainTemplates.update('domainId', 'templateName', data)` [api docs](https://documentation.mailgun.com/docs/mailgun/api-reference/openapi-final/tag/Templates/#tag/Templates/operation/httpapi.(*TemplateAPIControler).Put-fm-12)
1460
+ [API Reference](https://documentation.mailgun.com/docs/mailgun/api-reference/send/mailgun/templates/put-v3--domain-name--templates--template-name-)
1461
+
1462
+ `mg.domains.domainTemplates.update('domainId', 'templateName', data)`
1432
1463
 
1433
1464
  Example:
1434
1465
 
@@ -1457,7 +1488,9 @@ The following service methods are available to instantiated clients. The example
1457
1488
  - #### destroy
1458
1489
  Delete the template specified in the url. NOTE: This method deletes all versions of the specified template.
1459
1490
 
1460
- `mg.domains.domainTemplates.destroy('domainId', 'templateName')` [api docs](https://documentation.mailgun.com/docs/mailgun/api-reference/openapi-final/tag/Templates/#tag/Templates/operation/httpapi.(*TemplateAPIControler).Delete-fm-13)
1491
+ [API Reference](https://documentation.mailgun.com/docs/mailgun/api-reference/send/mailgun/templates/delete-v3--domain-name--templates--template-name-)
1492
+
1493
+ `mg.domains.domainTemplates.destroy('domainId', 'templateName')`
1461
1494
 
1462
1495
  Example:
1463
1496
 
@@ -1479,7 +1512,9 @@ The following service methods are available to instantiated clients. The example
1479
1512
  - #### destroyAll
1480
1513
  Delete all templates and their versions for the domain.
1481
1514
 
1482
- `mg.domains.domainTemplates.destroyAll('domainId')` [api docs](https://documentation.mailgun.com/docs/mailgun/api-reference/openapi-final/tag/Templates/#tag/Templates/operation/httpapi.(*TemplateAPIControler).DeleteAll-fm-15)
1515
+ [API Reference](https://documentation.mailgun.com/docs/mailgun/api-reference/send/mailgun/templates/delete-v3--domain-name--templates)
1516
+
1517
+ `mg.domains.domainTemplates.destroyAll('domainId')`
1483
1518
 
1484
1519
  Example:
1485
1520
 
@@ -1500,7 +1535,9 @@ The following service methods are available to instantiated clients. The example
1500
1535
  - #### listVersions
1501
1536
  Returns a paginated list of template versions.
1502
1537
 
1503
- `mg.domains.domainTemplates.listVersions('domainId', 'template_name', queryData)` [api docs](https://documentation.mailgun.com/docs/mailgun/api-reference/openapi-final/tag/Templates/#tag/Templates/operation/httpapi.(*TemplateAPIControler).GetVersionsPage-fm-8)
1538
+ [API Reference](https://documentation.mailgun.com/docs/mailgun/api-reference/send/mailgun/templates/get-v3--domain-name--templates--template-name--versions)
1539
+
1540
+ `mg.domains.domainTemplates.listVersions('domainId', 'template_name', queryData)`
1504
1541
 
1505
1542
  Example:
1506
1543
 
@@ -1547,7 +1584,9 @@ The following service methods are available to instantiated clients. The example
1547
1584
 
1548
1585
  Retrieve the information and content of the specified version of a template.
1549
1586
 
1550
- `mg.domains.domainTemplates.getVersion('domainId', 'template_name', 'tag')` [api docs](https://documentation.mailgun.com/docs/mailgun/api-reference/openapi-final/tag/Templates/#tag/Templates/operation/httpapi.(*TemplateAPIControler).GetVersion-fm-7)
1587
+ [API Reference](https://documentation.mailgun.com/docs/mailgun/api-reference/send/mailgun/templates/get-v3--domain-name--templates--template-name--versions--version-name-)
1588
+
1589
+ `mg.domains.domainTemplates.getVersion('domainId', 'template_name', 'tag')`
1551
1590
 
1552
1591
  Example:
1553
1592
 
@@ -1588,7 +1627,9 @@ The following service methods are available to instantiated clients. The example
1588
1627
  - #### createVersion
1589
1628
  Adds a new template version. If the template doesn’t contain any other versions, the first version becomes active. A template can store up to 40 versions.
1590
1629
 
1591
- `mg.domains.domainTemplates.createVersion('domainId', 'template_name', versionData)` [api docs](https://documentation.mailgun.com/docs/mailgun/api-reference/openapi-final/tag/Templates/#tag/Templates/operation/httpapi.(*TemplateAPIControler).PostVersion-fm-5)
1630
+ [API Reference](https://documentation.mailgun.com/docs/mailgun/api-reference/send/mailgun/templates/post-v3--domain-name--templates--template-name--versions)
1631
+
1632
+ `mg.domains.domainTemplates.createVersion('domainId', 'template_name', versionData)`
1592
1633
 
1593
1634
  Example:
1594
1635
 
@@ -1650,7 +1691,9 @@ The following service methods are available to instantiated clients. The example
1650
1691
  Update information or content of the specific template version.
1651
1692
  Existing fields not included in the request will not be changed
1652
1693
 
1653
- `mg.domains.domainTemplates.updateVersion('domainId', 'template_name', 'tag' , versionData)` [api docs](https://documentation.mailgun.com/docs/mailgun/api-reference/openapi-final/tag/Templates/#tag/Templates/operation/httpapi.(*TemplateAPIControler).PutVersion-fm-11)
1694
+ [API Reference](https://documentation.mailgun.com/docs/mailgun/api-reference/send/mailgun/templates/put-v3--domain-name--templates--template-name--versions--version-name-)
1695
+
1696
+ `mg.domains.domainTemplates.updateVersion('domainId', 'template_name', 'tag' , versionData)`
1654
1697
 
1655
1698
  Example:
1656
1699
 
@@ -1695,7 +1738,9 @@ The following service methods are available to instantiated clients. The example
1695
1738
  - #### destroyVersion
1696
1739
  Delete a specific template version.
1697
1740
 
1698
- `mg.domains.domainTemplates.destroyVersion('domainId', 'template_name', 'tag' )` [api docs](https://documentation.mailgun.com/docs/mailgun/api-reference/openapi-final/tag/Templates/#tag/Templates/operation/httpapi.(*TemplateAPIControler).DeleteVersion-fm-14)
1741
+ [API Reference](https://documentation.mailgun.com/docs/mailgun/api-reference/send/mailgun/templates/delete-v3--domain-name--templates--template-name--versions--version-name-)
1742
+
1743
+ `mg.domains.domainTemplates.destroyVersion(domainId, templateName, tag)`
1699
1744
 
1700
1745
  Example:
1701
1746
 
@@ -1710,7 +1755,9 @@ The following service methods are available to instantiated clients. The example
1710
1755
  status: 200,
1711
1756
  message: 'version has been deleted',
1712
1757
  templateName: 'template_name',
1713
- templateVersion: { tag: 'v1' }
1758
+ templateVersion: {
1759
+ tag:'v1'
1760
+ }
1714
1761
  }
1715
1762
  ```
1716
1763
 
@@ -1720,7 +1767,9 @@ The following service methods are available to instantiated clients. The example
1720
1767
 
1721
1768
  Mailgun offers tracking for clicks, unsubscribes, and opens, with optional HTTPS protocol support on tracking URLs. To enable HTTPS, Mailgun uses Let’s Encrypt with HTTP-01 challenges through your existing tracking CNAME record to issue a TLS certificate. This setup also includes support for HTTP Strict Transport Security (HSTS) for enhanced security.
1722
1769
 
1723
- `mg.domains.domainTracking.getTracking(domainAddress)` [api docs](https://documentation.mailgun.com/docs/mailgun/api-reference/openapi-final/tag/Domain-Tracking/#tag/Domain-Tracking)
1770
+ [API Reference](https://documentation.mailgun.com/docs/mailgun/api-reference/send/mailgun/domain-tracking/get-v3-domains--name--tracking)
1771
+
1772
+ `mg.domains.domainTracking.getTracking(domainAddress)`
1724
1773
 
1725
1774
  Example:
1726
1775
 
@@ -1756,7 +1805,8 @@ The following service methods are available to instantiated clients. The example
1756
1805
 
1757
1806
  - Open Tracking Example:
1758
1807
 
1759
- [api docs](https://documentation.mailgun.com/docs/mailgun/api-reference/openapi-final/tag/Domain-Tracking/#tag/Domain-Tracking/operation/PUT-v3-domains--name--tracking-open)
1808
+ [API Reference](https://documentation.mailgun.com/docs/mailgun/api-reference/send/mailgun/domain-tracking/put-v3-domains--name--tracking-open)
1809
+
1760
1810
  ```js
1761
1811
  mg.domains.domainTracking.updateTracking('foobar.example.com', 'open', {
1762
1812
  active: true,
@@ -1787,7 +1837,7 @@ The following service methods are available to instantiated clients. The example
1787
1837
 
1788
1838
  - Click Tracking Example:
1789
1839
 
1790
- [api docs](https://documentation.mailgun.com/docs/mailgun/api-reference/openapi-final/tag/Domain-Tracking/#tag/Domain-Tracking/operation/PUT-v3-domains--name--tracking-click)
1840
+ [API Reference](https://documentation.mailgun.com/docs/mailgun/api-reference/send/mailgun/domain-tracking/put-v3-domains--name--tracking-click)
1791
1841
  ```JS
1792
1842
  mg.domains.domainTracking.updateTracking('foobar.example.com', 'click', {active: true})
1793
1843
  .then(msg => console.log(msg)) // logs response data
@@ -1813,7 +1863,7 @@ The following service methods are available to instantiated clients. The example
1813
1863
 
1814
1864
  - Unsubscribe Tracking Example
1815
1865
 
1816
- [api docs](https://documentation.mailgun.com/docs/mailgun/api-reference/openapi-final/tag/Domain-Tracking/#tag/Domain-Tracking/operation/PUT-v3-domains--name--tracking-unsubscribe)
1866
+ [API Reference](https://documentation.mailgun.com/docs/mailgun/api-reference/send/mailgun/domain-tracking/put-v3-domains--name--tracking-unsubscribe)
1817
1867
  ```js
1818
1868
  mg.domains.domainTracking.updateTracking('foobar.example.com', 'unsubscribe', {
1819
1869
  active: true,
@@ -1848,7 +1898,9 @@ The following service methods are available to instantiated clients. The example
1848
1898
  - #### get
1849
1899
  Get x509 TLS certificate and status
1850
1900
 
1851
- `mg.domains.domainTracking.get(domainAddress)` [api docs](https://documentation.mailgun.com/docs/mailgun/api-reference/openapi-final/tag/Domain-Tracking/#tag/Domain-Tracking/operation/httpapi.(*HttpAPI).getStatusV2-fm-8)
1901
+ [API Reference](https://documentation.mailgun.com/docs/mailgun/api-reference/send/mailgun/domain-tracking/get-v2-x509--domain--status)
1902
+
1903
+ `mg.domains.domainTracking.get(domainAddress)`
1852
1904
 
1853
1905
  Example:
1854
1906
 
@@ -1872,7 +1924,9 @@ The following service methods are available to instantiated clients. The example
1872
1924
  - #### generate
1873
1925
  Initiates generation of a TLS certificate for the tracking domain in a background task. Once generation is enqueued, you may poll the status endpoint in location field to check for success. Domain address must be formatted as `webPrefix.domainName` from domains settings
1874
1926
 
1875
- `mg.domains.domainTracking.generate(domainAddress)` [api docs](https://documentation.mailgun.com/docs/mailgun/api-reference/openapi-final/tag/Domain-Tracking/#tag/Domain-Tracking/operation/httpapi.(*HttpAPI).generateStatusV2-fm-8)
1927
+ [API Reference](https://documentation.mailgun.com/docs/mailgun/api-reference/send/mailgun/domain-tracking/post-v2-x509--domain-)
1928
+
1929
+ `mg.domains.domainTracking.generate(domainAddress)`
1876
1930
 
1877
1931
  Example:
1878
1932
 
@@ -1895,7 +1949,9 @@ The following service methods are available to instantiated clients. The example
1895
1949
  - #### regenerate
1896
1950
  Initiates regeneration of an expired TLS certificate for the tracking domain in a background task. Once generation is enqueued, you may poll status endpoint in location field to check for success. This will not regenerate an existing certificate that is still valid. Domain address must be formatted as `webPrefix.domainName` from domains settings
1897
1951
 
1898
- `mg.domains.domainTracking.regenerate(domainAddress)` [api docs](https://documentation.mailgun.com/docs/mailgun/api-reference/openapi-final/tag/Domain-Tracking/#tag/Domain-Tracking/operation/httpapi.(*HttpAPI).generateStatusV2-fm-8)
1952
+ [API Reference](https://documentation.mailgun.com/docs/mailgun/api-reference/send/mailgun/domain-tracking/put-v2-x509--domain-)
1953
+
1954
+ `mg.domains.domainTracking.regenerate(domainAddress)`
1899
1955
 
1900
1956
  Example:
1901
1957
 
@@ -1922,7 +1978,7 @@ The following service methods are available to instantiated clients. The example
1922
1978
 
1923
1979
  `mg.domains.domainKeys.list(domainAddress, data)`
1924
1980
 
1925
- [api docs](https://documentation.mailgun.com/docs/mailgun/api-reference/send/mailgun/domain-keys/get-v4-domains--authority-name--keys)
1981
+ [API Reference](https://documentation.mailgun.com/docs/mailgun/api-reference/send/mailgun/domain-keys/get-v4-domains--authority-name--keys)
1926
1982
 
1927
1983
  Example:
1928
1984
 
@@ -1959,7 +2015,7 @@ The following service methods are available to instantiated clients. The example
1959
2015
 
1960
2016
  `mg.domains.domainKeys.listAll(filterData)`
1961
2017
 
1962
- [api docs](https://documentation.mailgun.com/docs/mailgun/api-reference/send/mailgun/domain-keys/get-v1-dkim-keys)
2018
+ [API Reference](https://documentation.mailgun.com/docs/mailgun/api-reference/send/mailgun/domain-keys/get-v1-dkim-keys)
1963
2019
 
1964
2020
  Example:
1965
2021
 
@@ -2003,7 +2059,7 @@ The following service methods are available to instantiated clients. The example
2003
2059
 
2004
2060
  `mg.domains.domainKeys.create(newKeyData)`
2005
2061
 
2006
- [api docs](https://documentation.mailgun.com/docs/mailgun/api-reference/send/mailgun/domain-keys/post-v1-dkim-keys)
2062
+ [API Reference](https://documentation.mailgun.com/docs/mailgun/api-reference/send/mailgun/domain-keys/post-v1-dkim-keys)
2007
2063
 
2008
2064
  Example:
2009
2065
 
@@ -2044,7 +2100,7 @@ The following service methods are available to instantiated clients. The example
2044
2100
 
2045
2101
  `mg.domains.domainKeys.activate(domainAddress, selector)`
2046
2102
 
2047
- [api docs](https://documentation.mailgun.com/docs/mailgun/api-reference/send/mailgun/domain-keys/put-v4-domains--authority-name--keys--selector--activate)
2103
+ [API Reference](https://documentation.mailgun.com/docs/mailgun/api-reference/send/mailgun/domain-keys/put-v4-domains--authority-name--keys--selector--activate)
2048
2104
 
2049
2105
  Example:
2050
2106
 
@@ -2071,7 +2127,7 @@ The following service methods are available to instantiated clients. The example
2071
2127
 
2072
2128
  `mg.domains.domainKeys.deactivate(domainAddress, selector)`
2073
2129
 
2074
- [api docs](https://documentation.mailgun.com/docs/mailgun/api-reference/send/mailgun/domain-keys/put-v4-domains--authority-name--keys--selector--deactivate)
2130
+ [API Reference](https://documentation.mailgun.com/docs/mailgun/api-reference/send/mailgun/domain-keys/put-v4-domains--authority-name--keys--selector--deactivate)
2075
2131
 
2076
2132
  Example:
2077
2133
 
@@ -2100,7 +2156,7 @@ The following service methods are available to instantiated clients. The example
2100
2156
 
2101
2157
  `mg.domains.domainKeys.destroy(domainAddress, selector)`
2102
2158
 
2103
- [api docs](https://documentation.mailgun.com/docs/mailgun/api-reference/send/mailgun/domain-keys/delete-v1-dkim-keys)
2159
+ [API Reference](https://documentation.mailgun.com/docs/mailgun/api-reference/send/mailgun/domain-keys/delete-v1-dkim-keys)
2104
2160
 
2105
2161
  Example:
2106
2162
 
@@ -2121,7 +2177,9 @@ The following service methods are available to instantiated clients. The example
2121
2177
  - #### updateDKIMAuthority
2122
2178
  You can delegate the domain authority to an other domain. Domain's authority is set to itself by default.
2123
2179
 
2124
- `mg.domains.domainKeys.updateDKIMAuthority(domainAddress, data)` [api docs](https://documentation.mailgun.com/docs/mailgun/api-reference/send/mailgun/domain-keys/put-v3-domains--name--dkim-authority)
2180
+ [API Reference](https://documentation.mailgun.com/docs/mailgun/api-reference/send/mailgun/domain-keys/put-v3-domains--name--dkim-authority)
2181
+
2182
+ `mg.domains.domainKeys.updateDKIMAuthority(domainAddress, data)`
2125
2183
 
2126
2184
  Example:
2127
2185
 
@@ -2162,7 +2220,9 @@ The following service methods are available to instantiated clients. The example
2162
2220
  - #### updateDKIMSelector
2163
2221
  Selector is the unique identifier of your key. It has to be different from other keys selector.
2164
2222
 
2165
- `mg.domains.domainKeys.updateDKIMSelector(domainAddress, data)` [api docs](https://documentation.mailgun.com/docs/mailgun/api-reference/send/mailgun/domain-keys/put-v3-domains--name--dkim-selector)
2223
+ [API Reference](https://documentation.mailgun.com/docs/mailgun/api-reference/send/mailgun/domain-keys/put-v3-domains--name--dkim-selector)
2224
+
2225
+ `mg.domains.domainKeys.updateDKIMSelector(domainAddress, data)`
2166
2226
 
2167
2227
  Example:
2168
2228
 
@@ -2192,6 +2252,9 @@ The following service methods are available to instantiated clients. The example
2192
2252
  ### Events
2193
2253
 
2194
2254
  - #### get
2255
+ ***Deprecated, and will be removed in the future releases***
2256
+
2257
+ [API Reference](https://documentation.mailgun.com/docs/mailgun/api-reference/send/mailgun/events)
2195
2258
 
2196
2259
  `mg.events.get(domain, data)`
2197
2260
 
@@ -2215,7 +2278,7 @@ The following service methods are available to instantiated clients. The example
2215
2278
  | end | The end of the search time range. It can be specified as a string (see Date Format) or linux epoch seconds. Refer to Time Range for details. |
2216
2279
  | ascending | Defines the direction of the search time range if the range end time is not specified. Can be either yes or no. Refer to Time Range for details. |
2217
2280
  | limit | Number of entries to return. (300 max) |
2218
- | **field** | **field** is the name of the *[Filter Field](https://documentation.mailgun.com/en/latest/api-events.html#filter-field)*. The value of the parameter should be a valid Filter Expression. Several field filters can be specified in one request. If the same field is mentioned, more then once, then all its filter expressions are combined with AND operator. |
2281
+ | **field** | **field** is the name of the *[Filter Field](https://mailgun-docs.redoc.ly/docs/mailgun/user-manual/events/#filter-field)*. The value of the parameter should be a valid Filter Expression. Several field filters can be specified in one request. If the same field is mentioned, more then once, then all its filter expressions are combined with AND operator. |
2219
2282
  - #### Example with Date and *Filter field*
2220
2283
  ```js
2221
2284
  const date = new Date(2023, 7, 2, 0, 0, 0, 0); // Wed Aug 02 2023 00:00:00 GMT+0300
@@ -2226,6 +2289,7 @@ The following service methods are available to instantiated clients. The example
2226
2289
  event: 'delivered'
2227
2290
  });
2228
2291
  ```
2292
+
2229
2293
  Promise returns: items (array of event objects), pages (paging keys grouped by id)
2230
2294
 
2231
2295
  ```JS
@@ -2246,8 +2310,11 @@ The following service methods are available to instantiated clients. The example
2246
2310
  ```
2247
2311
 
2248
2312
  ### Stats
2249
- - #### Stats Options
2313
+ ***Deprecated, and will be removed in the future releases***
2314
+
2315
+ [API Reference](https://documentation.mailgun.com/docs/mailgun/api-reference/send/mailgun/stats)
2250
2316
 
2317
+ - #### Stats Options
2251
2318
  | Parameter | Description |
2252
2319
  |:-----------|:---------------------------------------------------------------------------------------------------------------------------|
2253
2320
  | event | The type of the event. For a complete list of all events written to the log see the `Event Types` table below. (Required) |
@@ -2283,6 +2350,8 @@ The following service methods are available to instantiated clients. The example
2283
2350
 
2284
2351
  - #### getDomain
2285
2352
 
2353
+ [API Reference](https://mailgun-docs.redoc.ly/docs/mailgun/api-reference/openapi-final/tag/Stats/#tag/Stats/operation/GET-v3--domain--stats-total)
2354
+
2286
2355
  `mg.stats.getDomain(domain, query)`
2287
2356
 
2288
2357
  Example:
@@ -2308,6 +2377,7 @@ The following service methods are available to instantiated clients. The example
2308
2377
  ```
2309
2378
 
2310
2379
  - #### getAccount
2380
+ [API Reference](https://mailgun-docs.redoc.ly/docs/mailgun/api-reference/openapi-final/tag/Stats/#tag/Stats/operation/GET-v3-stats-total)
2311
2381
 
2312
2382
  `mg.stats.getDomain(domain, query)`
2313
2383
 
@@ -2337,11 +2407,13 @@ The following service methods are available to instantiated clients. The example
2337
2407
  ```
2338
2408
 
2339
2409
  ### Metrics
2340
- Mailgun collects many different events and generates event metrics which are available in your Control Panel. This data is also available via our analytics metrics [API endpoint](https://documentation.mailgun.com/docs/mailgun/api-reference/openapi-final/tag/Metrics/#tag/Metrics).
2410
+ Mailgun collects many different events and generates event metrics which are available in your Control Panel. This data is also available via our analytics metrics [API Reference](https://documentation.mailgun.com/docs/mailgun/api-reference/send/mailgun/metrics).
2341
2411
 
2342
2412
  - #### getAccount
2343
2413
  Gets filtered metrics for an account
2344
2414
 
2415
+ [API Reference](https://documentation.mailgun.com/docs/mailgun/api-reference/send/mailgun/metrics/post-v1-analytics-metrics)
2416
+
2345
2417
  `mg.metrics.getAccount(MetricsQuery);`
2346
2418
 
2347
2419
  Example:
@@ -2375,7 +2447,7 @@ The following service methods are available to instantiated clients. The example
2375
2447
  | duration | String | A duration in the format of '1d' '2h' '2m'. If duration is provided then it is calculated from the end date and overwrites the start date.|
2376
2448
  | dimensions | Array of strings | Attributes of the metric data such as 'subaccount'.|
2377
2449
  | metrics | Array of strings | Name of the metrics to receive the stats for such as 'processed_count'.|
2378
- | filter | object | Filters to apply to the query. The 'AND' property is required and should contains array of filters objects. See this [document](https://documentation.mailgun.com/docs/mailgun/api-reference/openapi-final/tag/Metrics/#tag/Metrics/operation/api.(*MetricsAPI).PostMetricQuery-fm-3!path=filter&t=request) for an object shape. |
2450
+ | filter | object | Filters to apply to the query. The 'AND' property is required and should contains array of filters objects. See this [document](https://documentation.mailgun.com/docs/mailgun/api-reference/send/mailgun/metrics/post-v1-analytics-metrics#metrics/post-v1-analytics-metrics/t=request&path=filter) for an object shape. |
2379
2451
  | include_subaccounts | Boolean | Include stats from all subaccounts. |
2380
2452
  | include_aggregates | Boolean | Include top-level aggregate metrics.|
2381
2453
 
@@ -2408,6 +2480,9 @@ The following service methods are available to instantiated clients. The example
2408
2480
 
2409
2481
  - #### getAccountUsage
2410
2482
  Gets filtered **usage metrics** for an account
2483
+
2484
+ [API Reference](https://documentation.mailgun.com/docs/mailgun/api-reference/send/mailgun/metrics/post-v1-analytics-usage-metrics)
2485
+
2411
2486
  `mg.metrics.getAccountUsage(MetricsQuery);`
2412
2487
 
2413
2488
  Example:
@@ -2441,7 +2516,7 @@ The following service methods are available to instantiated clients. The example
2441
2516
  | duration | String | A duration in the format of '1d' '2h' '2m'. If duration is provided then it is calculated from the end date and overwrites the start date.|
2442
2517
  | dimensions | Array of strings | Attributes of the metric data such as 'subaccount'.|
2443
2518
  | metrics | Array of strings | Name of the metrics to receive the stats for such as 'processed_count'.|
2444
- | filter | object | Filters to apply to the query. The 'AND' property is required and should contains array of filters objects. See this [document](https://documentation.mailgun.com/docs/mailgun/api-reference/openapi-final/tag/Metrics/#tag/Metrics/operation/api.(*MetricsAPI).PostMetricQuery-fm-3!path=filter&t=request) for an object shape. |
2519
+ | filter | object | Filters to apply to the query. The 'AND' property is required and should contains array of filters objects. See this [document](https://documentation.mailgun.com/docs/mailgun/api-reference/send/mailgun/metrics/post-v1-analytics-metrics#metrics/post-v1-analytics-metrics/t=request&path=filter) for an object shape. |
2445
2520
  | include_subaccounts | Boolean | Include stats from all subaccounts. |
2446
2521
  | include_aggregates | Boolean | Include top-level aggregate metrics.|
2447
2522
 
@@ -2479,7 +2554,7 @@ The following service methods are available to instantiated clients. The example
2479
2554
  `mg.suppressions.list(domain, suppressionType, query?)`
2480
2555
 
2481
2556
  - #### Bounces Example:
2482
-
2557
+ [API Reference](https://documentation.mailgun.com/docs/mailgun/api-reference/send/mailgun/bounces/get-v3--domainid--bounces)
2483
2558
  ```js
2484
2559
  mg.suppressions.list('foobar.example.com', 'bounces')
2485
2560
  .then(msg => console.log(msg)) // logs response data
@@ -2487,7 +2562,7 @@ The following service methods are available to instantiated clients. The example
2487
2562
  ```
2488
2563
 
2489
2564
  - #### Unsubscribes Example:
2490
-
2565
+ [API Reference](https://documentation.mailgun.com/docs/mailgun/api-reference/send/mailgun/unsubscribe/get-v3--domainid--unsubscribes)
2491
2566
  ```js
2492
2567
  mg.suppressions.list('foobar.example.com', 'unsubscribes')
2493
2568
  .then(msg => console.log(msg)) // logs response data
@@ -2496,6 +2571,8 @@ The following service methods are available to instantiated clients. The example
2496
2571
 
2497
2572
  - #### Complaints Example:
2498
2573
 
2574
+ [API Reference](https://documentation.mailgun.com/docs/mailgun/api-reference/send/mailgun/complaints/get-v3--domainid--complaints)
2575
+
2499
2576
  ```js
2500
2577
  mg.suppressions.list('foobar.example.com', 'complaints')
2501
2578
  .then(msg => console.log(msg)) // logs response data
@@ -2528,7 +2605,7 @@ The following service methods are available to instantiated clients. The example
2528
2605
  `mg.suppressions.get(domain, suppressionType, address)`
2529
2606
 
2530
2607
  - #### Bounces Example:
2531
-
2608
+ [API Reference](https://documentation.mailgun.com/docs/mailgun/api-reference/send/mailgun/bounces/get-v3--domainid--bounces--address-)
2532
2609
  ```js
2533
2610
  mg.suppressions.get('foobar.example.com', 'bounces', 'address@example.com')
2534
2611
  .then(msg => console.log(msg)) // logs response data
@@ -2536,6 +2613,7 @@ The following service methods are available to instantiated clients. The example
2536
2613
  ```
2537
2614
 
2538
2615
  - #### Unsubscribes Example:
2616
+ [API Reference](https://documentation.mailgun.com/docs/mailgun/api-reference/send/mailgun/unsubscribe/get-v3--domainid--unsubscribes--address-)
2539
2617
 
2540
2618
  ```js
2541
2619
  mg.suppressions.get('foobar.example.com', 'unsubscribes', 'address@example.com')
@@ -2545,6 +2623,8 @@ The following service methods are available to instantiated clients. The example
2545
2623
 
2546
2624
  - #### Complaints Example:
2547
2625
 
2626
+ [API Reference](https://documentation.mailgun.com/docs/mailgun/api-reference/send/mailgun/complaints/get-v3--domainid--complaints--address-)
2627
+
2548
2628
  ```js
2549
2629
  mg.suppressions.get('foobar.example.com', 'complaints', 'address@example.com')
2550
2630
  .then(msg => console.log(msg)) // logs response data
@@ -2566,6 +2646,8 @@ The following service methods are available to instantiated clients. The example
2566
2646
  `mg.suppressions.create(domain, suppressionType, data || data[])`
2567
2647
 
2568
2648
  - #### Bounces Example:
2649
+ [API Reference](https://documentation.mailgun.com/docs/mailgun/api-reference/send/mailgun/bounces/post-v3--domainid--bounces)
2650
+
2569
2651
  ```JS
2570
2652
  mg.suppressions.create('foobar.example.com', 'bounces', [{address: 'bob@example.com'}])
2571
2653
  .then(msg => console.log(msg)) // logs response data
@@ -2590,7 +2672,7 @@ The following service methods are available to instantiated clients. The example
2590
2672
  ```
2591
2673
 
2592
2674
  - #### Unsubscribes Example:
2593
-
2675
+ [API Reference](https://documentation.mailgun.com/docs/mailgun/api-reference/send/mailgun/unsubscribe/post-v3--domainid--unsubscribes)
2594
2676
  ```js
2595
2677
  mg.suppressions.create('foobar.example.com', 'unsubscribes', {address: 'bob@example.com'})
2596
2678
  .then(msg => console.log(msg)) // logs response data
@@ -2641,8 +2723,8 @@ The following service methods are available to instantiated clients. The example
2641
2723
  ```
2642
2724
 
2643
2725
  - #### Complaints Example:
2644
-
2645
- ```js
2726
+ [API Reference](https://documentation.mailgun.com/docs/mailgun/api-reference/send/mailgun/complaints/post-v3--domainid--complaints)
2727
+ ```JS
2646
2728
  mg.suppressions.create('foobar.example.com', 'complaints', [{address: 'bob@example.com'}])
2647
2729
  .then(msg => console.log(msg)) // logs response data
2648
2730
  .catch(err => console.error(err)); // logs any error
@@ -2667,7 +2749,7 @@ The following service methods are available to instantiated clients. The example
2667
2749
  `mg.suppressions.destroy(domain, suppressionType, address)`
2668
2750
 
2669
2751
  - #### Bounces Example:
2670
-
2752
+ [API Reference](https://documentation.mailgun.com/docs/mailgun/api-reference/send/mailgun/bounces/delete-v3--domainid--bounces--address-)
2671
2753
  ```JS
2672
2754
  mg.suppressions.destroy('foobar.example.com', 'bounces', 'bob@example.com')
2673
2755
  .then(msg => console.log(msg)) // logs response data
@@ -2686,7 +2768,7 @@ The following service methods are available to instantiated clients. The example
2686
2768
  ```
2687
2769
 
2688
2770
  - #### Unsubscribes Example:
2689
-
2771
+ [API Reference](https://documentation.mailgun.com/docs/mailgun/api-reference/send/mailgun/unsubscribe/delete-v3--domainid--unsubscribes--address-)
2690
2772
  ```js
2691
2773
  mg.suppressions.destroy('foobar.example.com', 'unsubscribes', 'bob@example.com')
2692
2774
  .then(msg => console.log(msg)) // logs response data
@@ -2705,7 +2787,7 @@ The following service methods are available to instantiated clients. The example
2705
2787
  ```
2706
2788
 
2707
2789
  - #### Complaints Example:
2708
-
2790
+ [API Reference](https://documentation.mailgun.com/docs/mailgun/api-reference/send/mailgun/complaints/delete-v3--domainid--complaints--address-)
2709
2791
  ```js
2710
2792
  mg.suppressions.destroy('foobar.example.com', 'complaints', 'bob@example.com')
2711
2793
  .then(msg => console.log(msg)) // logs response data
@@ -2725,6 +2807,7 @@ The following service methods are available to instantiated clients. The example
2725
2807
  ### Webhooks
2726
2808
 
2727
2809
  - #### list
2810
+ [API Reference](https://documentation.mailgun.com/docs/inboxready/api-reference/optimize/mailgun/webhooks/get-v3-domains--domain--webhooks)
2728
2811
 
2729
2812
  `mg.webhooks.list(domain, query)`
2730
2813
 
@@ -2753,6 +2836,7 @@ The following service methods are available to instantiated clients. The example
2753
2836
  ```
2754
2837
 
2755
2838
  - #### get
2839
+ [API Reference](https://documentation.mailgun.com/docs/inboxready/api-reference/optimize/mailgun/webhooks/get-v3-domains--domain-name--webhooks--webhook-name-)
2756
2840
 
2757
2841
  `mg.webhooks.get(domain, id)`
2758
2842
 
@@ -2773,6 +2857,7 @@ The following service methods are available to instantiated clients. The example
2773
2857
  ```
2774
2858
 
2775
2859
  - #### create
2860
+ [API Reference](https://documentation.mailgun.com/docs/inboxready/api-reference/optimize/mailgun/webhooks/post-v3-domains--domain--webhooks)
2776
2861
 
2777
2862
  `mg.webhooks.create(domain, id, data, test)`
2778
2863
 
@@ -2810,6 +2895,7 @@ The following service methods are available to instantiated clients. The example
2810
2895
  ```
2811
2896
 
2812
2897
  - #### update
2898
+ [API Reference](https://documentation.mailgun.com/docs/inboxready/api-reference/optimize/mailgun/webhooks/put-v3-domains--domain-name--webhooks--webhook-name-)
2813
2899
 
2814
2900
  `mg.webhooks.update(domain, id, url, test)`
2815
2901
 
@@ -2844,6 +2930,7 @@ The following service methods are available to instantiated clients. The example
2844
2930
 
2845
2931
 
2846
2932
  - #### destroy
2933
+ [API Reference](https://documentation.mailgun.com/docs/inboxready/api-reference/optimize/mailgun/webhooks/delete-v3-domains--domain-name--webhooks--webhook-name-)
2847
2934
 
2848
2935
  `mg.webhooks.destroy(domain, id)`
2849
2936
 
@@ -2866,6 +2953,7 @@ The following service methods are available to instantiated clients. The example
2866
2953
  ### Routes
2867
2954
 
2868
2955
  - #### list
2956
+ [API Reference](https://documentation.mailgun.com/docs/mailgun/api-reference/send/mailgun/routes/get-v3-routes)
2869
2957
 
2870
2958
  `mg.routes.list(query)`
2871
2959
 
@@ -2893,6 +2981,7 @@ The following service methods are available to instantiated clients. The example
2893
2981
  ```
2894
2982
 
2895
2983
  - #### get
2984
+ [API Reference](https://documentation.mailgun.com/docs/mailgun/api-reference/send/mailgun/routes/get-v3-routes-id)
2896
2985
 
2897
2986
  `mg.routes.get(id)`
2898
2987
 
@@ -2918,6 +3007,7 @@ The following service methods are available to instantiated clients. The example
2918
3007
  ```
2919
3008
 
2920
3009
  - #### create
3010
+ [API Reference](https://documentation.mailgun.com/docs/mailgun/api-reference/send/mailgun/routes/post-v3-routes)
2921
3011
 
2922
3012
  `mg.routes.create(options)`
2923
3013
 
@@ -2948,6 +3038,7 @@ The following service methods are available to instantiated clients. The example
2948
3038
  ```
2949
3039
 
2950
3040
  - #### update
3041
+ [API Reference](https://documentation.mailgun.com/docs/mailgun/api-reference/send/mailgun/routes/put-v3-routes-id)
2951
3042
 
2952
3043
  `mg.routes.update(id, options)`
2953
3044
 
@@ -2979,6 +3070,7 @@ The following service methods are available to instantiated clients. The example
2979
3070
  ```
2980
3071
 
2981
3072
  - #### destroy
3073
+ [API Reference](https://documentation.mailgun.com/docs/mailgun/api-reference/send/mailgun/routes/delete-v3-routes-id)
2982
3074
 
2983
3075
  `mg.routes.destroy(id)`
2984
3076
 
@@ -3002,6 +3094,7 @@ The following service methods are available to instantiated clients. The example
3002
3094
  ### Validation
3003
3095
 
3004
3096
  - #### get
3097
+ [API Reference](https://documentation.mailgun.com/docs/validate/single-valid-ir)
3005
3098
 
3006
3099
  `mg.validate.get(address)`
3007
3100
 
@@ -3029,7 +3122,8 @@ The following service methods are available to instantiated clients. The example
3029
3122
  ```
3030
3123
 
3031
3124
  ### Multiple validation
3032
- https://documentation.mailgun.com/en/latest/api-email-validation.html#email-validation
3125
+ [API Reference](https://documentation.mailgun.com/docs/validate/bulk-valid-ir)
3126
+
3033
3127
  - #### create
3034
3128
  `mg.validate.multipleValidation.create('name_of_the_list', { file })`
3035
3129
 
@@ -3168,6 +3262,7 @@ https://documentation.mailgun.com/en/latest/api-email-validation.html#email-vali
3168
3262
  A client to manage mailing lists.
3169
3263
 
3170
3264
  - #### list
3265
+ [API Reference](https://documentation.mailgun.com/docs/mailgun/api-reference/send/mailgun/mailing-lists/get-v3-lists)
3171
3266
 
3172
3267
  `mg.lists.list()`
3173
3268
 
@@ -3196,6 +3291,7 @@ https://documentation.mailgun.com/en/latest/api-email-validation.html#email-vali
3196
3291
  ```
3197
3292
 
3198
3293
  - #### get
3294
+ [API Reference](https://documentation.mailgun.com/docs/mailgun/api-reference/send/mailgun/mailing-lists/get-v3-lists-address)
3199
3295
 
3200
3296
  `mg.lists.get(mailListAddress)`
3201
3297
 
@@ -3222,6 +3318,7 @@ https://documentation.mailgun.com/en/latest/api-email-validation.html#email-vali
3222
3318
  ```
3223
3319
 
3224
3320
  - #### create
3321
+ [API Reference](https://documentation.mailgun.com/docs/mailgun/api-reference/send/mailgun/mailing-lists/post-v3-lists)
3225
3322
 
3226
3323
  `mg.lists.create(data)`
3227
3324
 
@@ -3254,6 +3351,7 @@ https://documentation.mailgun.com/en/latest/api-email-validation.html#email-vali
3254
3351
  ```
3255
3352
 
3256
3353
  - #### update
3354
+ [API Reference](https://documentation.mailgun.com/docs/mailgun/api-reference/send/mailgun/mailing-lists/put-v3-lists-address)
3257
3355
 
3258
3356
  `mg.lists.update(mailListAddress)`
3259
3357
 
@@ -3286,6 +3384,7 @@ https://documentation.mailgun.com/en/latest/api-email-validation.html#email-vali
3286
3384
  ```
3287
3385
 
3288
3386
  - #### destroy
3387
+ [API Reference](https://documentation.mailgun.com/docs/mailgun/api-reference/send/mailgun/mailing-lists/delete-v3-lists-address)
3289
3388
 
3290
3389
  `mg.lists.destroy(mailListAddress)`
3291
3390
 
@@ -3307,9 +3406,10 @@ https://documentation.mailgun.com/en/latest/api-email-validation.html#email-vali
3307
3406
  ```
3308
3407
 
3309
3408
  ### Mailing list members
3310
- A client to manage members within a specific mailing list.
3409
+ A client to manage members within a specific mailing list.
3311
3410
 
3312
3411
  - #### listMembers
3412
+ [API Reference](https://documentation.mailgun.com/docs/mailgun/api-reference/send/mailgun/mailing-lists/get-lists-string:list_address-members)
3313
3413
 
3314
3414
  `mg.lists.members.listMembers(mailListAddress)`
3315
3415
 
@@ -3335,6 +3435,8 @@ A client to manage members within a specific mailing list.
3335
3435
  ```
3336
3436
 
3337
3437
  - #### getMember
3438
+ [API Reference](https://documentation.mailgun.com/docs/mailgun/api-reference/send/mailgun/mailing-lists/get-lists-list_address-members-member_address)
3439
+
3338
3440
  `mg.lists.members.getMember(mailListAddress, mailListMemberAddress)`
3339
3441
 
3340
3442
  Example:
@@ -3357,6 +3459,8 @@ A client to manage members within a specific mailing list.
3357
3459
  ```
3358
3460
 
3359
3461
  - #### createMember
3462
+ [API Reference](https://documentation.mailgun.com/docs/mailgun/api-reference/send/mailgun/mailing-lists/post-lists-string:list_address-members)
3463
+
3360
3464
  `mg.lists.members.createMember(mailListAddress, data)`
3361
3465
 
3362
3466
  Example:
@@ -3385,6 +3489,7 @@ A client to manage members within a specific mailing list.
3385
3489
  ```
3386
3490
 
3387
3491
  - #### createMembers
3492
+ [API Reference](https://documentation.mailgun.com/docs/mailgun/api-reference/send/mailgun/mailing-lists/post-lists-list_address-members.json)
3388
3493
  `mg.lists.members.createMembers(mailListAddress, data)`
3389
3494
 
3390
3495
  Example:
@@ -3430,6 +3535,7 @@ A client to manage members within a specific mailing list.
3430
3535
  ```
3431
3536
 
3432
3537
  - #### updateMember
3538
+ [API Reference](https://documentation.mailgun.com/docs/mailgun/api-reference/send/mailgun/mailing-lists/put-lists-list_address-members-member_address)
3433
3539
 
3434
3540
  `mg.lists.members.updateMember(mailListAddress, mailListMemberAddress, data)`
3435
3541
 
@@ -3458,6 +3564,7 @@ A client to manage members within a specific mailing list.
3458
3564
  ```
3459
3565
 
3460
3566
  - #### destroyMember
3567
+ [API Reference](https://documentation.mailgun.com/docs/mailgun/api-reference/send/mailgun/mailing-lists/delete-lists-list_address-members-member_address)
3461
3568
 
3462
3569
  `mg.lists.members.destroyMember(mailListAddress, mailListMemberAddress)`
3463
3570
 
@@ -3477,13 +3584,15 @@ A client to manage members within a specific mailing list.
3477
3584
  message: 'Mailing list member has been deleted'
3478
3585
  }
3479
3586
  ```
3587
+
3480
3588
  ### Subaccounts
3481
3589
 
3482
3590
  A client to manage subaccounts.
3483
3591
 
3484
3592
  - #### list
3593
+ [API Reference](https://documentation.mailgun.com/docs/mailgun/api-reference/send/mailgun/subaccounts/get-v5-accounts-subaccounts)
3485
3594
 
3486
- `mg.subaccounts.list(query)` - [api docs](https://documentation.mailgun.com/en/latest/subaccounts.html)
3595
+ `mg.subaccounts.list(query)`
3487
3596
 
3488
3597
  Example:
3489
3598
 
@@ -3512,6 +3621,7 @@ A client to manage members within a specific mailing list.
3512
3621
  | enabled | Returns all enabled/disabled subaccounts. (Defaults to all if omitted) |
3513
3622
 
3514
3623
  - #### get
3624
+ [API Reference](https://documentation.mailgun.com/docs/mailgun/api-reference/send/mailgun/subaccounts/get-v5-accounts-subaccounts-subaccount_id)
3515
3625
 
3516
3626
  `mg.subaccounts.get(subaccount_id)`
3517
3627
 
@@ -3530,6 +3640,7 @@ A client to manage members within a specific mailing list.
3530
3640
  ```
3531
3641
 
3532
3642
  - #### create
3643
+ [API Reference](https://documentation.mailgun.com/docs/mailgun/api-reference/send/mailgun/subaccounts/post-v5-accounts-subaccounts)
3533
3644
 
3534
3645
  `mg.subaccounts.create(name)`
3535
3646
 
@@ -3554,6 +3665,7 @@ A client to manage members within a specific mailing list.
3554
3665
  | name | Name of the subaccount being created (ex. 'mysubaccount') |
3555
3666
 
3556
3667
  - #### enable
3668
+ [API Reference](https://documentation.mailgun.com/docs/mailgun/api-reference/send/mailgun/subaccounts/post-v5-accounts-subaccounts-subaccount_id-enable)
3557
3669
 
3558
3670
  `mg.subaccounts.enable(subaccount_id)`
3559
3671
 
@@ -3571,6 +3683,7 @@ A client to manage members within a specific mailing list.
3571
3683
  ```
3572
3684
 
3573
3685
  - #### disable
3686
+ [API Reference](https://documentation.mailgun.com/docs/mailgun/api-reference/send/mailgun/subaccounts/post-v5-accounts-subaccounts-subaccount_id-disable)
3574
3687
 
3575
3688
  `mg.subaccounts.disable(subaccount_id)`
3576
3689
 
@@ -3588,6 +3701,7 @@ A client to manage members within a specific mailing list.
3588
3701
  ```
3589
3702
 
3590
3703
  - #### destroy
3704
+ [API Reference](https://documentation.mailgun.com/docs/mailgun/api-reference/send/mailgun/subaccounts/delete-v5-accounts-subaccounts-subaccount_id)
3591
3705
 
3592
3706
  `mg.subaccounts.destroy(subaccount_id)`
3593
3707
 
@@ -3605,8 +3719,9 @@ A client to manage members within a specific mailing list.
3605
3719
  ```
3606
3720
 
3607
3721
  - #### setMonthlySendingLimit
3722
+ [API Reference](https://documentation.mailgun.com/docs/mailgun/api-reference/send/mailgun/subaccounts/put-v5-accounts-subaccounts-subaccount_id-limit-custom-monthly)
3608
3723
 
3609
- `mg.subaccounts.setMonthlySendingLimit(subaccount_id, limit)`
3724
+ `mg.subaccounts.setMonthlySendingLimit(subaccount_id, limit)`
3610
3725
 
3611
3726
  Example:
3612
3727
 
@@ -3622,6 +3737,7 @@ A client to manage members within a specific mailing list.
3622
3737
  ```
3623
3738
 
3624
3739
  - #### getMonthlySendingLimit
3740
+ [API Reference](https://documentation.mailgun.com/docs/mailgun/api-reference/send/mailgun/subaccounts/get-v5-accounts-subaccounts-subaccount_id-limit-custom-monthly)
3625
3741
 
3626
3742
  `mg.subaccounts.getMonthlySendingLimit(subaccount_id)`
3627
3743
 
@@ -3639,6 +3755,8 @@ A client to manage members within a specific mailing list.
3639
3755
  ```
3640
3756
 
3641
3757
  - #### updateSubaccountFeature
3758
+ [API Reference](https://documentation.mailgun.com/docs/mailgun/api-reference/send/mailgun/subaccounts/put-v5-accounts-subaccounts-subaccount_id-features)
3759
+
3642
3760
  `mg.subaccounts.updateSubaccountFeature(subaccount_id, featuresValues)`
3643
3761
 
3644
3762
  Example:
@@ -3670,9 +3788,12 @@ A client to manage members within a specific mailing list.
3670
3788
 
3671
3789
  ### Inbox Placements
3672
3790
  A client to allows you to see the likely deliverability of your email campaigns.
3791
+
3673
3792
  - #### SeedsLists
3674
3793
 
3675
3794
  - #### list
3795
+ [API Reference](https://documentation.mailgun.com/docs/inboxready/api-reference/optimize/inboxready/inbox-placement/get-v4-inbox-seedlists)
3796
+
3676
3797
  `mg.inboxPlacements.seedsLists.list()`
3677
3798
 
3678
3799
  Example:
@@ -3766,6 +3887,8 @@ A client to manage members within a specific mailing list.
3766
3887
  ```
3767
3888
 
3768
3889
  - #### get
3890
+ [API Reference](https://documentation.mailgun.com/docs/inboxready/api-reference/optimize/inboxready/inbox-placement/get-v4-inbox-seedlists--address-)
3891
+
3769
3892
  `mg.inboxPlacements.seedsLists.get(seedsListId)`
3770
3893
 
3771
3894
  Example:
@@ -3848,6 +3971,8 @@ A client to manage members within a specific mailing list.
3848
3971
  ```
3849
3972
 
3850
3973
  - #### create
3974
+ [API Reference](https://documentation.mailgun.com/docs/inboxready/api-reference/optimize/inboxready/inbox-placement/post-v4-inbox-seedlists)
3975
+
3851
3976
  ```js
3852
3977
  mg.inboxPlacements.seedsLists.create({
3853
3978
  name: 'seedLists name',
@@ -3909,6 +4034,7 @@ A client to manage members within a specific mailing list.
3909
4034
  ```
3910
4035
 
3911
4036
  - #### update
4037
+ [API Reference](https://documentation.mailgun.com/docs/inboxready/api-reference/optimize/inboxready/inbox-placement/put-v4-inbox-seedlists--address-)
3912
4038
 
3913
4039
  ```JS
3914
4040
  mg.inboxPlacements.seedsLists.update(seedsListId,{
@@ -3970,6 +4096,8 @@ A client to manage members within a specific mailing list.
3970
4096
  ```
3971
4097
 
3972
4098
  - #### destroy
4099
+ [API Reference](https://documentation.mailgun.com/docs/inboxready/api-reference/optimize/inboxready/inbox-placement/delete-v4-inbox-seedlists--address-)
4100
+
3973
4101
  ```js
3974
4102
  mg.inboxPlacements.seedsLists.destroy(seedsListId)
3975
4103
  ```
@@ -3993,6 +4121,9 @@ A client to manage members within a specific mailing list.
3993
4121
  - #### Attributes
3994
4122
 
3995
4123
  - #### list
4124
+
4125
+ [API Reference](https://documentation.mailgun.com/docs/inboxready/api-reference/optimize/inboxready/inbox-placement/get-v4-inbox-seedlists-a)
4126
+
3996
4127
  `mg.inboxPlacements.seedsLists.attributes.list()`
3997
4128
 
3998
4129
  Example:
@@ -4014,7 +4145,9 @@ A client to manage members within a specific mailing list.
4014
4145
  ```
4015
4146
 
4016
4147
  - #### get
4017
- `mg.inboxPlacements.attributes.get('attribute_name');`
4148
+ [API Reference](https://documentation.mailgun.com/docs/inboxready/api-reference/optimize/inboxready/inbox-placement/get-v4-inbox-seedlists-a--attribute-)
4149
+
4150
+ `mg.inboxPlacements.seedsLists.attributes.get('attribute_name');`
4018
4151
 
4019
4152
  Example:
4020
4153
  ```JS
@@ -4036,6 +4169,8 @@ A client to manage members within a specific mailing list.
4036
4169
  - #### Filters
4037
4170
 
4038
4171
  - #### list
4172
+ [API Reference](https://documentation.mailgun.com/docs/inboxready/api-reference/optimize/inboxready/inbox-placement/get-v4-inbox-seedlists--filters)
4173
+
4039
4174
  `mg.inboxPlacements.seedsLists.filters.list()`
4040
4175
 
4041
4176
  Example:
@@ -4063,6 +4198,8 @@ A client to manage members within a specific mailing list.
4063
4198
  - #### Providers
4064
4199
 
4065
4200
  - #### list
4201
+ [API Reference](https://documentation.mailgun.com/docs/inboxready/api-reference/optimize/inboxready/inbox-placement/get-v4-inbox-providers)
4202
+
4066
4203
  List all available email providers.
4067
4204
 
4068
4205
  `mg.inboxPlacements.providers.list()`
@@ -4093,6 +4230,8 @@ A client to manage members within a specific mailing list.
4093
4230
  - #### Results
4094
4231
 
4095
4232
  - #### list
4233
+ [API Reference](https://documentation.mailgun.com/docs/inboxready/api-reference/optimize/inboxready/inbox-placement/get-v4-inbox-results)
4234
+
4096
4235
  Get the details for all placement test results.
4097
4236
 
4098
4237
  ```js
@@ -4224,6 +4363,9 @@ A client to manage members within a specific mailing list.
4224
4363
 
4225
4364
  Get the details for a single result.
4226
4365
 
4366
+ [API Reference](https://documentation.mailgun.com/docs/inboxready/api-reference/optimize/inboxready/inbox-placement/get-v4-inbox-results--result-)
4367
+
4368
+
4227
4369
  `mg.inboxPlacements.results.get(IBPResultId)`
4228
4370
 
4229
4371
  Example:
@@ -4326,6 +4468,8 @@ A client to manage members within a specific mailing list.
4326
4468
  ```
4327
4469
 
4328
4470
  - #### destroy
4471
+ [API Reference](https://documentation.mailgun.com/docs/inboxready/api-reference/optimize/inboxready/inbox-placement/delete-v4-inbox-results--result-)
4472
+
4329
4473
  Delete the result and all associated information.
4330
4474
 
4331
4475
  `mg.inboxPlacements.results.destroy(IBPResultId)`
@@ -4348,6 +4492,9 @@ A client to manage members within a specific mailing list.
4348
4492
 
4349
4493
  - #### getResultByShareId
4350
4494
  Get a result by the share ID.
4495
+
4496
+ [API Reference](https://documentation.mailgun.com/docs/inboxready/api-reference/optimize/inboxready/inbox-placement/get-v4-inbox-sharing-public--shareid-)
4497
+
4351
4498
  ```js
4352
4499
  mg.inboxPlacements.results.getResultByShareId('result_sharing_id')
4353
4500
  ```
@@ -4454,6 +4601,8 @@ A client to manage members within a specific mailing list.
4454
4601
  - #### Attributes
4455
4602
 
4456
4603
  - #### list
4604
+ [API Reference](https://documentation.mailgun.com/docs/inboxready/api-reference/optimize/inboxready/inbox-placement/get-v4-inbox-results-a)
4605
+
4457
4606
  `mg.inboxPlacements.results.attributes.list()`
4458
4607
 
4459
4608
  Example:
@@ -4475,6 +4624,8 @@ A client to manage members within a specific mailing list.
4475
4624
  ```
4476
4625
 
4477
4626
  - #### get
4627
+ [API Reference](https://documentation.mailgun.com/docs/inboxready/api-reference/optimize/inboxready/inbox-placement/get-v4-inbox-results-a--attribute-)
4628
+
4478
4629
  `mg.inboxPlacements.attributes.get('attribute_name');`
4479
4630
 
4480
4631
  Example:
@@ -4497,6 +4648,8 @@ A client to manage members within a specific mailing list.
4497
4648
  - #### Filters
4498
4649
 
4499
4650
  - #### list
4651
+ [API Reference](https://documentation.mailgun.com/docs/inboxready/api-reference/optimize/inboxready/inbox-placement/get-v4-inbox-results--filters)
4652
+
4500
4653
  `mg.inboxPlacements.results.filters.list()`
4501
4654
 
4502
4655
  Example:
@@ -4525,6 +4678,8 @@ A client to manage members within a specific mailing list.
4525
4678
  - #### get
4526
4679
  The sharing status of a result.
4527
4680
 
4681
+ [API Reference](https://documentation.mailgun.com/docs/inboxready/api-reference/optimize/inboxready/inbox-placement/get-v4-inbox-sharing--result-)
4682
+
4528
4683
  `mg.inboxPlacements.results.sharing.get('result_id');`
4529
4684
  Example:
4530
4685
  ```JS
@@ -4547,6 +4702,8 @@ A client to manage members within a specific mailing list.
4547
4702
  - #### update
4548
4703
  Change the sharing status of a result or create a new share URL
4549
4704
 
4705
+ [API Reference](https://documentation.mailgun.com/docs/inboxready/api-reference/optimize/inboxready/inbox-placement/put-v4-inbox-sharing--result-)
4706
+
4550
4707
  `mg.inboxPlacements.results.sharing.update('result_id', IPRSharingUpdateData);`
4551
4708
 
4552
4709
  Example:
@@ -4575,6 +4732,8 @@ A client to manage members within a specific mailing list.
4575
4732
 
4576
4733
  'variables' are Template variables, which could be used in html or template. You can use next recipient variables inside Template variables, which will be filled for every seed automatically: %recipient.first_name%, %recipient.last_name%.
4577
4734
 
4735
+ [API Reference](https://documentation.mailgun.com/docs/inboxready/api-reference/optimize/inboxready/inbox-placement/post-v4-inbox-tests)
4736
+
4578
4737
  `mg.inboxPlacements.runTest(InboxPlacementsData);`
4579
4738
 
4580
4739
  Example:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mailgun.js",
3
- "version": "12.3.0",
3
+ "version": "12.3.1",
4
4
  "author": "Mailgun",
5
5
  "license": "MIT",
6
6
  "type": "module",
package/version.md CHANGED
@@ -1 +1 @@
1
- 12.3.0
1
+ 12.3.1