🌞 Sunlight Server API

Backend API for Sunlight Protocol applications

API Endpoints

This server provides authentication and protocol management APIs.

POST /api/register

Register a new user for a specific app

POST /api/login

Authenticate user and receive JWT token

GET /api/verify

Verify JWT token and get user info

POST /api/send-sunlight-protocol

Send personalized sunlight protocol via email

GET /api/admin/apps

Get all active apps (admin only)

POST /api/admin/apps

Add new app (admin only)

Documentation

For complete API documentation and integration examples, see FRONTEND_API_DOCS.md in the project repository.