forked from mvanhorn/printing-press-library
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtools-manifest.json
More file actions
9044 lines (9044 loc) · 444 KB
/
Copy pathtools-manifest.json
File metadata and controls
9044 lines (9044 loc) · 444 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
{
"api_name": "sendgrid",
"base_url": "https://api.sendgrid.com",
"description": "Bundled Twilio SendGrid OpenAPI spec from twilio/sendgrid-oai (46 resource files merged).",
"mcp_ready": "full",
"http_transport": "standard",
"auth": {
"type": "bearer_token",
"header": "Authorization",
"env_vars": [
"SENDGRID_API_KEY"
],
"env_var_specs": [
{
"name": "SENDGRID_API_KEY",
"kind": "per_call",
"required": true,
"sensitive": true,
"inferred": true
}
]
},
"required_headers": [],
"tools": [
{
"name": "access-settings_add-ip-to-allow-list",
"description": "**This endpoint allows you to add one or more allowed IP addresses.** To allow one or more IP addresses, pass them to this endpoint in an array. Once an IP address is added to your allow list, it will be assigned an `id` that can be used to remove the address. You can retrieve the ID associated with an IP using the 'Retrieve a list of currently allowed IPs' endpoint. Required: ips. Returns the new IpAccessManagement2xx.",
"method": "POST",
"path": "/v3/access_settings/whitelist",
"params": [
{
"name": "ips",
"type": "array",
"location": "body",
"description": "An array containing the IP(s) you want to allow.",
"required": true
}
]
},
{
"name": "access-settings_delete-allowed-ip",
"description": "**This endpoint allows you to remove a specific IP address from your list of allowed addresses.** When removing a specific IP address from your list, you must include the ID in your call. You can retrieve the IDs associated with your allowed IP addresses using the 'Retrieve a list of currently allowed IPs' endpoint. Required: rule_id. Destructive.",
"method": "DELETE",
"path": "/v3/access_settings/whitelist/{rule_id}",
"params": [
{
"name": "rule_id",
"type": "string",
"location": "path",
"description": "The ID of the allowed IP address that you want to retrieve.",
"required": true
}
]
},
{
"name": "access-settings_delete-allowed-ips",
"description": "**This endpoint allows you to remove one or more IP addresses from your list of allowed addresses.** To remove one or more IP addresses, pass this endpoint an array containing the ID(s) associated with the IP(s) you intend to remove. You can retrieve the IDs associated with your allowed IP addresses using the 'Retrieve a list of currently allowed IPs' endpoint. It is possible to remove your own IP address, which will block access to your account. You will need to submit a [support ticket](https://sendgrid.com/docs/ui/account-and-settings/support/) if this happens. For this reason, it is important to double check that you are removing only the IPs you intend to remove when using this endpoint. Optional: ids. Destructive.",
"method": "DELETE",
"path": "/v3/access_settings/whitelist",
"params": [
{
"name": "ids",
"type": "array",
"location": "body",
"description": "An array of the IDs of the IP address that you want to remove from your allow list."
}
]
},
{
"name": "access-settings_get-allowed-ip",
"description": "**This endpoint allows you to retreive a specific IP address that has been allowed to access your account.** You must include the ID for the specific IP address you want to retrieve in your call. You can retrieve the IDs associated with your allowed IP addresses using the 'Retrieve a list of currently allowed IPs' endpoint. Required: rule_id. Returns the IpAccessManagement2xx.",
"method": "GET",
"path": "/v3/access_settings/whitelist/{rule_id}",
"params": [
{
"name": "rule_id",
"type": "string",
"location": "path",
"description": "The ID of the allowed IP address that you want to retrieve.",
"required": true
}
]
},
{
"name": "access-settings_list-access-activity",
"description": "**This endpoint allows you to retrieve a list of all of the IP addresses that recently attempted to access your account either through the User Interface or the API.**. Optional: limit (default: 20). Returns the AccessSettingsListAccessActivityResponse.",
"method": "GET",
"path": "/v3/access_settings/activity",
"params": [
{
"name": "limit",
"type": "int",
"location": "query",
"description": "Limits the number of IPs to return."
}
]
},
{
"name": "access-settings_list-allowed-ip",
"description": "**This endpoint allows you to retrieve a list of IP addresses that are currently allowed to access your account.** Each IP address returned to you will have `created_at` and `updated_at` dates. Each IP will also be associated with an `id` that can be used to remove the address from your allow list. Returns the IpAccessManagement2xx.",
"method": "GET",
"path": "/v3/access_settings/whitelist",
"params": []
},
{
"name": "alerts_create",
"description": "**This endpoint allows you to create a new alert.**. Required: email_to, type. Optional: frequency, percentage. Returns the new AlertsCreateResponse.",
"method": "POST",
"path": "/v3/alerts",
"params": [
{
"name": "email_to",
"type": "string",
"location": "body",
"description": "The email address the alert will be sent to. Example: test@example.com",
"required": true
},
{
"name": "frequency",
"type": "string",
"location": "body",
"description": "Required for stats_notification. How frequently the alert will be sent. Example: daily"
},
{
"name": "percentage",
"type": "int",
"location": "body",
"description": "Required for usage_limit. When this usage threshold is reached, the alert will be sent. Example: 90"
},
{
"name": "type",
"type": "string",
"location": "body",
"description": "The type of alert you want to create. Can be either usage_limit or stats_notification. Example: usage_limit",
"required": true
}
]
},
{
"name": "alerts_delete",
"description": "**This endpoint allows you to delete an alert.**. Required: alert_id. Destructive.",
"method": "DELETE",
"path": "/v3/alerts/{alert_id}",
"params": [
{
"name": "alert_id",
"type": "int",
"location": "path",
"description": "The ID of the alert you would like to retrieve.",
"required": true
}
]
},
{
"name": "alerts_get",
"description": "**This endpoint allows you to retrieve a specific alert.**. Required: alert_id. Returns the AlertsGetResponse.",
"method": "GET",
"path": "/v3/alerts/{alert_id}",
"params": [
{
"name": "alert_id",
"type": "int",
"location": "path",
"description": "The ID of the alert you would like to retrieve.",
"required": true
}
]
},
{
"name": "alerts_list",
"description": "**This endpoint allows you to retrieve all of your alerts.**. Returns array of AlertsListItem.",
"method": "GET",
"path": "/v3/alerts",
"params": []
},
{
"name": "alerts_update",
"description": "**This endpoint allows you to update an alert.**. Required: alert_id. Optional: email_to, frequency, percentage. Returns the updated AlertsUpdateResponse.",
"method": "PATCH",
"path": "/v3/alerts/{alert_id}",
"params": [
{
"name": "alert_id",
"type": "int",
"location": "path",
"description": "The ID of the alert you would like to retrieve.",
"required": true
},
{
"name": "email_to",
"type": "string",
"location": "body",
"description": "The new email address you want your alert to be sent to. Example: test@example.com"
},
{
"name": "frequency",
"type": "string",
"location": "body",
"description": "The new frequency at which to send the stats_notification alert. Example: monthly"
},
{
"name": "percentage",
"type": "int",
"location": "body",
"description": "The new percentage threshold at which the usage_limit alert will be sent. Example: 90"
}
]
},
{
"name": "api-keys_create",
"description": "**This endpoint allows you to create a new API Key for the user.** To create your initial SendGrid API Key, you should [use the SendGrid App](https://app.sendgrid.com/settings/api_keys). Once you have created a first key with scopes to manage additional API keys, you can use this API for all other key management. A JSON request body containing a `name` property is required when making requests to this endpoint. If the number of maximum keys, 100, is reached, a `403` status will be returned. Though the `name` field is required, it does not need to be unique. A unique API key ID will be generated for each key you create and returned in the response body. It is not necessary to pass a `scopes` field to the API when creating a key, but you should be aware that omitting the `scopes` field from your request will create a key with 'Full Access' permissions by default. See the [API Key Permissions List](https://docs.sendgrid.com/api-reference/how-to-use-the-sendgrid-v3-api/authorization) for all available scopes. An API key's scopes can be updated after creation using the 'Update API keys' endpoint. Required: name. Optional: scopes. Returns the new ApiKeysCreateResponse.",
"method": "POST",
"path": "/v3/api_keys",
"params": [
{
"name": "name",
"type": "string",
"location": "body",
"description": "The name you will use to describe this API Key.",
"required": true
},
{
"name": "scopes",
"type": "array",
"location": "body",
"description": "The individual permissions that you are giving to this API Key."
}
]
},
{
"name": "api-keys_delete",
"description": "**This endpoint allows you to revoke an existing API Key using an `api_key_id`** Authentications using a revoked API Key will fail after after some small propogation delay. If the API Key ID does not exist, a `404` status will be returned. Required: api_key_id. Destructive.",
"method": "DELETE",
"path": "/v3/api_keys/{api_key_id}",
"params": [
{
"name": "api_key_id",
"type": "string",
"location": "path",
"description": "Api key id",
"required": true
}
]
},
{
"name": "api-keys_get",
"description": "**This endpoint allows you to retrieve a single API key using an `api_key_id`.** The endpoint will return a key's name, ID, and scopes. If the API Key ID does not, exist a `404` status will be returned. See the [API Key Permissions List](https://docs.sendgrid.com/api-reference/how-to-use-the-sendgrid-v3-api/authorization) for all available scopes. An API key's scopes can be updated after creation using the 'Update API keys' endpoint. Required: api_key_id. Returns the ApiKeysGetResponse.",
"method": "GET",
"path": "/v3/api_keys/{api_key_id}",
"params": [
{
"name": "api_key_id",
"type": "string",
"location": "path",
"description": "Api key id",
"required": true
}
]
},
{
"name": "api-keys_list",
"description": "**This endpoint allows you to retrieve all API Keys that belong to the authenticated user.** A successful response from this API will include all available API keys' names and IDs. For security reasons, there is not a way to retrieve the key itself after it's created. If you lose your API key, you must create a new one. Only the 'Create API keys' endpoint will return a key to you and only at the time of creation. An `api_key_id` can be used to update or delete the key, as well as retrieve the key's details, such as its scopes. Optional: limit. Returns the ApiKeysListResponse.",
"method": "GET",
"path": "/v3/api_keys",
"params": [
{
"name": "limit",
"type": "int",
"location": "query",
"description": "Limit"
}
]
},
{
"name": "api-keys_update",
"description": "**This endpoint allows you to update the name and scopes of a given API key.** You must pass this endpoint a JSON request body with a `name` field and a `scopes` array containing at least one scope. The `name` and `scopes` fields will be used to update the key associated with the `api_key_id` in the request URL. If you need to update a key's scopes only, pass the `name` field with the key's existing name; the `name` will not be modified. If you need to update a key's name only, use the 'Update API key name' endpoint. See the [API Key Permissions List](https://docs.sendgrid.com/api-reference/how-to-use-the-sendgrid-v3-api/authorization) for all available scopes. Required: api_key_id, name. Optional: scopes. Returns the updated ApiKeyResponse.",
"method": "PUT",
"path": "/v3/api_keys/{api_key_id}",
"params": [
{
"name": "api_key_id",
"type": "string",
"location": "path",
"description": "Api key id",
"required": true
},
{
"name": "name",
"type": "string",
"location": "body",
"description": "Name",
"required": true
},
{
"name": "scopes",
"type": "array",
"location": "body",
"description": "Scopes"
}
]
},
{
"name": "api-keys_update-name",
"description": "**This endpoint allows you to update the name of an existing API Key.** You must pass this endpoint a JSON request body with a `name` property, which will be used to rename the key associated with the `api_key_id` passed in the URL. Required: api_key_id, name. Returns the updated ApiKeyResponse.",
"method": "PATCH",
"path": "/v3/api_keys/{api_key_id}",
"params": [
{
"name": "api_key_id",
"type": "string",
"location": "path",
"description": "Api key id",
"required": true
},
{
"name": "name",
"type": "string",
"location": "body",
"description": "The new name of the API Key.",
"required": true
}
]
},
{
"name": "asm_add-suppression-to-group",
"description": "**This endpoint allows you to add email addresses to an unsubscribe group.** If you attempt to add suppressions to a group that has been deleted or does not exist, the suppressions will be added to the global suppressions list. Required: group_id, recipient_emails. Returns the new AsmAddSuppressionToGroupResponse.",
"method": "POST",
"path": "/v3/asm/groups/{group_id}/suppressions",
"params": [
{
"name": "group_id",
"type": "string",
"location": "path",
"description": "The id of the unsubscribe group that you are adding suppressions to.",
"required": true
},
{
"name": "recipient_emails",
"type": "array",
"location": "body",
"description": "The array of email addresses to add or find.",
"required": true
}
]
},
{
"name": "asm_creat-group",
"description": "**This endpoint allows you to create a new suppression group.** To add an email address to the suppression group, [create a Suppression](https://docs.sendgrid.com/api-reference/suppressions-suppressions/add-suppressions-to-a-suppression-group). Optional: description, is_default, name. Returns the new AsmCreatGroupResponse.",
"method": "POST",
"path": "/v3/asm/groups",
"params": [
{
"name": "description",
"type": "string",
"location": "body",
"description": "A brief description of your suppression group. Required when creating a group."
},
{
"name": "is_default",
"type": "bool",
"location": "body",
"description": "Indicates if you would like this to be your default suppression group."
},
{
"name": "name",
"type": "string",
"location": "body",
"description": "The name of your suppression group. Required when creating a group."
}
]
},
{
"name": "asm_create-global-suppression",
"description": "**This endpoint allows you to add one or more email addresses to the global suppressions group.**. Required: recipient_emails. Returns the new AsmCreateGlobalSuppressionResponse.",
"method": "POST",
"path": "/v3/asm/suppressions/global",
"params": [
{
"name": "recipient_emails",
"type": "array",
"location": "body",
"description": "The array of email addresses to add or find.",
"required": true
}
]
},
{
"name": "asm_delete-global-suppression",
"description": "**This endpoint allows you to remove an email address from the global suppressions group.** Deleting a suppression group will remove the suppression, meaning email will once again be sent to the previously suppressed addresses. This should be avoided unless a recipient indicates they wish to receive email from you again. You can use our [bypass filters](https://sendgrid.com/docs/ui/sending-email/index-suppressions/#bypass-suppressions) to deliver messages to otherwise suppressed addresses when exceptions are required. Required: email. Destructive.",
"method": "DELETE",
"path": "/v3/asm/suppressions/global/{email}",
"params": [
{
"name": "email",
"type": "string",
"location": "path",
"description": "The email address of the global suppression you want to retrieve. Or, if you want to check if an email address is on the global suppressions list, enter that email address here.",
"required": true
}
]
},
{
"name": "asm_delete-group",
"description": "**This endpoint allows you to delete a suppression group.** If a recipient uses the 'one-click unsubscribe' option on an email associated with a deleted group, that recipient will be added to the global suppression list. Deleting a suppression group will remove the suppression, meaning email will once again be sent to the previously suppressed addresses. This should be avoided unless a recipient indicates they wish to receive email from you again. You can use our [bypass filters](https://sendgrid.com/docs/ui/sending-email/index-suppressions/#bypass-suppressions) to deliver messages to otherwise suppressed addresses when exceptions are required. Required: group_id. Destructive.",
"method": "DELETE",
"path": "/v3/asm/groups/{group_id}",
"params": [
{
"name": "group_id",
"type": "string",
"location": "path",
"description": "The ID of the suppression group you would like to retrieve.",
"required": true
}
]
},
{
"name": "asm_delete-suppression-from-group",
"description": "**This endpoint allows you to remove a suppressed email address from the given suppression group.** Removing an address will remove the suppression, meaning email will once again be sent to the previously suppressed addresses. This should be avoided unless a recipient indicates they wish to receive email from you again. You can use our [bypass filters](https://sendgrid.com/docs/ui/sending-email/index-suppressions/#bypass-suppressions) to deliver messages to otherwise suppressed addresses when exceptions are required. Required: group_id, email. Destructive.",
"method": "DELETE",
"path": "/v3/asm/groups/{group_id}/suppressions/{email}",
"params": [
{
"name": "group_id",
"type": "string",
"location": "path",
"description": "The id of the suppression group that you are removing an email address from.",
"required": true
},
{
"name": "email",
"type": "string",
"location": "path",
"description": "The email address that you want to remove from the suppression group.",
"required": true
}
]
},
{
"name": "asm_get-global-suppression",
"description": "**This endpoint allows you to retrieve a global suppression. You can also use this endpoint to confirm if an email address is already globally suppresed.** If the email address you include in the URL path parameter `{email}` is already globally suppressed, the response will include that email address. If the address you enter for `{email}` is not globally suppressed, an empty JSON object `{}` will be returned. Required: email. Returns the RetrieveAGlobalSuppressionResponse.",
"method": "GET",
"path": "/v3/asm/suppressions/global/{email}",
"params": [
{
"name": "email",
"type": "string",
"location": "path",
"description": "The email address of the global suppression you want to retrieve. Or, if you want to check if an email address is on the global suppressions list, enter that email address here.",
"required": true
}
]
},
{
"name": "asm_get-group",
"description": "**This endpoint allows you to retrieve a single suppression group.**. Required: group_id. Returns the AsmGetGroupResponse.",
"method": "GET",
"path": "/v3/asm/groups/{group_id}",
"params": [
{
"name": "group_id",
"type": "string",
"location": "path",
"description": "The ID of the suppression group you would like to retrieve.",
"required": true
}
]
},
{
"name": "asm_get-suppression",
"description": "**This endpoint returns a list of all groups from which the given email address has been unsubscribed.**. Required: email.",
"method": "GET",
"path": "/v3/asm/suppressions/{email}",
"params": [
{
"name": "email",
"type": "string",
"location": "path",
"description": "The email address that you want to search suppression groups for.",
"required": true
}
]
},
{
"name": "asm_list-group",
"description": "**This endpoint allows you to retrieve a list of all suppression groups created by this user.** This endpoint can also return information for multiple group IDs that you include in your request. To add a group ID to your request, simply append `?id=123456\u0026id=123456`, with the appropriate group IDs. Optional: id. Returns array of SuppressionGroup.",
"method": "GET",
"path": "/v3/asm/groups",
"params": [
{
"name": "id",
"type": "int",
"location": "query",
"description": "The ID of the suppression group(s) you want to retrieve."
}
]
},
{
"name": "asm_list-suppression",
"description": "**This endpoint allows you to retrieve a list of all suppressions.**. Returns array of AsmListSuppressionItem.",
"method": "GET",
"path": "/v3/asm/suppressions",
"params": []
},
{
"name": "asm_list-suppression-from-group",
"description": "**This endpoint allows you to retrieve all suppressed email addresses belonging to the given group.**. Required: group_id. Returns array of string.",
"method": "GET",
"path": "/v3/asm/groups/{group_id}/suppressions",
"params": [
{
"name": "group_id",
"type": "string",
"location": "path",
"description": "The id of the unsubscribe group that you are adding suppressions to.",
"required": true
}
]
},
{
"name": "asm_search-suppression-from-group",
"description": "**This endpoint allows you to search a suppression group for multiple suppressions.** When given a list of email addresses and a group ID, this endpoint will only return the email addresses that have been unsubscribed from the given group. Required: group_id, recipient_emails. Returns array of string.",
"method": "POST",
"path": "/v3/asm/groups/{group_id}/suppressions/search",
"params": [
{
"name": "group_id",
"type": "string",
"location": "path",
"description": "The ID of the suppression group that you would like to search.",
"required": true
},
{
"name": "recipient_emails",
"type": "array",
"location": "body",
"description": "The array of email addresses to add or find.",
"required": true
}
]
},
{
"name": "asm_update-group",
"description": "**This endpoint allows you to update or change a suppression group.**. Required: group_id. Optional: description, is_default, name. Returns the updated SuppressionGroup.",
"method": "PATCH",
"path": "/v3/asm/groups/{group_id}",
"params": [
{
"name": "group_id",
"type": "string",
"location": "path",
"description": "The ID of the suppression group you would like to retrieve.",
"required": true
},
{
"name": "description",
"type": "string",
"location": "body",
"description": "A brief description of your suppression group. Required when creating a group."
},
{
"name": "is_default",
"type": "bool",
"location": "body",
"description": "Indicates if you would like this to be your default suppression group."
},
{
"name": "name",
"type": "string",
"location": "body",
"description": "The name of your suppression group. Required when creating a group."
}
]
},
{
"name": "browsers_list-stat",
"description": "**This endpoint allows you to retrieve your email statistics segmented by browser type.** **We only store up to 7 days of email activity in our database.** By default, 500 items will be returned per request via the Advanced Stats API endpoints. Advanced Stats provide a more in-depth view of your email statistics and the actions taken by your recipients. You can segment these statistics by geographic location, device type, client type, browser, and mailbox provider. For more information about statistics, please see our [Statistics Overview](https://sendgrid.com/docs/ui/analytics-and-reporting/stats-overview/). Required: start_date. Optional: browsers, limit, offset (plus 2 more). Returns array of BrowsersListStatItem.",
"method": "GET",
"path": "/v3/browsers/stats",
"params": [
{
"name": "browsers",
"type": "string",
"location": "query",
"description": "The browsers to get statistics for. You can include up to 10 different browsers by including this parameter multiple times."
},
{
"name": "limit",
"type": "int",
"location": "query",
"description": "The number of results to return."
},
{
"name": "offset",
"type": "int",
"location": "query",
"description": "The point in the list to begin retrieving results."
},
{
"name": "aggregated_by",
"type": "string",
"location": "query",
"description": "How to group the statistics. Must be either 'day', 'week', or 'month'."
},
{
"name": "start_date",
"type": "string",
"location": "query",
"description": "The starting date of the statistics to retrieve. Must follow format YYYY-MM-DD.",
"required": true
},
{
"name": "end_date",
"type": "string",
"location": "query",
"description": "The end date of the statistics to retrieve. Defaults to today. Must follow format YYYY-MM-DD."
}
]
},
{
"name": "campaigns_create",
"description": "**This endpoint allows you to create a campaign.** In order to send or schedule the campaign, you will be required to provide a subject, sender ID, content (we suggest both html and plain text), and at least one list or segment ID. This information is not required when you create a campaign. Required: title. Optional: categories, custom_unsubscribe_url, editor (plus 8 more). Returns the new Campaigns2xx.",
"method": "POST",
"path": "/v3/campaigns",
"params": [
{
"name": "categories",
"type": "array",
"location": "body",
"description": "The categories you would like associated to this campaign."
},
{
"name": "custom_unsubscribe_url",
"type": "string",
"location": "body",
"description": "This is the url of the custom unsubscribe page that you provide for customers to unsubscribe from your suppression groups."
},
{
"name": "editor",
"type": "string",
"location": "body",
"description": "The editor used in the UI."
},
{
"name": "html_content",
"type": "string",
"location": "body",
"description": "The HTML of your marketing email."
},
{
"name": "ip_pool",
"type": "string",
"location": "body",
"description": "The pool of IPs that you would like to send this email from."
},
{
"name": "list_ids",
"type": "array",
"location": "body",
"description": "The IDs of the lists you are sending this campaign to. You can have both segment IDs and list IDs"
},
{
"name": "plain_content",
"type": "string",
"location": "body",
"description": "The plain text content of your emails."
},
{
"name": "segment_ids",
"type": "array",
"location": "body",
"description": "The segment IDs that you are sending this list to. You can have both segment IDs and list IDs. Segments are limited to 10 segment IDs."
},
{
"name": "sender_id",
"type": "int",
"location": "body",
"description": "The ID of the 'sender' identity that you have created. Your recipients will see this as the 'from' on your marketing emails."
},
{
"name": "subject",
"type": "string",
"location": "body",
"description": "The subject of your campaign that your recipients will see."
},
{
"name": "suppression_group_id",
"type": "int",
"location": "body",
"description": "The suppression group that this marketing email belongs to, allowing recipients to opt-out of emails of this type."
},
{
"name": "title",
"type": "string",
"location": "body",
"description": "The display title of your campaign. This will be viewable by you in the Marketing Campaigns UI.",
"required": true
}
]
},
{
"name": "campaigns_delete",
"description": "**This endpoint allows you to delete a specific campaign.**. Required: campaign_id. Destructive.",
"method": "DELETE",
"path": "/v3/campaigns/{campaign_id}",
"params": [
{
"name": "campaign_id",
"type": "int",
"location": "path",
"description": "The id of the campaign you would like to retrieve.",
"required": true
}
]
},
{
"name": "campaigns_get",
"description": "**This endpoint allows you to retrieve a specific campaign.**. Required: campaign_id. Returns the CampaignsGetResponse.",
"method": "GET",
"path": "/v3/campaigns/{campaign_id}",
"params": [
{
"name": "campaign_id",
"type": "int",
"location": "path",
"description": "The id of the campaign you would like to retrieve.",
"required": true
}
]
},
{
"name": "campaigns_list",
"description": "**This endpoint allows you to retrieve a paginated list of all of your campaigns.** Returns campaigns in reverse order they were created (newest first). Returns an empty array if no campaigns exist. You can use the `limit` query parameter to set the page size. If your list contains more items than the page size permits, you can make multiple requests. Use the `offset` query parameter to control the position in the list from which to start retrieving additional items. Optional: limit (default: 10), offset (default: 0).",
"method": "GET",
"path": "/v3/campaigns",
"params": [
{
"name": "limit",
"type": "int",
"location": "query",
"description": "`limit` sets the page size, i."
},
{
"name": "offset",
"type": "int",
"location": "query",
"description": "The number of items in the list to skip over before starting to retrieve the items for the..."
}
]
},
{
"name": "campaigns_update",
"description": "**This endpoint allows you to update a specific campaign.** This is especially useful if you only set up the campaign using POST /campaigns, but didn't set many of the parameters. Required: campaign_id, categories, html_content, plain_content, subject, title. Returns the updated Campaigns2xx.",
"method": "PATCH",
"path": "/v3/campaigns/{campaign_id}",
"params": [
{
"name": "campaign_id",
"type": "int",
"location": "path",
"description": "The id of the campaign you would like to retrieve.",
"required": true
},
{
"name": "categories",
"type": "array",
"location": "body",
"description": "The categories you want to tag on this campaign.",
"required": true
},
{
"name": "html_content",
"type": "string",
"location": "body",
"description": "The HTML content of this campaign.",
"required": true
},
{
"name": "plain_content",
"type": "string",
"location": "body",
"description": "The plain content of this campaign.",
"required": true
},
{
"name": "subject",
"type": "string",
"location": "body",
"description": "The subject line for your campaign.",
"required": true
},
{
"name": "title",
"type": "string",
"location": "body",
"description": "The title of the campaign.",
"required": true
}
]
},
{
"name": "campaigns_schedules_campaign",
"description": "**This endpoint allows you to schedule a specific date and time for your campaign to be sent.** If you have the flexibility, it's better to schedule mail for off-peak times. Most emails are scheduled and sent at the top of the hour or half hour. Scheduling email to avoid those times (for example, scheduling at 10:53) can result in lower deferral rates because it won't be going through our servers at the same times as everyone else's mail. Required: campaign_id, send_at. Returns the new ScheduleACampaignResponse.",
"method": "POST",
"path": "/v3/campaigns/{campaign_id}/schedules",
"params": [
{
"name": "campaign_id",
"type": "int",
"location": "path",
"description": "Campaign id",
"required": true
},
{
"name": "send_at",
"type": "int",
"location": "body",
"description": "The unix timestamp for the date and time you would like your campaign to be sent out.",
"required": true
}
]
},
{
"name": "campaigns_schedules_get-scheduled-campaign",
"description": "**This endpoint allows you to retrieve the date and time that a campaign has been scheduled to be sent.**. Required: campaign_id. Returns the ViewScheduledTimeOfACampaignResponse.",
"method": "GET",
"path": "/v3/campaigns/{campaign_id}/schedules",
"params": [
{
"name": "campaign_id",
"type": "int",
"location": "path",
"description": "Campaign id",
"required": true
}
]
},
{
"name": "campaigns_schedules_send-campaign",
"description": "**This endpoint allows you to immediately send an existing campaign.** Normally a POST request would have a body, but since this endpoint is telling us to send a resource that is already created, a request body is not needed. Required: campaign_id. Returns the new SendACampaignResponse.",
"method": "POST",
"path": "/v3/campaigns/{campaign_id}/schedules/now",
"params": [
{
"name": "campaign_id",
"type": "int",
"location": "path",
"description": "Campaign id",
"required": true
}
]
},
{
"name": "campaigns_schedules_send-test-campaign",
"description": "**This endpoint allows you to send a test campaign.** To send to multiple addresses, use an array for the JSON 'to' value ['one@address','two@address']. Required: campaign_id, to. Returns the new SendATestCampaignRequest.",
"method": "POST",
"path": "/v3/campaigns/{campaign_id}/schedules/test",
"params": [
{
"name": "campaign_id",
"type": "int",
"location": "path",
"description": "Campaign id",
"required": true
},
{
"name": "to",
"type": "string",
"location": "body",
"description": "The email address that should receive the test campaign.",
"required": true
}
]
},
{
"name": "campaigns_schedules_un-campaign",
"description": "**This endpoint allows you to unschedule a campaign that has already been scheduled to be sent.** A successful unschedule will return a 204. If the specified campaign is in the process of being sent, the only option is to cancel (a different method). Required: campaign_id. Destructive.",
"method": "DELETE",
"path": "/v3/campaigns/{campaign_id}/schedules",
"params": [
{
"name": "campaign_id",
"type": "int",
"location": "path",
"description": "Campaign id",
"required": true
}
]
},
{
"name": "campaigns_schedules_update-scheduled-campaign",
"description": "**This endpoint allows to you change the scheduled time and date for a campaign to be sent.**. Required: campaign_id, send_at. Returns the updated UpdateAScheduledCampaignResponse.",
"method": "PATCH",
"path": "/v3/campaigns/{campaign_id}/schedules",
"params": [
{
"name": "campaign_id",
"type": "int",
"location": "path",
"description": "Campaign id",
"required": true
},
{
"name": "send_at",
"type": "int",
"location": "body",
"description": "Send at",
"required": true
}
]
},
{
"name": "categories_list-category",
"description": "**This endpoint allows you to retrieve a paginated list of all of your categories.** You can use the `limit` query parameter to set the page size. If your list contains more items than the page size permits, you can make multiple requests. Use the `offset` query parameter to control the position in the list from which to start retrieving additional items. Optional: limit (default: 50), category, offset (default: 0). Returns array of CategoriesListCategoryItem.",
"method": "GET",
"path": "/v3/categories",
"params": [
{
"name": "limit",
"type": "int",
"location": "query",
"description": "`limit` sets the page size, i."
},
{
"name": "category",
"type": "string",
"location": "query",
"description": "Allows you to perform a prefix search on this particular category."
},
{
"name": "offset",
"type": "int",
"location": "query",
"description": "The number of items in the list to skip over before starting to retrieve the items for the..."
}
]
},
{
"name": "categories_list-category-stat",
"description": "**This endpoint allows you to retrieve all of your email statistics for each of your categories.** If you do not define any query parameters, this endpoint will return a sum for each category in groups of 10. Required: start_date, categories. Optional: end_date, aggregated_by. Returns array of CategoryStats.",
"method": "GET",
"path": "/v3/categories/stats",
"params": [
{
"name": "start_date",
"type": "string",
"location": "query",
"description": "The starting date of the statistics to retrieve. Must follow format YYYY-MM-DD",
"required": true
},
{
"name": "end_date",
"type": "string",
"location": "query",
"description": "The end date of the statistics to retrieve. Defaults to today. Must follow format YYYY-MM-DD."
},
{
"name": "categories",
"type": "string",
"location": "query",
"description": "The individual categories that you want to retrieve statistics for. You may include up to 10 different categories.",
"required": true
},
{
"name": "aggregated_by",
"type": "string",
"location": "query",
"description": "How to group the statistics. Must be either 'day', 'week', or 'month'."
}
]
},
{
"name": "categories_list-category-stat-sum",
"description": "**This endpoint allows you to retrieve the total sum of each email statistic for every category over the given date range.** If you do not define any query parameters, this endpoint will return a sum for each category in groups of 10. Required: start_date. Optional: sort_by_metric (default: delivered), sort_by_direction (default: desc), end_date (plus 3 more). Returns the CategoryStats.",
"method": "GET",
"path": "/v3/categories/stats/sums",
"params": [
{
"name": "sort_by_metric",
"type": "string",
"location": "query",
"description": "The metric that you want to sort by. Must be a single metric."
},
{
"name": "sort_by_direction",
"type": "string",
"location": "query",
"description": "The direction you want to sort."
},
{
"name": "start_date",
"type": "string",
"location": "query",
"description": "The starting date of the statistics to retrieve. Must follow format YYYY-MM-DD.",
"required": true
},
{
"name": "end_date",
"type": "string",
"location": "query",