GET /api/v1/surgeries//trajectory
Retrieve the complete trajectory data for a specific surgery session, including all recorded movements, timestamps, and any existing AI analysis.Authentication
Requires JWT authentication with ROLE_SURGEON or ROLE_AI. Surgeons can only access their own surgeries, while AI systems can access all trajectories.
Path Parameters
Unique identifier of the surgery sessionExample:
550e8400-e29b-41d4-a716-446655440000Authorization Rules
- Surgeons (ROLE_SURGEON): Can only retrieve their own surgery trajectories
- AI Systems (ROLE_AI): Can retrieve any surgery trajectory
Response
Unique identifier of the surgery session
Timestamp when the surgery started (ISO 8601 format)
Timestamp when the surgery finished (ISO 8601 format)
Array of recorded movements during the surgeryEach movement contains:
coordinates: double[] - 3D coordinates [x, y, z]event: SurgeryEvent - Event type (NONE, TUMOR_TOUCH, HEMORRHAGE, START, FINISH)timestamp: long - Unix timestamp in milliseconds
AI-generated performance score (0-100)
null if analysis hasn’t been completed yetAI-generated textual feedback and recommendations
null if analysis hasn’t been completed yetCode Examples
Response Examples
200 OK - With AI Analysis
200 OK - Without AI Analysis
403 Forbidden
404 Not Found
Surgery Event Types
Theevent field in each movement can have the following values:
| Event | Description |
|---|---|
START | Beginning of the surgery session |
NONE | Normal movement without special event |
TUMOR_TOUCH | Surgical instrument made contact with tumor |
HEMORRHAGE | Hemorrhage event detected |
FINISH | End of the surgery session |
POST /api/v1/surgeries//analysis
Submit AI-generated analysis results for a completed surgery. This endpoint is exclusively for AI systems to provide automated scoring and feedback.Authentication
Path Parameters
Unique identifier of the surgery session to analyzeExample:
550e8400-e29b-41d4-a716-446655440000Request Body
Performance score for the surgery
- Minimum: 0
- Maximum: 100
- Represents overall surgical performance quality
Detailed textual feedback and recommendations
- Cannot be blank
- Should include:
- Performance highlights
- Areas for improvement
- Specific technique recommendations
- Safety observations
Response
Returns204 No Content on success with an empty response body.
Code Examples
Response Examples
204 No Content
400 Bad Request - Validation Error
403 Forbidden - Surgeon Account
404 Not Found
Workflow Example
Typical AI analysis workflow:Next Steps
WebSocket Overview
Learn about real-time telemetry streaming
AI Channel
Receive surgery completion notifications