The Enforced TLS settings specify whether or not the recipient is required to support TLS or have a valid certificate. The Enforced TLS endpoint supports retrieving and updating TLS settings.
If either require_tls
or require_valid_cert
is set to true
, the recipient must support TLS 1.1 or higher or have a valid certificate. If these conditions are not met, we drop the message and send a block event with "TLS required but not supported" as the description.
Get the current Enforced TLS settings.
GET https://api.sendgrid.com/v3/user/settings/enforced_tls HTTP/1.1
1HTTP/1.1 2002{3"require_tls": true,4"require_valid_cert": false,5"version": 1.16}
Change the Enforced TLS settings
URI Parameter | Required | Requirements | Description |
---|---|---|---|
require_tls | False | true or false | Require recipient TLS support |
require_valid_cert | False | true or false | Require certificates to be valid |
version | False | 1.1, 1.2, 1.3 | The minimum required TLS certificate version. |
PATCH https://api.sendgrid.com/v3/user/settings/enforced_tls HTTP/1.1
1{2"require_tls": true3}
1HTTP/1.1 2002{3"require_tls": true,4"require_valid_cert": false,5"version": 1.16}