API
Rate Limiting
The API enforces rate limits to ensure platform stability and fair usage.
Rate Limit
50 requests per minute per organization by default. The limit is counted across every API key of the organization, not per key. Plans can carry a higher limit; the headers below always tell you the one that applies to you.
Rate Limit Headers
Each API response includes headers showing your current rate limit status:
| Header | Description |
|---|---|
X-RateLimit-Limit | Maximum requests per minute for your organization |
X-RateLimit-Remaining | Requests remaining in the current minute |
Retry-After | Only on a 429: seconds to wait before retrying |
Example Response Headers
Code
Exceeding the Limit
If you exceed the rate limit, you'll receive:
Status Code: 429 Too Many Requests
Response:
Code
Requests that hit the limit still count towards it. Stop sending until the window resets rather than retrying in a tight loop.
Best Practices
Monitor Remaining Requests
Code
Implement Backoff
Code
Reduce Calls
- Cache responses when possible
- Use the
searchendpoints instead of listing and filtering client-side - Use webhooks for real-time updates instead of polling
Need Higher Limits?
Contact support through your Teachfloor dashboard to discuss your use case.
Next Steps
- Errors - Handle API errors
- Authentication - API key setup
Last modified on