Welcome to Spruce Rewards API
The Spruce Rewards API is a comprehensive backend platform for managing memberships, rewards, raffles, and customer engagement. Built with GDPR compliance and fraud mitigation in mind, this API provides everything you need to create engaging loyalty and rewards experiences.Key Features
Authentication & Users
Secure user authentication with magic links, password management, and email verification
Rewards & Loyalty
Comprehensive rewards system with referrals, discount codes, and loyalty tracking
Raffles & Contests
Full-featured raffle management with entries, winners, and point-based purchases
Points System
Flexible points system with awards, redemptions, and detailed transaction history
Payments
Integrated payment processing with Revolut and NomuPay support
Analytics & Reports
Comprehensive analytics dashboard with subscription metrics, revenue analysis, and user growth tracking
API Specification
This documentation is built from our OpenAPI specification and provides interactive API testing through the playground.OpenAPI Specification
View the complete OpenAPI specification file
Authentication
All API endpoints require authentication using Bearer tokens. Include your authentication token in theAuthorization header of each request:
Security Configuration
The API uses the following security scheme defined in the OpenAPI specification:Getting Started
1
Authenticate
Use the
/auth/login or /auth/register endpoints to obtain your authentication token2
Explore Endpoints
Browse the available endpoint groups in the sidebar to find the functionality you need
3
Test in Playground
Use the interactive API playground to test endpoints with your authentication token
4
Integrate
Implement the API calls in your application using the examples and schemas provided
API Organization
The API is organized into the following main groups:- Auth - User authentication and registration
- Users - User profile management and statistics
- Rewards - Referral codes, loyalty status, and reward tracking
- Discount Codes - Discount management and wheel spin functionality
- Raffles - Raffle creation, entries, and winner selection
- Points - Points awards, redemption, and history
- Payments - Payment processing and order management
- Subscriptions - Subscription tiers and credit management
- Admin - Administrative operations and site configuration
- Analytics - Business intelligence and reporting
- Merch - Merchandise product and order management