You can use the GET /{environmentId}/saml20/sp/metadata/{idpId} operation to retrieve SAML metadata for the external identity provider specified by its ID in the request URL.