← Back to home

Cancer Delta API Documentation

Welcome to the Cancer Delta API documentation. This API serves content data from our Neon database, providing access to articles, resource categories, spaces, and assets.

API Endpoints

Content Endpoints

Articles

Tags

Resources

Authenticated Endpoints

These endpoints require a valid JWT token in the Authorization header.

Authentication

Protected endpoints require a JWT token in the Authorization header:

Authorization: Bearer YOUR_JWT_TOKEN

The JWT token is validated against the secret defined in your environment variables. User authentication is managed through Supabase, while content data is served from Neon.

Response Format

All API responses follow a consistent JSON format:

{"articles": [...],"categories": [...],"tags": [...],"page": 1, "limit": 10, "hasMore": true}

Caching

Content endpoints use appropriate Cache-Control headers:

Error Handling

API errors return appropriate HTTP status codes with a JSON response:

{"error": "Error message description"}

Rate Limiting

The API implements basic rate limiting. Please ensure your application handles 429 responses appropriately by implementing backoff strategies.

CORS

The API supports CORS for the origins specified in the CORS_ORIGIN environment variable. By default, this includes localhost development environments and the Cancer Delta app domain.