# Health

## Get comprehensive health check status

> Returns detailed health information including database connectivity, version info, and system status. This endpoint is used by monitoring systems and load balancers. Returns 503 if critical systems (database, GitHub, Salesforce) are unhealthy.

```json
{"openapi":"3.0.0","info":{"title":"sfp server","version":"51.3.0"},"paths":{"/sfp/api":{"get":{"operationId":"AppController_getHealth","summary":"Get comprehensive health check status","description":"Returns detailed health information including database connectivity, version info, and system status. This endpoint is used by monitoring systems and load balancers. Returns 503 if critical systems (database, GitHub, Salesforce) are unhealthy.","parameters":[],"responses":{"200":{"description":"All critical systems are healthy"},"503":{"description":"One or more critical systems are unhealthy"}},"tags":["Health"]}}}}
```

## Health check endpoint accessible at /health

> Simple health check endpoint that bypasses the global prefix. Returns the same comprehensive health status as the root endpoint. Commonly used by Kubernetes and other orchestration systems. Returns 503 if critical systems (database, GitHub, Salesforce) are unhealthy.

```json
{"openapi":"3.0.0","info":{"title":"sfp server","version":"51.3.0"},"paths":{"/health":{"get":{"operationId":"AppController_getHealthDirect","summary":"Health check endpoint accessible at /health","description":"Simple health check endpoint that bypasses the global prefix. Returns the same comprehensive health status as the root endpoint. Commonly used by Kubernetes and other orchestration systems. Returns 503 if critical systems (database, GitHub, Salesforce) are unhealthy.","parameters":[],"responses":{"200":{"description":"All critical systems are healthy"},"503":{"description":"One or more critical systems are unhealthy"}},"tags":["Health"]}}}}
```

## Get an echo test

> Simple ping endpoint that returns a static "pong" response. Useful for basic connectivity testing and latency measurements.

```json
{"openapi":"3.0.0","info":{"title":"sfp server","version":"51.3.0"},"paths":{"/sfp/api/ping":{"get":{"operationId":"AppController_getHealthPing","summary":"Get an echo test","description":"Simple ping endpoint that returns a static \"pong\" response. Useful for basic connectivity testing and latency measurements.","parameters":[],"responses":{"200":{"description":""}},"tags":["Health"]}}}}
```

## Get web app runtime configuration

> Returns public configuration values for the web app including Supabase credentials, tenant info, and auth provider settings. These values are safe to expose publicly - security is enforced via Supabase RLS, not key secrecy.

```json
{"openapi":"3.0.0","info":{"title":"sfp server","version":"51.3.0"},"paths":{"/sfp/api/config":{"get":{"operationId":"AppController_getWebAppConfig","summary":"Get web app runtime configuration","description":"Returns public configuration values for the web app including Supabase credentials, tenant info, and auth provider settings. These values are safe to expose publicly - security is enforced via Supabase RLS, not key secrecy.","parameters":[],"responses":{"200":{"description":"Web app configuration","content":{"application/json":{"schema":{"type":"object","properties":{"supabaseUrl":{"type":"string"},"supabaseAnonKey":{"type":"string"},"serverUrl":{"type":"string"},"tenantLabel":{"type":"string"},"authProvider":{"type":"string"},"webAppVersion":{"type":"string"},"deploymentMode":{"type":"string","enum":["cloud","selfhosted"]},"sso":{"type":"object","properties":{"domain":{"type":"string"},"providerId":{"type":"string"}}}}}}}}},"tags":["Health"]}}}}
```
