APIドキュメント
Smrt English Client API
生徒とクラスの記録を教育機関のシステムに返す、読み取り専用のAPIです。各APIキー(API key)でアクセスできるのは、その教育機関のデータに限られます。
仕組み
リクエストの仕組み
教育機関のシステムが自身のAPIキーを使って生徒またはクラスの情報を要求し、APIは記録を読み取り専用で返します。
dns教育機関のシステム生徒情報を管理するシステムやレポートツールです。
arrow_forwardkeyAPIキーリクエストごとに送信され、学校に紐づけられています。
arrow_forwardapiSmrt English API生徒とクラスのための読み取り専用のエンドポイントです。
arrow_forwardtable_view学習記録成績、出欠、クラス名簿をJSONで受け取ります。
Smrt English API
Security & Permissions
Institutional Data Isolation
The API enforces strict institutional-level security:
- Single Institution Access: Your API key only accesses data for students enrolled at your institution
- Automatic Filtering: All database queries automatically filter by institution
- Cross-Institution Protection: Attempts to access other institutions' data return 404 (Not Found)
- Privacy Guarantee: Complete data separation between institutions
Data Access Rules
- Student Lookup: Only students enrolled at your institution can be retrieved
- Class Lookup: Only classes from your institution can be retrieved
- Email Matching: Email lookups are restricted to your institution's students and teachers
- Course Data: Only shows courses/classes where your students are enrolled
- Assignment Data: Only completed assignments are included in responses
- Assessment Data: Only assessments the student has taken are returned
Best Security Practices
1. Protect Your API Key
- Never commit API keys to version control or share in public forums
- Don't expose keys in client-side JavaScript or mobile apps
- Use environment variables or secure configuration management
- Store keys securely with appropriate access controls
- If you believe your key has been compromised, contact Smrt English immediately
2. Use HTTPS
- Always use HTTPS in production environments
- Never send API keys over unencrypted connections
- Verify SSL certificates to prevent man-in-the-middle attacks
3. Rate Limiting
- Be respectful of API resources
- Implement caching on your side when appropriate
- Avoid unnecessary repeated requests for the same data
- Contact Smrt English if you need high-volume access
4. Error Handling
- Don't expose API keys in error messages or logs
- Log errors securely on your server
- Handle authentication failures gracefully
- Implement appropriate retry logic with exponential backoff
5. Access Control Within Your Institution
- Limit which systems and personnel can use the API key
- Monitor API usage for suspicious activity
- Implement appropriate logging and auditing on your side
- Report any security concerns to Smrt English immediately