API
Authentication
All API requests require authentication using an API key.
How It Works
Include your API key in the Authorization header using Bearer authentication:
Code
Getting Your API Key
- Log in to your Teachfloor account
- Navigate to Settings → Integrations
- Click Generate API Key
- Copy and store the key securely
Security: Never share your API key publicly or commit it to version control.
Example Request
Code
Code
Code
Regenerating Your Key
You can regenerate your API key at any time:
- Go to Settings → Integrations
- Click Regenerate API Key
Warning: Regenerating invalidates the previous key. Update all applications using the old key.
Best Practices
- Store API keys in environment variables
- Never hardcode keys in your application
- Regenerate immediately if compromised
Next Steps
- Rate Limiting - Understand usage limits
- Errors - Handle API errors
Last modified on