<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
API Call for Health Checks
Administration
Okta Classic Engine
Okta Identity Engine
Overview

This article describes how to use a health-check script to detect downtime or slowdowns before they affect users. Monitoring the Okta tenant ensures services remain live and responsive, keeps logins smooth, and minimizes interruptions across all connected applications.

Applies To
  • Okta tenants
  • Monitoring solutions
Solution

To confirm endpoint availability, execute the following command:

curl -X GET -o /dev/null -w "%{http_code}" https://<SUBDOMAIN>.okta.com/login/default

This command returns a 200 response along with the requested resource. The components of the command are:

  • -X GET specifies the method to use when starting the transfer.

  • -o /dev/null suppresses the response bodies.

  • -w "%{http_code}" makes curl write the numerical response code found in the last retrieved HTTP or File Transfer Protocol (FTP) transfer.

  • https://<SUBDOMAIN>.okta.com/login/default is the endpoint of the resource that curl requests.

NOTE: Okta uses this endpoint to handle native authentication. It returns a 4xx or 5xx response if there are system issues. However, user-based authentication is a more reliable choice for assessing system operability, as it confirms endpoint availability and successful user logins.

Related References 

Loading
API Call for Health Checks