Official documentation for ToSend - a modern transactional email sending service.
Live Documentation: docs.tosend.com
This repository contains the complete documentation for ToSend, including:
- User Guides - Domain setup, API keys, webhooks, suppressions, and billing
- API Reference - Complete REST API documentation with examples
- SDKs - Official SDKs for Node.js, Python, Go, Laravel, and PHP
- WordPress Integration - Guide for using ToSend with WordPress
- VitePress - Vue-powered static site generator
- Cloudflare Pages - Deployment platform
- pnpm - Fast, disk space efficient package manager
- Node.js 18 or higher
- pnpm 8.0 or higher
# Clone the repository
git clone https://github.com/tosend/docs-site.git
cd docs-site
# Install dependencies
pnpm installStart the development server with hot module replacement:
pnpm devThe documentation site will be available at http://localhost:5173
Generate the static site:
pnpm buildThe built files will be in .vitepress/dist
Preview the production build locally:
pnpm previewdocs-site/
├── .vitepress/
│ ├── config.mjs # VitePress configuration
│ └── dist/ # Build output (ignored)
├── docs/
│ ├── index.md # Homepage
│ ├── guide/ # User guides
│ ├── api/ # API reference
│ └── sdks/ # SDK documentation
├── package.json
└── README.md
This site automatically deploys to docs.tosend.com via Cloudflare Pages when you push to the master branch.
To deploy:
git add .
git commit -m "Update documentation"
git push origin masterCloudflare Pages will automatically build and deploy your changes in ~1 minute.
Preview deployments:
- Pull requests automatically get preview URLs
- Feature branches get their own preview deployments
We welcome contributions to improve the documentation!
- Fork the repository
- Create a feature branch (
git checkout -b improve-api-docs) - Make your changes
- Test locally with
pnpm dev - Commit your changes (
git commit -m 'Improve API documentation') - Push to your branch (
git push origin improve-api-docs) - Open a Pull Request
- Use clear, concise language
- Include code examples where applicable
- Follow the existing markdown formatting
- Test all code snippets before submitting
- Add screenshots for UI-related guides
- Create a new
.mdfile in the appropriate directory (docs/guide/,docs/api/, ordocs/sdks/) - Add the page to the sidebar in
.vitepress/config.mjs - Test the navigation locally
Complete guides for using ToSend:
- Domain verification and DNS setup
- DMARC configuration
- API key management
- Webhook integration
- Email logs and analytics
- Suppression list management
- Billing and usage metrics
- WordPress integration
RESTful API documentation:
- Authentication
- Send single emails
- Send batch emails
- Retrieve account information
- Error handling
Official SDKs and integration guides:
- Node.js
- Python
- Go
- Laravel
- PHP
- Main Site: tosend.com
- Documentation: docs.tosend.com
- GitHub: github.com/tosend
- Support: support@tosend.com
MIT License - Copyright © ToSend
Built with ❤️ by the ToSend team