API Reference
The RippleCore API provides programmatic access to all platform features, enabling integration with your existing systems.Base URL
Authentication
RippleCore uses session-based authentication powered by Better Auth. All API requests require a valid session.Session Headers
OAuth Providers
| Provider | Endpoint | Status |
|---|---|---|
| Email/Password | /api/auth/sign-in/email | Active |
/api/auth/sign-in/social?provider=google | Optional | |
| GitHub | /api/auth/sign-in/social?provider=github | Optional |
Response Format
All responses follow a consistent structure:Success Response
Error Response
Error Codes
| Code | HTTP Status | Description |
|---|---|---|
UNAUTHORIZED | 401 | Authentication required |
FORBIDDEN | 403 | Insufficient permissions |
BAD_REQUEST | 400 | Invalid request parameters |
NOT_FOUND | 404 | Resource not found |
CONFLICT | 409 | Resource conflict |
VALIDATION_ERROR | 400 | Input validation failed |
RATE_LIMIT_EXCEEDED | 429 | Too many requests |
INTERNAL_ERROR | 500 | Server error |
Rate Limiting
RippleCore implements tiered rate limiting:| Tier | Limit | Use Case |
|---|---|---|
| PUBLIC | 30/min | Anonymous endpoints, health checks |
| AUTHENTICATED | 100/min | Standard CRUD operations |
| HEAVY | 5/min | Exports, bulk operations, AI features |
CSRF Protection
All state-changing operations (POST, PUT, PATCH, DELETE) require CSRF tokens:Multi-Tenancy
All requests are scoped to the user’s active organization. Include organization context via session:Endpoint Categories
Evidence Modules
| Module | Endpoints | Description |
|---|---|---|
| Kindness | 5 | Peer recognition tracking |
| Volunteer | 7 | Community impact hours |
| Donations | 6 | Charitable giving |
| Wellbeing | 5 | Employee surveys |
Portals
| Portal | Endpoints | Description |
|---|---|---|
| Charity | 11 | Partner management |
| Council | 5 | Supplier oversight |
| Consultant | 7 | Client portfolio |
Administration
| Category | Endpoints | Description |
|---|---|---|
| Users | 5 | User management |
| Organizations | 4 | Org settings |
| License | 3 | Subscription management |
| Admin | 5 | System administration |
Common Endpoints
Kindness
Volunteer
Donations
Wellbeing
Pagination
List endpoints support cursor-based pagination:Filtering
Most list endpoints support filtering:SDKs
TypeScript SDK
Official TypeScript/JavaScript client library
OpenAPI Spec
Download the OpenAPI 3.0 specification
Webhooks
RippleCore supports outbound webhooks for real-time event notifications. See Webhook Integration for setup instructions.Support
For API support, contact api-support@ripplecore.co.uk or visit our GitHub repository.
