Base URL
All API requests should be made to:app.mycura.org with your Cura server domain.
Authentication
All API endpoints require authentication using an API key. Include your API key in the request headers:Response Format
All API responses follow a consistent format:Success Response
Error Response
Available Endpoints
POST /chat
Generate AI responses with patient context and conversation history
GET /patients/{id}
Retrieve patient information by ID
POST /patients
Create a new patient record with health information
OpenAPI Specification
Access the complete OpenAPI specification at:Download OpenAPI Spec
Import into Postman, Insomnia, or generate client libraries
Error Codes
| Status Code | Description |
|---|---|
| 200 | Success - Request completed successfully |
| 201 | Created - Resource created successfully (patient creation) |
| 400 | Bad Request - Invalid or missing required parameters |
| 401 | Unauthorized - Invalid or missing API key |
| 404 | Not Found - Resource doesn’t exist |
| 409 | Conflict - Duplicate resource (e.g., patient with same phone) |
| 500 | Internal Server Error - An unexpected error occurred |

