This document provides sample request and response payloads for BiblioDrift APIs.
POST /api/v1/chat
{
"message": "I want something cozy for a rainy evening",
"history": [
{"role": "user", "content": "Hello!"},
{"role": "assistant", "content": "Welcome to my shop. How can I help you find a story today?"}
]
}{
"response": "You might enjoy 'The Night Circus' or 'Before the Coffee Gets Cold' for a cozy vibe."
}POST /api/v1/mood-search
{
"query": "mystery thriller"
}{
"results": [
{
"title": "Gone Girl",
"author": "Gillian Flynn"
},
{
"title": "The Girl with the Dragon Tattoo",
"author": "Stieg Larsson"
}
]
}POST /api/v1/analyze-mood
{
"title": "The Great Gatsby",
"author": "F. Scott Fitzgerald"
}{
"mood": ["melancholic", "romantic", "tragic"]
}POST /api/v1/generate-note
{
"title": "Atomic Habits"
}{
"summary": "A practical guide to building good habits and breaking bad ones."
}GET /api/v1/health
{
"status": "ok"
}