Documentation Index
Fetch the complete documentation index at: https://docs.letterby.com/llms.txt
Use this file to discover all available pages before exploring further.
Getting started with API access
1. Obtain your API key
The most secure way to get access to the Letterby API is through our 7-day trial:- Sign up for the trial at letterby.com
- Your API key will remain active during development
- We’ll ensure it doesn’t auto-renew until your integration is complete and live
Waitlist registration
Creating contacts
To add users to your waitlist, use the Create Contact endpoint. This endpoint automatically handles the verification process.What happens after contact creation
- Verification Email: An automatic verification email is sent to the user
- Confirmation: When they click the verification link, they’re redirected to their rank page
- Referral System: On their rank page, users can invite friends to move up faster
Core integration: point system
Understanding the point system
Letterby uses an action-based point system where users earn points for specific actions they perform. This encourages engagement and moves them up the waitlist.Awarding points with the actions endpoint
To award points to a user, you’ll use the Actions endpoint. The contact must already exist in your system before you can award points.Parameters explained
name: A descriptive name for the action (e.g., “Purchased 1K Plan”, “Shared on Social Media”)increase: The number of points to award (can be any positive integer)contactId: The unique identifier of the contact who performed the action
Common point-worthy actions
Here are some common actions you might want to reward:- Referral Success: +50 points when someone they invited joins
- Social Media Share: +10 points for sharing your product
- Purchase Plans: +25 points for upgrading to paid plans
- Profile Completion: +5 points for completing their profile
- Daily Login: +1 point for logging in each day
Customizing the user experience
Email verification settings
You can customize the verification email from your dashboard:- Go to Journey → Confirmation Email
- Customize the email template, subject line, and styling
- Preview and test your changes
Referral page customization
You have two options for the referral page:Option 1: Use Letterby hosted page (recommended)
- Go to Journey → Referral Page in your dashboard
- Customize colors, branding, and messaging
- Users are automatically redirected here after verification
Option 2: Self-hosted custom page
If you need complete control over the user experience, we offer a special endpoint for self-hosting:- Contact our support team to enable the self-hosted verification endpoint
- You’ll handle verification manually when users click confirmation links
- Requires additional development and maintenance
Complete integration example
Here’s a complete example showing how to implement both contact creation and point awarding:Best practices
Security
- Always validate user input before making API calls
- Never expose your API key in client-side code
- Use environment variables to store sensitive data
Point economy
- Design a balanced point system that encourages engagement without being too easy
- Consider diminishing returns for repeated actions (daily login caps, etc.)
- Make high-value actions worth significantly more points
User experience
- Provide clear feedback when users earn points
- Show progress towards their next rank or reward
- Make the referral process as simple as possible
Troubleshooting
Common issues
Contact creation fails- Ensure the email format is valid
- Check that the contact doesn’t already exist
- Verify your API key has the correct permissions
- Confirm the contact exists before awarding points
- Check that the
contactIdis correct - Ensure
increaseis a positive integer
- Check your dashboard settings under Journey → Confirmation Email
- Verify the email isn’t being caught by spam filters
- Contact support if emails consistently fail to deliver
Next steps
Once you have the basic integration working:- Set up monitoring and analytics to track user engagement
- Experiment with different point values to optimize user behavior
- Consider implementing webhook notifications for real-time updates
- Explore advanced features like Audiences for targeted campaigns
Getting help
If you need assistance with your integration:- Check our API Reference for detailed endpoint documentation
- Join our Discord community for quick help
- Contact support at hi@letterby.com for enterprise support
Remember: Your API key will remain active during development and won’t
auto-renew until your integration is complete and live. Take your time to
build a solid implementation!