Content Library
Save, organize, and AI-summarize content from articles, URLs, and text.
/api/v1/contentList saved content with filtering and pagination.
// GET /api/v1/content?limit=50&offset=0&content_type=article&search=AI
{
"data": [
{
"id": "cnt_abc123",
"title": "The Future of AI in Healthcare",
"description": "A comprehensive overview...",
"content_type": "article",
"url": "https://example.com/ai-healthcare",
"summary": "AI is revolutionizing healthcare...",
"is_favorite": true,
"collection_id": "col_xyz",
"created_at": "2025-01-15T10:00:00Z"
}
],
"total": 42,
"limit": 50,
"offset": 0
}/api/v1/contentSave new content to your library.
// Request
{
"title": "Great Article on AI",
"url": "https://example.com/ai-article",
"content_type": "article",
"collection_id": "col_xyz"
}
// Response (201)
{
"id": "cnt_xyz789",
"title": "Great Article on AI",
"content_type": "article",
"created_at": "2025-01-15T12:00:00Z"
}/api/v1/content/summarizeGenerate an AI-powered summary of text or URL content.
// Request
{
"url": "https://example.com/long-article",
"max_length": 300
}
// Response
{
"summary": "This article discusses the key trends in AI...",
"cost": "0.0025"
}/api/v1/content/collectionsList content collections.
{
"data": [
{
"id": "col_xyz",
"name": "AI Research",
"description": "Curated AI research papers and articles",
"color": "#3b82f6",
"icon": "brain",
"created_at": "2025-01-01T00:00:00Z"
}
]
}/api/v1/content/collectionsCreate a new content collection.
// Request
{
"name": "Product Research",
"description": "Competitor analysis and market research",
"color": "#10b981",
"icon": "search"
}
// Response (201)
{
"id": "col_new123",
"name": "Product Research",
"created_at": "2025-01-15T12:00:00Z"
}