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.
Parameters:
limit: Number of articles to return (default: 10)page: Page number (default: 1)resource_space_id: Optional filter for articles related to a resource spacetag_id: Optional filter for articles with a specific tagcategory: Optional filter for articles in a specific categoryReturns article metadata, content, and associated tags
Parameters:
resource_space_id: Optional filter for tags associated with a specific resource spaceReturns a list of all tags or tags filtered by resource space
Parameters:
category_id: Optional filter for classes in a specific categoryParameters:
class_id: Optional filter for spaces in a specific classcategory_id: Optional filter for spaces in a specific categoryParameters:
space_id: Optional filter for assets in a specific spacetype: Optional filter for assets of a specific typesection: Optional filter for assets in a specific sectionThese endpoints require a valid JWT token in the Authorization header.
Protected endpoints require a JWT token in the Authorization header:
Authorization: Bearer YOUR_JWT_TOKENThe 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.
All API responses follow a consistent JSON format:
{"articles": [...],"categories": [...],"tags": [...],"page": 1, "limit": 10, "hasMore": true}Content endpoints use appropriate Cache-Control headers:
public, s-maxage=60, stale-while-revalidate=3600private, no-cacheAPI errors return appropriate HTTP status codes with a JSON response:
{"error": "Error message description"}The API implements basic rate limiting. Please ensure your application handles 429 responses appropriately by implementing backoff strategies.
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.