API Reference
Create a new teacher
Add a new teacher to the system.
Authorization
BearerAuth AuthorizationBearer <token>
Obtain your API key from the developer dashboard at https://dashboard.educare.com
In: header
Request Body
application/json
name*string
email*string
Format
emaildepartment*string
subjects?array<string>
phone?string
office_room?string
Response Body
application/json
application/json
application/json
curl -X POST "https://api.educare.com/v1/teachers" \ -H "Content-Type: application/json" \ -d '{ "name": "Mr. David Johnson", "email": "david.johnson@educare.com", "department": "Mathematics" }'{
"id": 567,
"name": "Dr. Sarah Chen",
"email": "sarah.chen@educare.com",
"department": "Science",
"subjects": [
"Physics",
"Chemistry"
],
"phone": "+1-555-222-3333",
"office_room": "B-204",
"hire_date": "2018-08-15",
"created_at": "2018-08-15T09:00:00Z",
"updated_at": "2025-11-20T16:45:00Z"
}{
"error": "Validation failed: email is required",
"code": "VALIDATION_ERROR",
"status": 400
}{
"error": "Invalid API key",
"code": "UNAUTHORIZED",
"status": 401
}