Available APIs
Trending Society exposes several APIs for internal and external use.| API | Purpose | Endpoint |
|---|---|---|
| MCP Server | AI agent tools | mcp.trendingsociety.com |
| Edge Functions | Serverless functions | ymdccxqzmhxgbjbppywf.supabase.co/functions/v1 |
| Supabase REST | Database access | ymdccxqzmhxgbjbppywf.supabase.co/rest/v1 |
Authentication
MCP Server
Uses API key authentication:Supabase APIs
Uses anon key for public access, service role for admin:Rate Limits
| API | Limit |
|---|---|
| MCP Server | 100 requests/minute |
| Edge Functions | 500 requests/minute |
| Supabase REST | 1000 requests/minute |
Error Handling
All APIs return standard error format:Common Error Codes
| Code | HTTP Status | Description |
|---|---|---|
UNAUTHORIZED | 401 | Missing or invalid API key |
FORBIDDEN | 403 | Insufficient permissions |
NOT_FOUND | 404 | Resource doesn’t exist |
RATE_LIMITED | 429 | Too many requests |
INTERNAL_ERROR | 500 | Server error |