The Single Sign-On APIs allow you to manage your SAML 2.0 SSO configurations. You can also work with your SSO integrations using the SSO section of the Twilio SendGrid App.
The Certificates API allows you to create, modify, and delete SSO certificates. A SAML certificate allows your IdP and Twilio SendGrid to verify requests are coming from one another using the public_certificate
and integration_id
parameters.
For more information about managing SSO Certificates, see the Twilio SendGrid SSO documentation.
This endpoint allows you to update an existing certificate by ID.
You can retrieve a certificate's ID from the response provided by the "Get All SSO Integrations" endpoint.
Bearer <<YOUR_API_KEY_HERE>>
application/json
Optional
This public certificate allows SendGrid to verify that SAML requests it receives are signed by an IdP that it recognizes.
Optional
Indicates whether or not the certificate is enabled.
Optional
An ID that matches a certificate to a specific IdP integration.
This certificate is used by Twilio SendGrid to verify that SAML requests are coming from Okta. This is called the X509 certificate in the Twilio SendGrid UI.
A unique ID assigned to the certificate by SendGrid.
A unix timestamp (e.g., 1603915954) that indicates the time before which the certificate is not valid.
A unix timestamp (e.g., 1603915954) that indicates the time after which the certificate is no longer valid.
An ID that matches a certificate to a specific IdP integration.
1const client = require("@sendgrid/client");2client.setApiKey(process.env.SENDGRID_API_KEY);34const cert_id = "ZGkrHSypTsudrGkmdpJJ";5const data = {6public_certificate: "<your x509 certificate>",7enabled: false,8intergration_id: "b0b98502-9408-4b24-9e3d-31ed7cb15312",9};1011const request = {12url: `/v3/sso/certificates/${cert_id}`,13method: "PATCH",14body: data,15};1617client18.request(request)19.then(([response, body]) => {20console.log(response.statusCode);21console.log(response.body);22})23.catch((error) => {24console.error(error);25});