API Overview
The NeoSC API provides programmatic access to all features of the Neogenesys Secure Connect platform, including user management, workspace orchestration, session handling, and security policy enforcement.Base URL
All API endpoints are prefixed with/api:
API Version
Current API version: 1.0.0 The API version is included in the root endpoint response:Response
Technology Stack
The NeoSC API is built with:- FastAPI - High-performance async web framework
- MongoDB - Document database for data persistence
- Pydantic - Data validation and serialization
- Motor - Async MongoDB driver
Request Format
All API requests should include:Content-Type: application/jsonheader for POST/PUT/PATCH requestsAuthorization: Bearer <token>header for authenticated endpoints
Response Format
All API responses are returned in JSON format with appropriate HTTP status codes.Success Response
Error Response
HTTP Status Codes
| Status Code | Description |
|---|---|
200 | Success - Request completed successfully |
201 | Created - Resource created successfully |
400 | Bad Request - Invalid parameters or request format |
401 | Unauthorized - Missing or invalid authentication |
403 | Forbidden - Insufficient permissions |
404 | Not Found - Resource does not exist |
500 | Internal Server Error - Server-side error |
502 | Bad Gateway - External service error |
Rate Limiting
Currently, the API does not enforce rate limiting. This may be added in future versions.CORS Configuration
CORS is configured via theCORS_ORIGINS environment variable. The API supports:
- Credentials:
true - Methods: All HTTP methods
- Headers: All headers
Next Steps
Authentication
Learn how to authenticate API requests
Users
Manage user accounts and profiles
Workspaces
Create and manage secure workspaces
Sessions
Handle workspace sessions
System Endpoints
Health Check
Check if the API is running and responding.This endpoint does not require authentication and can be used for health checks and monitoring.
Platform Statistics
Get real-time platform statistics including active sessions, users, and workspaces.Number of currently active workspace sessions
Total number of available workspaces
Total number of registered users
Overall security health score (0-100)
Platform uptime percentage