You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -3398,6 +3398,153 @@ API Keys can be used to authenticate the use of [SendGrids v3 Web API](https://s
3398
3398
throw ex;
3399
3399
}
3400
3400
```
3401
+
<aname="senders"></a>
3402
+
# SENDERS
3403
+
3404
+
## Create a Sender Identity
3405
+
3406
+
**This endpoint allows you to create a new sender identity.**
3407
+
3408
+
*You may create up to 100 unique sender identities.*
3409
+
3410
+
Sender Identities are required to be verified before use. If your domain has been whitelabeled it will auto verify on creation. Otherwise an email will be sent to the `from.email`.
request.body ="{\"city\":\"Denver\",\"from\":{\"email\":\"from@example.com\",\"name\":\"Example INC\"},\"zip\":\"80202\",\"country\":\"United States\",\"state\":\"Colorado\",\"address_2\":\"Apt. 456\",\"address\":\"123 Elm St.\",\"reply_to\":{\"email\":\"replyto@example.com\",\"name\":\"Example INC\"},\"nickname\":\"My Sender ID\"}";
3422
+
Response response = sg.api(request);
3423
+
System.out.println(response.statusCode);
3424
+
System.out.println(response.body);
3425
+
System.out.println(response.headers);
3426
+
} catch (IOException ex) {
3427
+
throw ex;
3428
+
}
3429
+
```
3430
+
## Get all Sender Identities
3431
+
3432
+
**This endpoint allows you to retrieve a list of all sender identities that have been created for your account.**
3433
+
3434
+
Sender Identities are required to be verified before use. If your domain has been whitelabeled it will auto verify on creation. Otherwise an email will be sent to the `from.email`.
**This endpoint allows you to update a sender identity.**
3456
+
3457
+
Updates to `from.email` require re-verification. If your domain has been whitelabeled it will auto verify on creation. Otherwise an email will be sent to the `from.email`.
3458
+
3459
+
Partial updates are allowed, but fields that are marked as "required" in the POST (create) endpoint must not be nil if that field is included in the PATCH request.
request.body ="{\"city\":\"Denver\",\"from\":{\"email\":\"from@example.com\",\"name\":\"Example INC\"},\"zip\":\"80202\",\"country\":\"United States\",\"state\":\"Colorado\",\"address_2\":\"Apt. 456\",\"address\":\"123 Elm St.\",\"reply_to\":{\"email\":\"replyto@example.com\",\"name\":\"Example INC\"},\"nickname\":\"My Sender ID\"}";
3471
+
Response response = sg.api(request);
3472
+
System.out.println(response.statusCode);
3473
+
System.out.println(response.body);
3474
+
System.out.println(response.headers);
3475
+
} catch (IOException ex) {
3476
+
throw ex;
3477
+
}
3478
+
```
3479
+
## View a Sender Identity
3480
+
3481
+
**This endpoint allows you to retrieve a specific sender identity.**
3482
+
3483
+
Sender Identities are required to be verified before use. If your domain has been whitelabeled it will auto verify on creation. Otherwise an email will be sent to the `from.email`.
**This endoint allows you to delete one of your sender identities.**
3505
+
3506
+
Sender Identities are required to be verified before use. If your domain has been whitelabeled it will auto verify on creation. Otherwise an email will be sent to the `from.email`.
**This enpdoint allows you to resend a sender identity verification email.**
3528
+
3529
+
Sender Identities are required to be verified before use. If your domain has been whitelabeled it will auto verify on creation. Otherwise an email will be sent to the `from.email`.
0 commit comments