Subscribe to IdP Radar alerts
PUT /v1/idp_radar/alert_subscription: Subscribe to IdP Radar alerts.
PUT /
Opts the environment in to IdP Radar alerts: an idp_radar.alert event and an email to email when sign-ins through an IdP type fail well above their baseline across at least 50 organizations. idps limits the alerts to those IdP types; empty or absent means every IdP type. Replaces any existing subscription.
- Scope
environment:write- Auth
- Secret key (
sk_…) - Since
- 1.0
Headers
Section titled “Headers”
Minor version; defaults to the environment’s pin.OhAuthCat-Versionstring
Request body
Section titled “Request body”emailstring (email) Requiredmin length 3 · max length 254
idpsarray of stringmax items 8
Responses
Section titled “Responses”- 200 OK RadarAlertSubscription
- default Any other error, including internal_error. Every code is in the error catalogue. Error
Errors share one shape; see the error code catalogue.
curl -X PUT \ "https://api.ohauthcat.com/v1/idp_radar/alert_subscription" \ -H "Authorization: Bearer $OHAUTHCAT_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "email": "jane@acme.com"}'const response = await fetch("https://api.ohauthcat.com/v1/idp_radar/alert_subscription", { method: "PUT", headers: { Authorization: `Bearer ${process.env.OHAUTHCAT_API_KEY}`, "Content-Type": "application/json", }, body: JSON.stringify({ "email": "jane@acme.com" }),});const data = await response.json();import osimport requests
response = requests.put( "https://api.ohauthcat.com/v1/idp_radar/alert_subscription", headers={"Authorization": f"Bearer {os.environ['OHAUTHCAT_API_KEY']}"}, json={ "email": "jane@acme.com", },)data = response.json(){ "object": "radar_alert_subscription", "email": "jane@acme.com", "idps": [ "okta" ], "created_at": "2026-01-15T09:30:00Z"}