API Usage Guidelines
Best practices, rate limits, and integration guidelines for optimal API usage
Rate Limiting
- Standard APIs: 100 requests per minute
- Media Upload: 20 uploads per minute
- AI Services: 10 requests per minute
- Webhooks: No rate limit
Rate limits are per user session or API key.
Authentication
- Session-based: Browser cookie authentication
- API Keys: For webhook and third-party integrations
- JWT Tokens: For mobile and SPA applications
- Role-based Access: Admin, user, and guest permissions
Always use HTTPS for API communications.
Error Handling
- 400: Bad Request - Invalid parameters
- 401: Unauthorized - Authentication required
- 403: Forbidden - Insufficient permissions
- 429: Too Many Requests - Rate limit exceeded
- 500: Internal Server Error - Contact support
All errors include detailed JSON error messages.
Best Practices
- Pagination: Use limit and offset parameters
- Caching: Respect cache headers for better performance
- Idempotency: Use idempotency keys for critical operations
- Validation: Client-side validation before API calls
Monitor API response times and adjust request frequency accordingly.
Data Formats
- Request: JSON with UTF-8 encoding
- Response: JSON with consistent field naming
- Dates: ISO 8601 format (YYYY-MM-DDTHH:mm:ssZ)
- Files: Multipart form-data for uploads
All timestamps are in UTC timezone.
Support & SDKs
- Documentation: Always up-to-date with examples
- Status Page: Real-time API status monitoring
- Developer Support: Email support for integration help
- SDKs: JavaScript, Python, and PHP libraries available
Join our developer Discord for community support.