summaryrefslogtreecommitdiffstats
path: root/USAGE.md
diff options
context:
space:
mode:
Diffstat (limited to 'USAGE.md')
-rw-r--r--USAGE.md274
1 files changed, 261 insertions, 13 deletions
diff --git a/USAGE.md b/USAGE.md
index 0490a4d..c8e0261 100644
--- a/USAGE.md
+++ b/USAGE.md
@@ -51,6 +51,7 @@ For more information, please see our [User Guide](http://sendgrid.com/docs/User_
### GET /access_settings/activity
+
```csharp
string queryParams = @"{
'limit': 1
@@ -74,6 +75,7 @@ For more information, please see our [User Guide](http://sendgrid.com/docs/User_
### POST /access_settings/whitelist
+
```csharp
string data = @"{
'ips': [
@@ -105,6 +107,7 @@ For more information, please see our [User Guide](http://sendgrid.com/docs/User_
### GET /access_settings/whitelist
+
```csharp
dynamic response = sg.client.access_settings.whitelist.get();
Console.WriteLine(response.StatusCode);
@@ -125,6 +128,7 @@ For more information, please see our [User Guide](http://sendgrid.com/docs/User_
### DELETE /access_settings/whitelist
+
```csharp
string data = @"{
'ids': [
@@ -152,6 +156,7 @@ For more information, please see our [User Guide](http://sendgrid.com/docs/User_
### GET /access_settings/whitelist/{rule_id}
+
```csharp
var rule_id = "test_url_param";
dynamic response = sg.client.access_settings.whitelist._(rule_id).get();
@@ -173,6 +178,7 @@ For more information, please see our [User Guide](http://sendgrid.com/docs/User_
### DELETE /access_settings/whitelist/{rule_id}
+
```csharp
var rule_id = "test_url_param";
dynamic response = sg.client.access_settings.whitelist._(rule_id).delete();
@@ -199,6 +205,7 @@ See the [API Key Permissions List](https://sendgrid.com/docs/API_Reference/Web_A
### POST /api_keys
+
```csharp
string data = @"{
'name': 'My API Key',
@@ -223,6 +230,7 @@ The API Keys feature allows customers to be able to generate an API Key credenti
### GET /api_keys
+
```csharp
dynamic response = sg.client.api_keys.get();
Console.WriteLine(response.StatusCode);
@@ -243,6 +251,7 @@ The API Keys feature allows customers to be able to generate an API Key credenti
### PUT /api_keys/{api_key_id}
+
```csharp
string data = @"{
'name': 'A New Hope',
@@ -275,6 +284,7 @@ The API Keys feature allows customers to be able to generate an API Key credenti
### PATCH /api_keys/{api_key_id}
+
```csharp
string data = @"{
'name': 'A New Hope'
@@ -295,6 +305,7 @@ If the API Key ID does not exist an HTTP 404 will be returned.
### GET /api_keys/{api_key_id}
+
```csharp
var api_key_id = "test_url_param";
dynamic response = sg.client.api_keys._(api_key_id).get();
@@ -320,6 +331,7 @@ The API Keys feature allows customers to be able to generate an API Key credenti
### DELETE /api_keys/{api_key_id}
+
```csharp
var api_key_id = "test_url_param";
dynamic response = sg.client.api_keys._(api_key_id).delete();
@@ -332,9 +344,9 @@ Console.ReadLine();
<a name="asm"></a>
# ASM
-## Create a Group
+## Create a new suppression group
-**This endoint allows you to create a new suppression group.**
+**This endpoint allows you to create a new suppression group.**
Suppression groups, or unsubscribe groups, are specific types or categories of email that you would like your recipients to be able to unsubscribe from. For example: Daily Newsletters, Invoices, System Alerts.
@@ -344,11 +356,12 @@ Each user can create up to 25 different suppression groups.
### POST /asm/groups
+
```csharp
string data = @"{
- 'description': 'A group description',
- 'is_default': false,
- 'name': 'A group name'
+ 'description': 'Suggestions for products our users might like.',
+ 'is_default': true,
+ 'name': 'Product Suggestions'
}";
dynamic response = sg.client.asm.groups.post(requestBody: data);
Console.WriteLine(response.StatusCode);
@@ -357,20 +370,20 @@ Console.WriteLine(response.Headers.ToString());
Console.ReadLine();
```
-## Retrieve all suppression groups associated with the user.
-
-**This endpoint allows you to retrieve a list of all suppression groups created by this user.**
+## Retrieve information about multiple suppression groups
-Suppression groups, or unsubscribe groups, are specific types or categories of email that you would like your recipients to be able to unsubscribe from. For example: Daily Newsletters, Invoices, System Alerts.
+**This endpoint allows you to retrieve information about multiple suppression groups.**
-The **name** and **description** of the unsubscribe group will be visible by recipients when they are managing their subscriptions.
-
-Each user can create up to 25 different suppression groups.
+This endpoint will return information for each group ID that you include in your request. To add a group ID to your request, simply append `&id=` followed by the group ID.
### GET /asm/groups
+
```csharp
-dynamic response = sg.client.asm.groups.get();
+string queryParams = @"{
+ 'id': 1
+}";
+dynamic response = sg.client.asm.groups.get(queryParams: queryParams);
Console.WriteLine(response.StatusCode);
Console.WriteLine(response.Body.ReadAsStringAsync().Result);
Console.WriteLine(response.Headers.ToString());
@@ -389,6 +402,7 @@ Each user can create up to 25 different suppression groups.
### PATCH /asm/groups/{group_id}
+
```csharp
string data = @"{
'description': 'Suggestions for items our users might like.',
@@ -415,6 +429,7 @@ Each user can create up to 25 different suppression groups.
### GET /asm/groups/{group_id}
+
```csharp
var group_id = "test_url_param";
dynamic response = sg.client.asm.groups._(group_id).get();
@@ -438,6 +453,7 @@ Each user can create up to 25 different suppression groups.
### DELETE /asm/groups/{group_id}
+
```csharp
var group_id = "test_url_param";
dynamic response = sg.client.asm.groups._(group_id).delete();
@@ -457,6 +473,7 @@ Suppressions are recipient email addresses that are added to [unsubscribe groups
### POST /asm/groups/{group_id}/suppressions
+
```csharp
string data = @"{
'recipient_emails': [
@@ -480,6 +497,7 @@ Suppressions are recipient email addresses that are added to [unsubscribe groups
### GET /asm/groups/{group_id}/suppressions
+
```csharp
var group_id = "test_url_param";
dynamic response = sg.client.asm.groups._(group_id).suppressions.get();
@@ -497,6 +515,7 @@ Suppressions are recipient email addresses that are added to [unsubscribe groups
### DELETE /asm/groups/{group_id}/suppressions/{email}
+
```csharp
var group_id = "test_url_param";
var email = "test_url_param";
@@ -507,6 +526,23 @@ Console.WriteLine(response.Headers.ToString());
Console.ReadLine();
```
+## Retrieve all suppressions
+
+**This endpoint allows you to retrieve a list of all suppressions.**
+
+Suppressions are email addresses that can be added to [groups](https://sendgrid.com/docs/API_Reference/Web_API_v3/Suppression_Management/groups.html) to prevent certain types of emails from being delivered to those addresses.
+
+### GET /asm/suppressions
+
+
+```csharp
+dynamic response = sg.client.asm.suppressions.get();
+Console.WriteLine(response.StatusCode);
+Console.WriteLine(response.Body.ReadAsStringAsync().Result);
+Console.WriteLine(response.Headers.ToString());
+Console.ReadLine();
+```
+
## Add recipient addresses to the global suppression group.
**This endpoint allows you to add one or more email addresses to the global suppressions group.**
@@ -515,6 +551,7 @@ A global suppression (or global unsubscribe) is an email address of a recipient
### POST /asm/suppressions/global
+
```csharp
string data = @"{
'recipient_emails': [
@@ -539,6 +576,7 @@ A global suppression (or global unsubscribe) is an email address of a recipient
### GET /asm/suppressions/global/{email}
+
```csharp
var email = "test_url_param";
dynamic response = sg.client.asm.suppressions.global._(email).get();
@@ -556,6 +594,7 @@ A global suppression (or global unsubscribe) is an email address of a recipient
### DELETE /asm/suppressions/global/{email}
+
```csharp
var email = "test_url_param";
dynamic response = sg.client.asm.suppressions.global._(email).delete();
@@ -565,6 +604,24 @@ Console.WriteLine(response.Headers.ToString());
Console.ReadLine();
```
+## Retrieve all suppression groups for an email address
+
+**This endpoint will return a list of all suppression groups, indicating if the given email address is suppressed for each group.**
+
+Suppressions are email addresses that can be added to [groups](https://sendgrid.com/docs/API_Reference/Web_API_v3/Suppression_Management/groups.html) to prevent certain types of emails from being delivered to those addresses.
+
+### GET /asm/suppressions/{email}
+
+
+```csharp
+var email = "test_url_param";
+dynamic response = sg.client.asm.suppressions._(email).get();
+Console.WriteLine(response.StatusCode);
+Console.WriteLine(response.Body.ReadAsStringAsync().Result);
+Console.WriteLine(response.Headers.ToString());
+Console.ReadLine();
+```
+
<a name="browsers"></a>
# BROWSERS
@@ -578,6 +635,7 @@ Advanced Stats provide a more in-depth view of your email statistics and the act
### GET /browsers/stats
+
```csharp
string queryParams = @"{
'aggregated_by': 'day',
@@ -611,6 +669,7 @@ For more information:
### POST /campaigns
+
```csharp
string data = @"{
'categories': [
@@ -653,6 +712,7 @@ For more information:
### GET /campaigns
+
```csharp
string queryParams = @"{
'limit': 0,
@@ -675,6 +735,7 @@ For more information:
### PATCH /campaigns/{campaign_id}
+
```csharp
string data = @"{
'categories': [
@@ -705,6 +766,7 @@ For more information:
### GET /campaigns/{campaign_id}
+
```csharp
var campaign_id = "test_url_param";
dynamic response = sg.client.campaigns._(campaign_id).get();
@@ -726,6 +788,7 @@ For more information:
### DELETE /campaigns/{campaign_id}
+
```csharp
var campaign_id = "test_url_param";
dynamic response = sg.client.campaigns._(campaign_id).delete();
@@ -745,6 +808,7 @@ For more information:
### PATCH /campaigns/{campaign_id}/schedules
+
```csharp
string data = @"{
'send_at': 1489451436
@@ -767,6 +831,7 @@ For more information:
### POST /campaigns/{campaign_id}/schedules
+
```csharp
string data = @"{
'send_at': 1489771528
@@ -789,6 +854,7 @@ For more information:
### GET /campaigns/{campaign_id}/schedules
+
```csharp
var campaign_id = "test_url_param";
dynamic response = sg.client.campaigns._(campaign_id).schedules.get();
@@ -811,6 +877,7 @@ For more information:
### DELETE /campaigns/{campaign_id}/schedules
+
```csharp
var campaign_id = "test_url_param";
dynamic response = sg.client.campaigns._(campaign_id).schedules.delete();
@@ -832,6 +899,7 @@ For more information:
### POST /campaigns/{campaign_id}/schedules/now
+
```csharp
var campaign_id = "test_url_param";
dynamic response = sg.client.campaigns._(campaign_id).schedules.now.post();
@@ -853,6 +921,7 @@ For more information:
### POST /campaigns/{campaign_id}/schedules/test
+
```csharp
string data = @"{
'to': 'your.email@example.com'
@@ -876,6 +945,7 @@ Categories can help organize your email analytics by enabling you to tag emails
### GET /categories
+
```csharp
string queryParams = @"{
'category': 'test_string',
@@ -899,6 +969,7 @@ Categories allow you to group your emails together according to broad topics tha
### GET /categories/stats
+
```csharp
string queryParams = @"{
'aggregated_by': 'day',
@@ -925,6 +996,7 @@ Categories allow you to group your emails together according to broad topics tha
### GET /categories/stats/sums
+
```csharp
string queryParams = @"{
'aggregated_by': 'day',
@@ -955,6 +1027,7 @@ Advanced Stats provide a more in-depth view of your email statistics and the act
### GET /clients/stats
+
```csharp
string queryParams = @"{
'aggregated_by': 'day',
@@ -984,6 +1057,7 @@ Advanced Stats provide a more in-depth view of your email statistics and the act
### GET /clients/{client_type}/stats
+
```csharp
string queryParams = @"{
'aggregated_by': 'day',
@@ -1009,6 +1083,7 @@ The contactdb is a database of your contacts for [SendGrid Marketing Campaigns](
### POST /contactdb/custom_fields
+
```csharp
string data = @"{
'name': 'pet',
@@ -1029,6 +1104,7 @@ The contactdb is a database of your contacts for [SendGrid Marketing Campaigns](
### GET /contactdb/custom_fields
+
```csharp
dynamic response = sg.client.contactdb.custom_fields.get();
Console.WriteLine(response.StatusCode);
@@ -1045,6 +1121,7 @@ The contactdb is a database of your contacts for [SendGrid Marketing Campaigns](
### GET /contactdb/custom_fields/{custom_field_id}
+
```csharp
var custom_field_id = "test_url_param";
dynamic response = sg.client.contactdb.custom_fields._(custom_field_id).get();
@@ -1062,6 +1139,7 @@ The contactdb is a database of your contacts for [SendGrid Marketing Campaigns](
### DELETE /contactdb/custom_fields/{custom_field_id}
+
```csharp
var custom_field_id = "test_url_param";
dynamic response = sg.client.contactdb.custom_fields._(custom_field_id).delete();
@@ -1079,6 +1157,7 @@ The Contacts API helps you manage your [Marketing Campaigns](https://sendgrid.co
### POST /contactdb/lists
+
```csharp
string data = @"{
'name': 'your list name'
@@ -1098,6 +1177,7 @@ The Contacts API helps you manage your [Marketing Campaigns](https://sendgrid.co
### GET /contactdb/lists
+
```csharp
dynamic response = sg.client.contactdb.lists.get();
Console.WriteLine(response.StatusCode);
@@ -1114,6 +1194,7 @@ The Contacts API helps you manage your [Marketing Campaigns](https://sendgrid.co
### DELETE /contactdb/lists
+
```csharp
string data = @"[
1,
@@ -1137,6 +1218,7 @@ The Contacts API helps you manage your [Marketing Campaigns](https://sendgrid.co
### PATCH /contactdb/lists/{list_id}
+
```csharp
string data = @"{
'name': 'newlistname'
@@ -1160,6 +1242,7 @@ The Contacts API helps you manage your [Marketing Campaigns](https://sendgrid.co
### GET /contactdb/lists/{list_id}
+
```csharp
string queryParams = @"{
'list_id': 0
@@ -1180,6 +1263,7 @@ The Contacts API helps you manage your [Marketing Campaigns](https://sendgrid.co
### DELETE /contactdb/lists/{list_id}
+
```csharp
string queryParams = @"{
'delete_contacts': 'true'
@@ -1202,6 +1286,7 @@ The Contacts API helps you manage your [Marketing Campaigns](https://sendgrid.co
### POST /contactdb/lists/{list_id}/recipients
+
```csharp
string data = @"[
'recipient_id1',
@@ -1223,6 +1308,7 @@ The Contacts API helps you manage your [Marketing Campaigns](https://sendgrid.co
### GET /contactdb/lists/{list_id}/recipients
+
```csharp
string queryParams = @"{
'list_id': 0,
@@ -1245,6 +1331,7 @@ The Contacts API helps you manage your [Marketing Campaigns](https://sendgrid.co
### POST /contactdb/lists/{list_id}/recipients/{recipient_id}
+
```csharp
var list_id = "test_url_param";
var recipient_id = "test_url_param";
@@ -1263,6 +1350,7 @@ The Contacts API helps you manage your [Marketing Campaigns](https://sendgrid.co
### DELETE /contactdb/lists/{list_id}/recipients/{recipient_id}
+
```csharp
string queryParams = @"{
'list_id': 0,
@@ -1289,6 +1377,7 @@ The contactdb is a database of your contacts for [SendGrid Marketing Campaigns](
### PATCH /contactdb/recipients
+
```csharp
string data = @"[
{
@@ -1314,6 +1403,7 @@ The Contacts API helps you manage your [Marketing Campaigns](https://sendgrid.co
### POST /contactdb/recipients
+
```csharp
string data = @"[
{
@@ -1347,6 +1437,7 @@ The Contacts API helps you manage your [Marketing Campaigns](https://sendgrid.co
### GET /contactdb/recipients
+
```csharp
string queryParams = @"{
'page': 1,
@@ -1369,6 +1460,7 @@ The contactdb is a database of your contacts for [SendGrid Marketing Campaigns](
### DELETE /contactdb/recipients
+
```csharp
string data = @"[
'recipient_id1',
@@ -1391,6 +1483,7 @@ The Contacts API helps you manage your [Marketing Campaigns](https://sendgrid.co
### GET /contactdb/recipients/billable_count
+
```csharp
dynamic response = sg.client.contactdb.recipients.billable_count.get();
Console.WriteLine(response.StatusCode);
@@ -1407,6 +1500,7 @@ The contactdb is a database of your contacts for [SendGrid Marketing Campaigns](
### GET /contactdb/recipients/count
+
```csharp
dynamic response = sg.client.contactdb.recipients.count.get();
Console.WriteLine(response.StatusCode);
@@ -1432,6 +1526,7 @@ The contactdb is a database of your contacts for [SendGrid Marketing Campaigns](
### GET /contactdb/recipients/search
+
```csharp
string queryParams = @"{
'{field_name}': 'test_string'
@@ -1451,6 +1546,7 @@ The Contacts API helps you manage your [Marketing Campaigns](https://sendgrid.co
### GET /contactdb/recipients/{recipient_id}
+
```csharp
var recipient_id = "test_url_param";
dynamic response = sg.client.contactdb.recipients._(recipient_id).get();
@@ -1468,6 +1564,7 @@ The Contacts API helps you manage your [Marketing Campaigns](https://sendgrid.co
### DELETE /contactdb/recipients/{recipient_id}
+
```csharp
var recipient_id = "test_url_param";
dynamic response = sg.client.contactdb.recipients._(recipient_id).delete();
@@ -1487,6 +1584,7 @@ The Contacts API helps you manage your [Marketing Campaigns](https://sendgrid.co
### GET /contactdb/recipients/{recipient_id}/lists
+
```csharp
var recipient_id = "test_url_param";
dynamic response = sg.client.contactdb.recipients._(recipient_id).lists.get();
@@ -1504,6 +1602,7 @@ The contactdb is a database of your contacts for [SendGrid Marketing Campaigns](
### GET /contactdb/reserved_fields
+
```csharp
dynamic response = sg.client.contactdb.reserved_fields.get();
Console.WriteLine(response.StatusCode);
@@ -1540,6 +1639,7 @@ For more information about segments in Marketing Campaigns, please see our [User
### POST /contactdb/segments
+
```csharp
string data = @"{
'conditions': [
@@ -1582,6 +1682,7 @@ For more information about segments in Marketing Campaigns, please see our [User
### GET /contactdb/segments
+
```csharp
dynamic response = sg.client.contactdb.segments.get();
Console.WriteLine(response.StatusCode);
@@ -1600,6 +1701,7 @@ For more information about segments in Marketing Campaigns, please see our [User
### PATCH /contactdb/segments/{segment_id}
+
```csharp
string data = @"{
'conditions': [
@@ -1634,6 +1736,7 @@ For more information about segments in Marketing Campaigns, please see our [User
### GET /contactdb/segments/{segment_id}
+
```csharp
string queryParams = @"{
'segment_id': 0
@@ -1658,6 +1761,7 @@ For more information about segments in Marketing Campaigns, please see our [User
### DELETE /contactdb/segments/{segment_id}
+
```csharp
string queryParams = @"{
'delete_contacts': 'true'
@@ -1680,6 +1784,7 @@ For more information about segments in Marketing Campaigns, please see our [User
### GET /contactdb/segments/{segment_id}/recipients
+
```csharp
string queryParams = @"{
'page': 1,
@@ -1715,6 +1820,7 @@ Advanced Stats provide a more in-depth view of your email statistics and the act
### GET /devices/stats
+
```csharp
string queryParams = @"{
'aggregated_by': 'day',
@@ -1743,6 +1849,7 @@ Advanced Stats provide a more in-depth view of your email statistics and the act
### GET /geo/stats
+
```csharp
string queryParams = @"{
'aggregated_by': 'day',
@@ -1772,6 +1879,7 @@ A single IP address or a range of IP addresses may be dedicated to an account in
### GET /ips
+
```csharp
string queryParams = @"{
'exclude_whitelabels': 'true',
@@ -1795,6 +1903,7 @@ A single IP address or a range of IP addresses may be dedicated to an account in
### GET /ips/assigned
+
```csharp
dynamic response = sg.client.ips.assigned.get();
Console.WriteLine(response.StatusCode);
@@ -1817,6 +1926,7 @@ If an IP pool is NOT specified for an email, it will use any IP available, inclu
### POST /ips/pools
+
```csharp
string data = @"{
'name': 'marketing'
@@ -1840,6 +1950,7 @@ If an IP pool is NOT specified for an email, it will use any IP available, inclu
### GET /ips/pools
+
```csharp
dynamic response = sg.client.ips.pools.get();
Console.WriteLine(response.StatusCode);
@@ -1860,6 +1971,7 @@ If an IP pool is NOT specified for an email, it will use any IP available, inclu
### PUT /ips/pools/{pool_name}
+
```csharp
string data = @"{
'name': 'new_pool_name'
@@ -1884,6 +1996,7 @@ If an IP pool is NOT specified for an email, it will use any IP available, inclu
### GET /ips/pools/{pool_name}
+
```csharp
var pool_name = "test_url_param";
dynamic response = sg.client.ips.pools._(pool_name).get();
@@ -1905,6 +2018,7 @@ If an IP pool is NOT specified for an email, it will use any IP available, inclu
### DELETE /ips/pools/{pool_name}
+
```csharp
var pool_name = "test_url_param";
dynamic response = sg.client.ips.pools._(pool_name).delete();
@@ -1924,6 +2038,7 @@ A single IP address or a range of IP addresses may be dedicated to an account in
### POST /ips/pools/{pool_name}/ips
+
```csharp
string data = @"{
'ip': '0.0.0.0'
@@ -1946,6 +2061,7 @@ A single IP address or a range of IP addresses may be dedicated to an account in
### DELETE /ips/pools/{pool_name}/ips/{ip}
+
```csharp
var pool_name = "test_url_param";
var ip = "test_url_param";
@@ -1966,6 +2082,7 @@ For more general information about warming up IPs, please see our [Classroom](ht
### POST /ips/warmup
+
```csharp
string data = @"{
'ip': '0.0.0.0'
@@ -1987,6 +2104,7 @@ For more general information about warming up IPs, please see our [Classroom](ht
### GET /ips/warmup
+
```csharp
dynamic response = sg.client.ips.warmup.get();
Console.WriteLine(response.StatusCode);
@@ -2005,6 +2123,7 @@ For more general information about warming up IPs, please see our [Classroom](ht
### GET /ips/warmup/{ip_address}
+
```csharp
var ip_address = "test_url_param";
dynamic response = sg.client.ips.warmup._(ip_address).get();
@@ -2024,6 +2143,7 @@ For more general information about warming up IPs, please see our [Classroom](ht
### DELETE /ips/warmup/{ip_address}
+
```csharp
var ip_address = "test_url_param";
dynamic response = sg.client.ips.warmup._(ip_address).delete();
@@ -2043,6 +2163,7 @@ A single IP address or a range of IP addresses may be dedicated to an account in
### GET /ips/{ip_address}
+
```csharp
var ip_address = "test_url_param";
dynamic response = sg.client.ips._(ip_address).get();
@@ -2067,6 +2188,7 @@ More Information:
### POST /mail/batch
+
```csharp
dynamic response = sg.client.mail.batch.post();
Console.WriteLine(response.StatusCode);
@@ -2087,6 +2209,7 @@ More Information:
### GET /mail/batch/{batch_id}
+
```csharp
var batch_id = "test_url_param";
dynamic response = sg.client.mail.batch._(batch_id).get();
@@ -2109,6 +2232,8 @@ For more detailed information about how to use the v3 Mail Send endpoint, please
### POST /mail/send/beta
+This endpoint has a helper, check it out [here](https://github.com/sendgrid/sendgrid-csharp/blob/v3beta/SendGrid/SendGrid/Helpers/Mail/README.md).
+
```csharp
string data = @"{
'asm': {
@@ -2271,6 +2396,7 @@ Mail settings allow you to tell SendGrid specific things to do to every email th
### GET /mail_settings
+
```csharp
string queryParams = @"{
'limit': 1,
@@ -2293,6 +2419,7 @@ Mail settings allow you to tell SendGrid specific things to do to every email th
### PATCH /mail_settings/address_whitelist
+
```csharp
string data = @"{
'enabled': true,
@@ -2318,6 +2445,7 @@ Mail settings allow you to tell SendGrid specific things to do to every email th
### GET /mail_settings/address_whitelist
+
```csharp
dynamic response = sg.client.mail_settings.address_whitelist.get();
Console.WriteLine(response.StatusCode);
@@ -2336,6 +2464,7 @@ Mail settings allow you to tell SendGrid specific things to do to every email th
### PATCH /mail_settings/bcc
+
```csharp
string data = @"{
'email': 'email@example.com',
@@ -2358,6 +2487,7 @@ Mail settings allow you to tell SendGrid specific things to do to every email th
### GET /mail_settings/bcc
+
```csharp
dynamic response = sg.client.mail_settings.bcc.get();
Console.WriteLine(response.StatusCode);
@@ -2376,6 +2506,7 @@ Mail settings allow you to tell SendGrid specific things to do to every email th
### PATCH /mail_settings/bounce_purge
+
```csharp
string data = @"{
'enabled': true,
@@ -2399,6 +2530,7 @@ Mail settings allow you to tell SendGrid specific things to do to every email th
### GET /mail_settings/bounce_purge
+
```csharp
dynamic response = sg.client.mail_settings.bounce_purge.get();
Console.WriteLine(response.StatusCode);
@@ -2417,6 +2549,7 @@ Mail settings allow you to tell SendGrid specific things to do to every email th
### PATCH /mail_settings/footer
+
```csharp
string data = @"{
'enabled': true,
@@ -2440,6 +2573,7 @@ Mail settings allow you to tell SendGrid specific things to do to every email th
### GET /mail_settings/footer
+
```csharp
dynamic response = sg.client.mail_settings.footer.get();
Console.WriteLine(response.StatusCode);
@@ -2458,6 +2592,7 @@ Mail settings allow you to tell SendGrid specific things to do to every email th
### PATCH /mail_settings/forward_bounce
+
```csharp
string data = @"{
'email': 'example@example.com',
@@ -2480,6 +2615,7 @@ Mail settings allow you to tell SendGrid specific things to do to every email th
### GET /mail_settings/forward_bounce
+
```csharp
dynamic response = sg.client.mail_settings.forward_bounce.get();
Console.WriteLine(response.StatusCode);
@@ -2498,6 +2634,7 @@ Mail settings allow you to tell SendGrid specific things to do to every email th
### PATCH /mail_settings/forward_spam
+
```csharp
string data = @"{
'email': '',
@@ -2520,6 +2657,7 @@ Mail settings allow you to tell SendGrid specific things to do to every email th
### GET /mail_settings/forward_spam
+
```csharp
dynamic response = sg.client.mail_settings.forward_spam.get();
Console.WriteLine(response.StatusCode);
@@ -2538,6 +2676,7 @@ Mail settings allow you to tell SendGrid specific things to do to every email th
### PATCH /mail_settings/plain_content
+
```csharp
string data = @"{
'enabled': false
@@ -2559,6 +2698,7 @@ Mail settings allow you to tell SendGrid specific things to do to every email th
### GET /mail_settings/plain_content
+
```csharp
dynamic response = sg.client.mail_settings.plain_content.get();
Console.WriteLine(response.StatusCode);
@@ -2577,6 +2717,7 @@ Mail settings allow you to tell SendGrid specific things to do to every email th
### PATCH /mail_settings/spam_check
+
```csharp
string data = @"{
'enabled': true,
@@ -2600,6 +2741,7 @@ Mail settings allow you to tell SendGrid specific things to do to every email th
### GET /mail_settings/spam_check
+
```csharp
dynamic response = sg.client.mail_settings.spam_check.get();
Console.WriteLine(response.StatusCode);
@@ -2620,6 +2762,7 @@ Mail settings allow you to tell SendGrid specific things to do to every email th
### PATCH /mail_settings/template
+
```csharp
string data = @"{
'enabled': true,
@@ -2644,6 +2787,7 @@ Mail settings allow you to tell SendGrid specific things to do to every email th
### GET /mail_settings/template
+
```csharp
dynamic response = sg.client.mail_settings.template.get();
Console.WriteLine(response.StatusCode);
@@ -2665,6 +2809,7 @@ Advanced Stats provide a more in-depth view of your email statistics and the act
### GET /mailbox_providers/stats
+
```csharp
string queryParams = @"{
'aggregated_by': 'day',
@@ -2692,6 +2837,7 @@ Our partner settings allow you to integrate your SendGrid account with our partn
### GET /partner_settings
+
```csharp
string queryParams = @"{
'limit': 1,
@@ -2714,6 +2860,7 @@ By integrating with New Relic, you can send your SendGrid email statistics to yo
### PATCH /partner_settings/new_relic
+
```csharp
string data = @"{
'enable_subuser_statistics': true,
@@ -2737,6 +2884,7 @@ By integrating with New Relic, you can send your SendGrid email statistics to yo
### GET /partner_settings/new_relic
+
```csharp
dynamic response = sg.client.partner_settings.new_relic.get();
Console.WriteLine(response.StatusCode);
@@ -2756,6 +2904,7 @@ API Keys can be used to authenticate the use of [SendGrids v3 Web API](https://s
### GET /scopes
+
```csharp
dynamic response = sg.client.scopes.get();
Console.WriteLine(response.StatusCode);
@@ -2775,6 +2924,7 @@ Parent accounts will see aggregated stats for their account and all subuser acco
### GET /stats
+
```csharp
string queryParams = @"{
'aggregated_by': 'day',
@@ -2804,6 +2954,7 @@ For more information about Subusers:
### POST /subusers
+
```csharp
string data = @"{
'email': 'John@example.com',
@@ -2832,6 +2983,7 @@ For more information about Subusers:
### GET /subusers
+
```csharp
string queryParams = @"{
'limit': 0,
@@ -2853,6 +3005,7 @@ This endpoint allows you to request the reputations for your subusers.
### GET /subusers/reputations
+
```csharp
string queryParams = @"{
'usernames': 'test_string'
@@ -2876,6 +3029,7 @@ For more information, see our [User Guide](https://sendgrid.com/docs/User_Guide/
### GET /subusers/stats
+
```csharp
string queryParams = @"{
'aggregated_by': 'day',
@@ -2905,6 +3059,7 @@ For more information, see our [User Guide](https://sendgrid.com/docs/User_Guide/
### GET /subusers/stats/monthly
+
```csharp
string queryParams = @"{
'date': 'test_string',
@@ -2932,6 +3087,7 @@ For more information, see our [User Guide](https://sendgrid.com/docs/User_Guide/
### GET /subusers/stats/sums
+
```csharp
string queryParams = @"{
'aggregated_by': 'day',
@@ -2960,6 +3116,7 @@ For more information about Subusers:
### PATCH /subusers/{subuser_name}
+
```csharp
string data = @"{
'disabled': false
@@ -2983,6 +3140,7 @@ For more information about Subusers:
### DELETE /subusers/{subuser_name}
+
```csharp
var subuser_name = "test_url_param";
dynamic response = sg.client.subusers._(subuser_name).delete();
@@ -3003,6 +3161,7 @@ More information:
### PUT /subusers/{subuser_name}/ips
+
```csharp
string data = @"[
'127.0.0.1'
@@ -3021,6 +3180,7 @@ Subuser monitor settings allow you to receive a sample of an outgoing message by
### PUT /subusers/{subuser_name}/monitor
+
```csharp
string data = @"{
'email': 'example@example.com',
@@ -3040,6 +3200,7 @@ Subuser monitor settings allow you to receive a sample of an outgoing message by
### POST /subusers/{subuser_name}/monitor
+
```csharp
string data = @"{
'email': 'example@example.com',
@@ -3059,6 +3220,7 @@ Subuser monitor settings allow you to receive a sample of an outgoing message by
### GET /subusers/{subuser_name}/monitor
+
```csharp
var subuser_name = "test_url_param";
dynamic response = sg.client.subusers._(subuser_name).monitor.get();
@@ -3074,6 +3236,7 @@ Subuser monitor settings allow you to receive a sample of an outgoing message by
### DELETE /subusers/{subuser_name}/monitor
+
```csharp
var subuser_name = "test_url_param";
dynamic response = sg.client.subusers._(subuser_name).monitor.delete();
@@ -3096,6 +3259,7 @@ For more information, see our [User Guide](https://sendgrid.com/docs/User_Guide/
### GET /subusers/{subuser_name}/stats/monthly
+
```csharp
string queryParams = @"{
'date': 'test_string',
@@ -3125,6 +3289,7 @@ For more information, please see our [User Guide](https://sendgrid.com/docs/User
### GET /suppression/blocks
+
```csharp
string queryParams = @"{
'end_time': 1,
@@ -3154,6 +3319,7 @@ For more information, please see our [User Guide](https://sendgrid.com/docs/User
### DELETE /suppression/blocks
+
```csharp
string data = @"{
'delete_all': false,
@@ -3179,6 +3345,7 @@ For more information, please see our [User Guide](https://sendgrid.com/docs/User
### GET /suppression/blocks/{email}
+
```csharp
var email = "test_url_param";
dynamic response = sg.client.suppression.blocks._(email).get();
@@ -3198,6 +3365,7 @@ For more information, please see our [User Guide](https://sendgrid.com/docs/User
### DELETE /suppression/blocks/{email}
+
```csharp
var email = "test_url_param";
dynamic response = sg.client.suppression.blocks._(email).delete();
@@ -3220,6 +3388,7 @@ For more information see:
### GET /suppression/bounces
+
```csharp
string queryParams = @"{
'end_time': 0,
@@ -3248,6 +3417,7 @@ Note: the `delete_all` and `emails` parameters should be used independently of e
### DELETE /suppression/bounces
+
```csharp
string data = @"{
'delete_all': true,
@@ -3277,6 +3447,7 @@ For more information see:
### GET /suppression/bounces/{email}
+
```csharp
var email = "test_url_param";
dynamic response = sg.client.suppression.bounces._(email).get();
@@ -3300,6 +3471,7 @@ For more information see:
### DELETE /suppression/bounces/{email}
+
```csharp
string queryParams = @"{
'email_address': 'example@example.com'
@@ -3324,6 +3496,7 @@ For more information, please see our [User Guide](https://sendgrid.com/docs/User
### GET /suppression/invalid_emails
+
```csharp
string queryParams = @"{
'end_time': 1,
@@ -3355,6 +3528,7 @@ For more information, please see our [User Guide](https://sendgrid.com/docs/User
### DELETE /suppression/invalid_emails
+
```csharp
string data = @"{
'delete_all': false,
@@ -3382,6 +3556,7 @@ For more information, please see our [User Guide](https://sendgrid.com/docs/User
### GET /suppression/invalid_emails/{email}
+
```csharp
var email = "test_url_param";
dynamic response = sg.client.suppression.invalid_emails._(email).get();
@@ -3403,6 +3578,7 @@ For more information, please see our [User Guide](https://sendgrid.com/docs/User
### DELETE /suppression/invalid_emails/{email}
+
```csharp
var email = "test_url_param";
dynamic response = sg.client.suppression.invalid_emails._(email).delete();
@@ -3422,6 +3598,7 @@ For more information, please see our [User Guide](https://sendgrid.com/docs/User
### GET /suppression/spam_report/{email}
+
```csharp
var email = "test_url_param";
dynamic response = sg.client.suppression.spam_report._(email).get();
@@ -3441,6 +3618,7 @@ For more information, please see our [User Guide](https://sendgrid.com/docs/User
### DELETE /suppression/spam_report/{email}
+
```csharp
var email = "test_url_param";
dynamic response = sg.client.suppression.spam_report._(email).delete();
@@ -3460,6 +3638,7 @@ For more information, please see our [User Guide](https://sendgrid.com/docs/User
### GET /suppression/spam_reports
+
```csharp
string queryParams = @"{
'end_time': 1,
@@ -3489,6 +3668,7 @@ For more information, please see our [User Guide](https://sendgrid.com/docs/User
### DELETE /suppression/spam_reports
+
```csharp
string data = @"{
'delete_all': false,
@@ -3512,6 +3692,7 @@ A global suppression (or global unsubscribe) is an email address of a recipient
### GET /suppression/unsubscribes
+
```csharp
string queryParams = @"{
'end_time': 1,
@@ -3539,6 +3720,7 @@ Transactional templates are templates created specifically for transactional ema
### POST /templates
+
```csharp
string data = @"{
'name': 'example_name'
@@ -3560,6 +3742,7 @@ Transactional templates are templates created specifically for transactional ema
### GET /templates
+
```csharp
dynamic response = sg.client.templates.get();
Console.WriteLine(response.StatusCode);
@@ -3579,6 +3762,7 @@ Transactional templates are templates created specifically for transactional ema
### PATCH /templates/{template_id}
+
```csharp
string data = @"{
'name': 'new_example_name'
@@ -3602,6 +3786,7 @@ Transactional templates are templates created specifically for transactional ema
### GET /templates/{template_id}
+
```csharp
var template_id = "test_url_param";
dynamic response = sg.client.templates._(template_id).get();
@@ -3622,6 +3807,7 @@ Transactional templates are templates created specifically for transactional ema
### DELETE /templates/{template_id}
+
```csharp
var template_id = "test_url_param";
dynamic response = sg.client.templates._(template_id).delete();
@@ -3642,6 +3828,7 @@ For more information about transactional templates, please see our [User Guide](
### POST /templates/{template_id}/versions
+
```csharp
string data = @"{
'active': 1,
@@ -3675,6 +3862,7 @@ For more information about transactional templates, please see our [User Guide](
### PATCH /templates/{template_id}/versions/{version_id}
+
```csharp
string data = @"{
'active': 1,
@@ -3708,6 +3896,7 @@ For more information about transactional templates, please see our [User Guide](
### GET /templates/{template_id}/versions/{version_id}
+
```csharp
var template_id = "test_url_param";
var version_id = "test_url_param";
@@ -3734,6 +3923,7 @@ For more information about transactional templates, please see our [User Guide](
### DELETE /templates/{template_id}/versions/{version_id}
+
```csharp
var template_id = "test_url_param";
var version_id = "test_url_param";
@@ -3761,6 +3951,7 @@ For more information about transactional templates, please see our [User Guide](
### POST /templates/{template_id}/versions/{version_id}/activate
+
```csharp
var template_id = "test_url_param";
var version_id = "test_url_param";
@@ -3784,6 +3975,7 @@ For more information about tracking, please see our [User Guide](https://sendgri
### GET /tracking_settings
+
```csharp
string queryParams = @"{
'limit': 1,
@@ -3806,6 +3998,7 @@ For more information about tracking, please see our [User Guide](https://sendgri
### PATCH /tracking_settings/click
+
```csharp
string data = @"{
'enabled': true
@@ -3827,6 +4020,7 @@ For more information about tracking, please see our [User Guide](https://sendgri
### GET /tracking_settings/click
+
```csharp
dynamic response = sg.client.tracking_settings.click.get();
Console.WriteLine(response.StatusCode);
@@ -3849,6 +4043,7 @@ For more information about tracking, please see our [User Guide](https://sendgri
### PATCH /tracking_settings/google_analytics
+
```csharp
string data = @"{
'enabled': true,
@@ -3879,6 +4074,7 @@ For more information about tracking, please see our [User Guide](https://sendgri
### GET /tracking_settings/google_analytics
+
```csharp
dynamic response = sg.client.tracking_settings.google_analytics.get();
Console.WriteLine(response.StatusCode);
@@ -3899,6 +4095,7 @@ For more information about tracking, please see our [User Guide](https://sendgri
### PATCH /tracking_settings/open
+
```csharp
string data = @"{
'enabled': true
@@ -3922,6 +4119,7 @@ For more information about tracking, please see our [User Guide](https://sendgri
### GET /tracking_settings/open
+
```csharp
dynamic response = sg.client.tracking_settings.open.get();
Console.WriteLine(response.StatusCode);
@@ -3942,6 +4140,7 @@ For more information about tracking, please see our [User Guide](https://sendgri
### PATCH /tracking_settings/subscription
+
```csharp
string data = @"{
'enabled': true,
@@ -3970,6 +4169,7 @@ For more information about tracking, please see our [User Guide](https://sendgri
### GET /tracking_settings/subscription
+
```csharp
dynamic response = sg.client.tracking_settings.subscription.get();
Console.WriteLine(response.StatusCode);
@@ -3995,6 +4195,7 @@ For more information about your user profile:
### GET /user/account
+
```csharp
dynamic response = sg.client.user.account.get();
Console.WriteLine(response.StatusCode);
@@ -4011,6 +4212,7 @@ Your monthly credit allotment limits the number of emails you may send before in
### GET /user/credits
+
```csharp
dynamic response = sg.client.user.credits.get();
Console.WriteLine(response.StatusCode);
@@ -4031,6 +4233,7 @@ For more information about your user profile:
### PUT /user/email
+
```csharp
string data = @"{
'email': 'example@example.com'
@@ -4054,6 +4257,7 @@ For more information about your user profile:
### GET /user/email
+
```csharp
dynamic response = sg.client.user.email.get();
Console.WriteLine(response.StatusCode);
@@ -4074,6 +4278,7 @@ For more information about your user profile:
### PUT /user/password
+
```csharp
string data = @"{
'new_password': 'new_password',
@@ -4100,6 +4305,7 @@ It should be noted that any one or more of the parameters can be updated via the
### PATCH /user/profile
+
```csharp
string data = @"{
'city': 'Orange',
@@ -4123,6 +4329,7 @@ For more information about your user profile:
### GET /user/profile
+
```csharp
dynamic response = sg.client.user.profile.get();
Console.WriteLine(response.StatusCode);
@@ -4142,6 +4349,7 @@ The Cancel Scheduled Sends feature allows the customer to cancel a scheduled sen
### POST /user/scheduled_sends
+
```csharp
string data = @"{
'batch_id': 'YOUR_BATCH_ID',
@@ -4162,6 +4370,7 @@ The Cancel Scheduled Sends feature allows the customer to cancel a scheduled sen
### GET /user/scheduled_sends
+
```csharp
dynamic response = sg.client.user.scheduled_sends.get();
Console.WriteLine(response.StatusCode);
@@ -4178,6 +4387,7 @@ The Cancel Scheduled Sends feature allows the customer to cancel a scheduled sen
### PATCH /user/scheduled_sends/{batch_id}
+
```csharp
string data = @"{
'status': 'pause'
@@ -4198,6 +4408,7 @@ The Cancel Scheduled Sends feature allows the customer to cancel a scheduled sen
### GET /user/scheduled_sends/{batch_id}
+
```csharp
var batch_id = "test_url_param";
dynamic response = sg.client.user.scheduled_sends._(batch_id).get();
@@ -4215,6 +4426,7 @@ The Cancel Scheduled Sends feature allows the customer to cancel a scheduled sen
### DELETE /user/scheduled_sends/{batch_id}
+
```csharp
var batch_id = "test_url_param";
dynamic response = sg.client.user.scheduled_sends._(batch_id).delete();
@@ -4234,6 +4446,7 @@ The Enforced TLS settings specify whether or not the recipient is required to su
### PATCH /user/settings/enforced_tls
+
```csharp
string data = @"{
'require_tls': true,
@@ -4256,6 +4469,7 @@ The Enforced TLS settings specify whether or not the recipient is required to su
### GET /user/settings/enforced_tls
+
```csharp
dynamic response = sg.client.user.settings.enforced_tls.get();
Console.WriteLine(response.StatusCode);
@@ -4276,6 +4490,7 @@ For more information about your user profile:
### PUT /user/username
+
```csharp
string data = @"{
'username': 'test_username'
@@ -4299,6 +4514,7 @@ For more information about your user profile:
### GET /user/username
+
```csharp
dynamic response = sg.client.user.username.get();
Console.WriteLine(response.StatusCode);
@@ -4319,6 +4535,7 @@ Common uses of this data are to remove unsubscribes, react to spam reports, dete
### PATCH /user/webhooks/event/settings
+
```csharp
string data = @"{
'bounce': true,
@@ -4354,6 +4571,7 @@ Common uses of this data are to remove unsubscribes, react to spam reports, dete
### GET /user/webhooks/event/settings
+
```csharp
dynamic response = sg.client.user.webhooks._("event").settings.get();
Console.WriteLine(response.StatusCode);
@@ -4372,6 +4590,7 @@ Common uses of this data are to remove unsubscribes, react to spam reports, dete
### POST /user/webhooks/event/test
+
```csharp
string data = @"{
'url': 'url'
@@ -4391,6 +4610,7 @@ SendGrid can parse the attachments and contents of incoming emails. The Parse AP
### GET /user/webhooks/parse/settings
+
```csharp
dynamic response = sg.client.user.webhooks.parse.settings.get();
Console.WriteLine(response.StatusCode);
@@ -4409,6 +4629,7 @@ There are a number of pre-made integrations for the SendGrid Parse Webhook which
### GET /user/webhooks/parse/stats
+
```csharp
string queryParams = @"{
'aggregated_by': 'day',
@@ -4441,6 +4662,7 @@ For more information on whitelabeling, please see our [User Guide](https://sendg
### POST /whitelabel/domains
+
```csharp
string data = @"{
'automatic_security': false,
@@ -4472,6 +4694,7 @@ For more information on whitelabeling, please see our [User Guide](https://sendg
### GET /whitelabel/domains
+
```csharp
string queryParams = @"{
'domain': 'test_string',
@@ -4502,6 +4725,7 @@ For more information on whitelabeling, please see our [User Guide](https://sendg
### GET /whitelabel/domains/default
+
```csharp
dynamic response = sg.client.whitelabel.domains._("default").get();
Console.WriteLine(response.StatusCode);
@@ -4527,6 +4751,7 @@ For more information on whitelabeling, please see our [User Guide](https://sendg
### GET /whitelabel/domains/subuser
+
```csharp
dynamic response = sg.client.whitelabel.domains.subuser.get();
Console.WriteLine(response.StatusCode);
@@ -4552,6 +4777,7 @@ For more information on whitelabeling, please see our [User Guide](https://sendg
### DELETE /whitelabel/domains/subuser
+
```csharp
dynamic response = sg.client.whitelabel.domains.subuser.delete();
Console.WriteLine(response.StatusCode);
@@ -4570,6 +4796,7 @@ For more information on whitelabeling, please see our [User Guide](https://sendg
### PATCH /whitelabel/domains/{domain_id}
+
```csharp
string data = @"{
'custom_spf': true,
@@ -4594,6 +4821,7 @@ For more information on whitelabeling, please see our [User Guide](https://sendg
### GET /whitelabel/domains/{domain_id}
+
```csharp
var domain_id = "test_url_param";
dynamic response = sg.client.whitelabel.domains._(domain_id).get();
@@ -4613,6 +4841,7 @@ For more information on whitelabeling, please see our [User Guide](https://sendg
### DELETE /whitelabel/domains/{domain_id}
+
```csharp
var domain_id = "test_url_param";
dynamic response = sg.client.whitelabel.domains._(domain_id).delete();
@@ -4639,6 +4868,7 @@ For more information on whitelabeling, please see our [User Guide](https://sendg
### POST /whitelabel/domains/{domain_id}/subuser
+
```csharp
string data = @"{
'username': 'jane@example.com'
@@ -4666,6 +4896,7 @@ For more information on whitelabeling, please see our [User Guide](https://sendg
### POST /whitelabel/domains/{id}/ips
+
```csharp
string data = @"{
'ip': '192.168.0.1'
@@ -4694,6 +4925,7 @@ For more information on whitelabeling, please see our [User Guide](https://sendg
### DELETE /whitelabel/domains/{id}/ips/{ip}
+
```csharp
var id = "test_url_param";
var ip = "test_url_param";
@@ -4719,6 +4951,7 @@ For more information on whitelabeling, please see our [User Guide](https://sendg
### POST /whitelabel/domains/{id}/validate
+
```csharp
var id = "test_url_param";
dynamic response = sg.client.whitelabel.domains._(id).validate.post();
@@ -4740,6 +4973,7 @@ For more information, please see our [User Guide](https://sendgrid.com/docs/API_
### POST /whitelabel/ips
+
```csharp
string data = @"{
'domain': 'example.com',
@@ -4765,6 +4999,7 @@ For more information, please see our [User Guide](https://sendgrid.com/docs/API_
### GET /whitelabel/ips
+
```csharp
string queryParams = @"{
'ip': 'test_string',
@@ -4788,6 +5023,7 @@ For more information, please see our [User Guide](https://sendgrid.com/docs/API_
### GET /whitelabel/ips/{id}
+
```csharp
var id = "test_url_param";
dynamic response = sg.client.whitelabel.ips._(id).get();
@@ -4807,6 +5043,7 @@ For more information, please see our [User Guide](https://sendgrid.com/docs/API_
### DELETE /whitelabel/ips/{id}
+
```csharp
var id = "test_url_param";
dynamic response = sg.client.whitelabel.ips._(id).delete();
@@ -4826,6 +5063,7 @@ For more information, please see our [User Guide](https://sendgrid.com/docs/API_
### POST /whitelabel/ips/{id}/validate
+
```csharp
var id = "test_url_param";
dynamic response = sg.client.whitelabel.ips._(id).validate.post();
@@ -4845,6 +5083,7 @@ For more information, please see our [User Guide](https://sendgrid.com/docs/API_
### POST /whitelabel/links
+
```csharp
string data = @"{
'default': true,
@@ -4872,6 +5111,7 @@ For more information, please see our [User Guide](https://sendgrid.com/docs/API_
### GET /whitelabel/links
+
```csharp
string queryParams = @"{
'limit': 1
@@ -4900,6 +5140,7 @@ For more information, please see our [User Guide](https://sendgrid.com/docs/API_
### GET /whitelabel/links/default
+
```csharp
string queryParams = @"{
'domain': 'test_string'
@@ -4925,6 +5166,7 @@ For more information, please see our [User Guide](https://sendgrid.com/docs/API_
### GET /whitelabel/links/subuser
+
```csharp
string queryParams = @"{
'username': 'test_string'
@@ -4950,6 +5192,7 @@ For more information, please see our [User Guide](https://sendgrid.com/docs/API_
### DELETE /whitelabel/links/subuser
+
```csharp
string queryParams = @"{
'username': 'test_string'
@@ -4971,6 +5214,7 @@ For more information, please see our [User Guide](https://sendgrid.com/docs/API_
### PATCH /whitelabel/links/{id}
+
```csharp
string data = @"{
'default': true
@@ -4993,6 +5237,7 @@ For more information, please see our [User Guide](https://sendgrid.com/docs/API_
### GET /whitelabel/links/{id}
+
```csharp
var id = "test_url_param";
dynamic response = sg.client.whitelabel.links._(id).get();
@@ -5012,6 +5257,7 @@ For more information, please see our [User Guide](https://sendgrid.com/docs/API_
### DELETE /whitelabel/links/{id}
+
```csharp
var id = "test_url_param";
dynamic response = sg.client.whitelabel.links._(id).delete();
@@ -5031,6 +5277,7 @@ For more information, please see our [User Guide](https://sendgrid.com/docs/API_
### POST /whitelabel/links/{id}/validate
+
```csharp
var id = "test_url_param";
dynamic response = sg.client.whitelabel.links._(id).validate.post();
@@ -5054,6 +5301,7 @@ For more information, please see our [User Guide](https://sendgrid.com/docs/API_
### POST /whitelabel/links/{link_id}/subuser
+
```csharp
string data = @"{
'username': 'jane@example.com'