> ## Documentation Index
> Fetch the complete documentation index at: https://docs.senderr.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Adding Templates to Your Library

> Learn how to add free and paid templates to your personal library

# Adding Templates to Your Library

Your template library is your personal collection of email templates that you can use for sending emails via the API or through the dashboard. Templates can be added to your library in two ways: by purchasing paid templates or by adding free templates.

## Understanding Template Types

### Free Templates

* **Cost**: \$0.00
* **Access**: Immediately available after adding to library
* **Usage**: Unlimited rendering and sending
* **Source Code**: Full access to React Email source code

### Paid Templates

* **Cost**: Set by template author (typically $5-$50)
* **Access**: Available after purchase via Stripe
* **Usage**: Unlimited rendering and sending after purchase
* **Source Code**: Full access to React Email source code after purchase
* **License**: Personal and commercial use rights included

## Adding Free Templates

1. **Browse Templates**
   * Visit the [Template Marketplace](https://senderr.dev/templates)
   * Use filters to find free templates (Price: Free)
   * Browse by category: Newsletter, Transactional, Marketing, etc.

2. **Preview Template**
   * Click on any template to view details
   * Review the template preview and description
   * Check the variables and customization options
   * Use the live preview to see how it renders

3. **Add to Library**
   * Click the "Add to Library" button
   * The template is instantly added to your personal library
   * You can now use it immediately for sending emails

<Note>
  Free templates are instantly available in your library and can be used unlimited times at no additional cost.
</Note>

## Purchasing Paid Templates

1. **Browse Premium Templates**
   * Visit the [Template Marketplace](https://senderr.dev/templates)
   * Filter for paid templates or browse all templates
   * Premium templates often offer more sophisticated designs and features

2. **Review Template Details**
   * Check the template preview and description
   * Review the price and licensing terms
   * Look at template ratings and reviews from other users
   * Test the variables and customization options

3. **Purchase Process**
   * Click "Purchase Template" or "Add to Cart"
   * Complete the secure Stripe checkout process
   * Payment methods: Credit/debit cards, Apple Pay, Google Pay
   * Receive email confirmation of purchase

4. **Access Your Purchase**
   * Template is automatically added to your library
   * Access the full source code immediately
   * Start using the template for email sending
   * Download the source code for local development

<Warning>
  All purchases are final. Make sure to preview templates thoroughly before purchasing. Most templates include detailed previews and variable documentation.
</Warning>

## Managing Your Library

### Viewing Your Templates

1. **Dashboard Access**
   * Go to [Dashboard → Library](https://senderr.dev/dashboard/library)
   * View all your templates in one place
   * Filter by free/paid, category, or search by name

2. **Template Information**
   Each template in your library shows:
   * Template name and description
   * Preview image
   * Price (or "Free")
   * How it was added (Created/Purchased)
   * Last modified date

### Organizing Templates

* **Favorites**: Star templates you use frequently
* **Categories**: Templates are automatically categorized
* **Search**: Use the search bar to find specific templates
* **Sort Options**: Sort by name, date added, or price

### Using Templates

Once templates are in your library, you can:

1. **Send Emails via API**
   ```bash theme={null}
   curl -X POST https://senderr.dev/api/v1/send \
     -H "X-API-Key: your-api-key" \
     -H "Content-Type: application/json" \
     -d '{
       "template_id": "your-template-id",
       "to": ["recipient@example.com"],
       "subject": "Your Subject",
       "variables": {
         "name": "John Doe"
       }
     }'
   ```

2. **Use in Dashboard**
   * Navigate to Dashboard → Send Email
   * Select template from your library
   * Fill in variables and recipient details
   * Preview and send

3. **Download Source Code**
   * Click on any template in your library
   * Use the "Download Source" button
   * Get the complete React Email component code
   * Integrate into your own email systems

## Template Licensing

### What You Get

When you add a template to your library (free or paid), you receive:

* **Unlimited Usage Rights**: Send unlimited emails using the template
* **Source Code Access**: Full React Email component code
* **Commercial Rights**: Use in commercial projects and client work
* **Modification Rights**: Customize the template as needed
* **API Access**: Use via Senderr API for programmatic sending

### Restrictions

* **Redistribution**: Cannot resell or redistribute template source code
* **Attribution**: Some templates may require attribution (noted in template details)
* **Platform Usage**: Templates are licensed for use through Senderr platform

## Library Limits

### Free Plan

* **Library Size**: Up to 10 templates
* **Free Templates**: Unlimited free template additions
* **Paid Templates**: 1 paid template purchase per month

### Paid Plans

* **Library Size**: Unlimited templates
* **Free Templates**: Unlimited additions
* **Paid Templates**: Unlimited purchases

## Troubleshooting

### Template Not Appearing in Library

1. Check your internet connection
2. Refresh the library page
3. For paid templates, verify payment was processed
4. Contact support if issues persist

### Payment Issues

1. Verify payment method is valid
2. Check for sufficient funds
3. Try a different payment method
4. Contact our support team for assistance

### Template Preview Issues

1. Clear browser cache and cookies
2. Disable browser extensions
3. Try a different browser
4. Check if template uses custom variables correctly

## Next Steps

After adding templates to your library:

1. **Test Templates**: Send test emails to verify they work correctly
2. **Customize Variables**: Update template variables for your use case
3. **Set Up API**: Configure your API key for programmatic sending
4. **Create Workflows**: Integrate templates into your email workflows

## Support

Need help with your template library?

* 📚 [API Documentation](/api-reference/library)
* 💬 [Community Discord](https://senderr.dev/community)
* 📧 [Support Email](mailto:support@senderr.dev)

***

**Ready to start building your template library?** [Browse Templates →](https://senderr.dev/templates)
