Root Endpoint
GET /
Get basic API information and version.API name
API version number
Health Check
GET /health
Check if the API server is healthy and responsive.Health status of the server (“healthy” or “unhealthy”)
Analyze Data
POST /analyze
Upload and analyze single-cell RNA sequencing data.Request Parameters
Single-cell data file in .h5ad format (AnnData object)
Type of analysis pipeline to runOptions:
basic- Quality control and preprocessingadvanced_communication- Cell-cell communication analysismulti_chamber- Multi-chamber comparative analysiscomprehensive- Complete analysis with all features
Optional configuration overrides as JSON objectExample:
Format for output resultsOptions:
json- JSON formatcsv- CSV formath5ad- AnnData H5AD format
Response
Success Response (200):Status of the analysis request (“success” or “error”)
Human-readable message about the analysis result
Analysis results object containing summaries and metrics
List of output file paths (if any)
Example with Config Overrides
List Models
GET /models
Get a list of all available analysis models/pipelines.Array of available analysis model names
Get Configuration
GET /config
Retrieve the current server configuration.Update Configuration
POST /config
Update the server configuration at runtime.Request Body
Configuration object with parameters to update. Accepts any valid HeartMAP configuration parameters.Common parameters:
min_genes(integer): Minimum number of genes per cellmin_cells(integer): Minimum number of cells per genemax_genes(integer): Maximum number of genes per cellmt_percent(number): Maximum mitochondrial gene percentageresolution(number): Clustering resolution
Status of the update request (“success”)
Confirmation message
Error Responses
All endpoints may return error responses with appropriate HTTP status codes:400 Bad Request
Invalid request parameters or malformed request body.500 Internal Server Error
Server-side error during processing.Rate Limiting
Currently, there are no rate limits implemented on the API. For production deployments, consider implementing rate limiting using middleware or a reverse proxy.Next Steps
Authentication
Learn about API authentication options