System
🔌 API Documentation
"Our API is like a well-organized kitchen – everything has its place, and you know exactly where to find the cookies."
Authentication
// Getting your secret decoder ring
const database = createClient(
process.env.DATABASE_URL,
process.env.DATABASE_SECRET_KEY
)
Endpoints
Confessions
// Sharing your thoughts
POST /confessions
{
"content": "Your heartfelt confession here",
"anonymous": true // Always true, because that's how we roll
}
// Reading others' stories
GET /confessions
// Returns an array of hope, understanding, and occasional cat stories
Challenges
// Getting today's prompt
GET /daily-challenges
// Returns something to ponder about while pretending to work
Response Examples
{
"confession": {
"id": "123",
"content": "I secretly love pineapple on pizza",
"reactions": ["😱", "🍕", "💖"]
}
}
Remember: Our API is like a confession booth – what goes in, stays in (except when shared anonymously on the platform, of course)! 🤫
Last updated