Health Check & Utility Endpoints
These endpoints provide essential monitoring and information capabilities for the Renesis Stellar DEX Vaults API. Use these endpoints to verify API connectivity, monitor server health, and discover available API functionality.Health Check Endpoints
GET /health
Basic health check endpoint that provides server status and uptime information.Request
Response
Response Fields
- success (boolean): Always
truefor successful health checks - message (string): Human-readable status message
- timestamp (string): ISO 8601 timestamp of the health check
- uptime (number): Server uptime in seconds since last restart
- environment (string): Current environment (
development,production, etc.)
GET /api/health
Detailed API health check endpoint with the same response format as/health. This endpoint is specifically for API health monitoring and follows the API path structure.
Request
Response
Use Cases
- Monitoring: Automated health checks for monitoring systems
- Load Balancer: Health check endpoint for load balancer configuration
- CI/CD: Verify API availability during deployment processes
- Development: Quick connectivity testing during development
API Information Endpoints
GET /api
Returns general API information including version, available endpoints, and metadata.Request
Response
Response Fields
- success (boolean): Always
truefor successful requests - message (string): API name and description
- version (string): Current API version
- endpoints (object): Key API endpoint paths
- timestamp (string): ISO 8601 timestamp of the request
GET /api/docs
Comprehensive API documentation endpoint that returns detailed information about all available endpoints, examples, and supported features.Request
Response
Response Fields
- success (boolean): Always
truefor successful requests - title (string): API documentation title
- version (string): Current API version
- description (string): API description and purpose
- baseUrl (string): Base URL for API requests
- endpoints (object): Complete list of available endpoints with descriptions
- examples (object): Sample requests for common operations
- supportedTokens (object): Lists of supported tokens by network
Server Status Information
Uptime Monitoring
The health check endpoints provide server uptime in seconds, which can be used for:- Monitoring Dashboards: Display server uptime statistics
- Alerting Systems: Detect server restarts or downtime
- Performance Tracking: Monitor server stability over time
Environment Detection
All endpoints include environment information to help with:- Development vs Production: Identify which environment you’re connecting to
- Configuration Validation: Ensure correct environment configuration
- Debugging: Environment-specific troubleshooting
Integration Examples
Health Check Monitoring Script
API Discovery Script
Node.js Health Check
Error Responses
Network Connectivity Issues
If the API is unreachable, you’ll receive standard HTTP connection errors:- Connection Timeout: Network connectivity issues
- DNS Resolution: Domain name resolution problems
- SSL/TLS Errors: Certificate or encryption issues
Server Errors
In rare cases where the server is experiencing issues:Best Practices
Health Check Frequency
- Production Monitoring: Check every 30-60 seconds
- Development: Check as needed during testing
- Load Balancer: Configure appropriate intervals (typically 10-30 seconds)
Timeout Configuration
- Health Checks: Set timeout to 5-10 seconds
- API Discovery: Allow 15-30 seconds for complete response
- Retry Logic: Implement exponential backoff for failed checks
Authentication
- Health Endpoints:
/healthand/api/healthdon’t require authentication - API Information:
/apiand/api/docsrequire valid API key - Security: Never expose API keys in client-side code or logs
Monitoring Integration
- Uptime Monitoring: Use health check endpoints for external monitoring services
- Application Monitoring: Integrate health checks into your application startup
- CI/CD Pipelines: Verify API availability before and after deployments

