Spaces:
Running
Running
Getting Started with SEL Chat Coach API
Overview
The SEL Chat Coach API allows teachers to practice conversations with simulated ADHD student agents and consult coaching agents. The API uses Basic Authentication and follows RESTful principles.
Base URL
- Local Development:
http://localhost:3000 - Production: Update with your actual deployment URL
Authentication
All API endpoints (except /api/health and /api/auth/register) require Basic Authentication.
- Username: Your registered username
- Password:
cz-2025(default fromBASIC_AUTH_PASSWORDenv var)
Example:
curl -u "teacher_wang:cz-2025" http://localhost:3000/api/conversations
OpenAPI Specification
For complete API reference, see the OpenAPI spec:
- File:
/docs/openapi.yaml - View online:
http://localhost:3000/docs/openapi.yaml
Quick Start Flow
- Register a user - Create your account
- Create a conversation - Start a session with a student
- Send messages - Chat with the student
- Ask coach for help - Get coaching guidance
- Add system messages - Provide context (optional)
- View history - Retrieve conversation messages
Available Student Personalities
Nine grade levels based on Taiwan's educational framework:
grade_1throughgrade_6(國小: Elementary School)grade_7throughgrade_9(國中: Junior High School)coach_direct(Direct coach conversation without student simulation)
Available Coaches
Three coaching styles:
empathetic- 王老師 (Empathetic approach)structured- 李老師 (Structured approach)balanced- 陳老師 (Balanced approach)
Next Steps
Browse the how-to guides in this folder: