Overview
The/hello endpoint is a health check endpoint that verifies the SuperTokens Core server is running and can connect to the database. This endpoint is useful for monitoring, load balancers, and integration tests.
Key Features:
- No authentication required
- No API version header required
- Supports all HTTP methods (GET, POST, PUT, DELETE)
- Tests database connectivity
- Implements rate limiting (200 requests per window)
- App-specific (can be scoped to specific apps)
Endpoint
http://localhost:3567
Request
Headers
No headers required. API key and version headers are optional and ignored.Query Parameters
None.Request Body
None.Response
Success Response
Status Code:200 OK
Content-Type: text/plain
Body:
"Hello".
Rate Limited Response
Status Code:200 OK
Body (in testing mode):
"RateLimitedHello". In production mode, still returns "Hello" even when rate limited.
Error Response
Status Code:500 Internal Server Error
If the server cannot connect to the database or a storage exception occurs, returns a 500 error with a ServletException.
Examples
cURL
App-Specific Request
Tenant-Specific Request
JavaScript (Node.js)
Python
Implementation Details
Rate Limiting
The endpoint implements rate limiting with a limit of 200 requests per window per app. The rate limiter is app-specific, so different apps have separate rate limits. Source: View sourceDatabase Health Check
The endpoint tests database connectivity by callingstorage.getKeyValue() on all storage instances for the app. This ensures that:
- The database connection is active
- All storage layers are responding
- The core can read from the database
Use Cases
Health Monitoring
Docker Health Check
Kubernetes Liveness Probe
Error Handling
Common Issues:- Database connection timeout
- Storage plugin not initialized
- Database credentials incorrect
- Network connectivity issues
Notes
- This endpoint is also available at the root path
/(see NotFoundOrHelloAPI) - Rate limiting is transparent to the client - no error is returned
- The endpoint works across all HTTP methods for maximum compatibility
- No API key required makes it suitable for public health checks
Related Endpoints
Configuration
Get server configuration details
API Overview
Learn about authentication and error handling