API Basics
Base URL
All API requests should be made to:Authentication
All API requests require a Bearer token (your API key) in the Authorization header:ef_.
Rate Limiting
Each API key is limited to 100 requests per minute. If you exceed this limit, the API will return a 429 (Too Many Requests) response. Wait briefly before retrying.Key Endpoints
Templates
Design Systems
Common Use Cases
Automated Template Creation
Use the Templates endpoints to programmatically create, update, and manage templates. Integrate with your workflow automation tools to generate templates based on data or events.Design System Sync Automation
Integrate component syncing with your CI/CD pipeline or design tool workflows to automatically keep your Email Love Builder design system in sync with your source designs.Template Management
Build custom interfaces for template organization, search, and management using the API.Response Format
All API responses are returned in JSON format. Successful requests return the created or modified resource along with relevant metadata.Error Responses
Errors include an error code and descriptive message:Best Practices
- Use Bearer Token Authentication: Always include your API key in the Authorization header
- Handle Rate Limits: Implement exponential backoff when approaching the 100 requests per minute limit
- Validate Responses: Check response status codes and error messages to handle failures gracefully
- Store API Keys Securely: Never commit API keys to version control or expose them in client-side code
- Generate Workspace-Specific Keys: Create separate API keys for different integrations or purposes
Security Considerations
- API keys grant full access to your workspace: treat them as secrets
- Rotate API keys periodically for enhanced security
- Revoke keys that are no longer needed (go to Settings > API Keys > Revoke)
- Never share API keys via email or unsecured channels
- Use API keys only with HTTPS connections
Detailed Documentation
For complete endpoint documentation including request bodies, response schemas, and code examples, see the full API reference in the repository.Examples
Authenticate and List Templates
Create a New Template
Need Help?
- Review endpoint-specific documentation in the detailed reference
- Check the Figma plugin guide for plugin-specific API usage
- Contact our support team for integration assistance

