Endpoints
GET /health
Check if the API is running.
Response:
{ "status": "ok"}GET /api/protected
Example protected endpoint requiring subscription and auth token.
Headers:
Authorization: Bearer <token>X-Subscription-Status: active
Response:
{ "message": "You have accessed a protected endpoint", "token": "tkn****"}Error Codes
| Status | Meaning |
|---|---|
| 401 | Missing or invalid auth token |
| 403 | Active subscription required |
| 500 | Internal server error |