Get All Entries
Response
Dictionary of all journal entries, keyed by date (YYYY-MM-DD)
Journal metadata including creation timestamp
Get Single Entry
Parameters
Date in YYYY-MM-DD format (e.g.,
2024-03-15)Response
Returns a single entry object or 404 if not found.The journal entry content (up to 50,000 characters)
Array of photo URLs or paths (max 10)
User-defined tags (max 10 tags, 30 chars each)
Automatically generated sentiment analysis
Automatically detected themes (work, family, health, etc.)
Number of words in the entry
ISO 8601 timestamp of last update
Create/Update Entry
Parameters
Date in YYYY-MM-DD format
Request Body
Journal entry text (max 50,000 characters)
Array of tags (max 10 tags, 30 chars each)
Array of photo URLs (max 10)
Response
Indicates successful save
Complete entry object with automatically generated fields
Empathetic message based on detected mood
Automatic Processing
When you save an entry, the API automatically:- Analyzes sentiment using NLTK VADER (local)
- Detects themes using keyword matching
- Counts words
- Adds timestamp
- Generates empathetic response based on mood
Empty Entry Deletion
If you save an entry with no text and no photos, it will be automatically deleted:Delete Entry
Parameters
Date in YYYY-MM-DD format
Response
true if entry was deleted, error if not foundError Responses
Invalid Date Format
400
Entry Not Found
404
Text Too Long
400
Too Many Photos
400
Data Validation
The API validates:- Date format: Must be
YYYY-MM-DD - Text length: Max 50,000 characters
- Photos: Max 10 per entry
- Tags: Max 10 tags, 30 characters each
Mood Labels
Sentiment analysis produces these mood labels:| Compound Score | Mood Label | Emoji |
|---|---|---|
| β₯ 0.5 | very_positive | π |
| 0.2 to 0.5 | positive | π |
| -0.2 to 0.2 | neutral | π |
| -0.5 to -0.2 | negative | π |
| < -0.5 | very_negative | π’ |
Theme Detection
The API automatically detects themes from your text:- work: job, office, meeting, project
- family: mom, dad, parent, sibling
- friends: hangout, party, social
- health: gym, workout, exercise
- food: breakfast, lunch, dinner
- learning: study, read, course
- emotions: happy, sad, anxious
- travel: trip, vacation, flight
- creativity: write, art, music
Empathetic Responses
Based on your entryβs mood, youβll receive an empathetic response:| Mood | Example Response |
|---|---|
| Very Positive | βWhat a wonderful day! Your positivity shines through your words.β |
| Positive | βIt sounds like things are going well. Keep nurturing those good moments.β |
| Neutral | βThank you for reflecting today. Every entry helps you understand yourself better.β |
| Negative | βIt seems like today had some challenges. Remember, itβs okay to have difficult days.β |
| Very Negative | βI hear that today was tough. Writing about it is a brave step. Be gentle with yourself.β |
Navigation Endpoints
These endpoints power the year and month view navigation in the calendar UI.Get Years with Entries
Get Months with Entries
Get Days with Entries
Day of the month (1-31)
Full date key in YYYY-MM-DD format
First 50 characters of the entry text
Whether the entry has attached photos
Detected mood:
very_positive, positive, neutral, negative, or very_negativeEmoji representing the mood (π, π, π, π, π’)
Next Steps
Stats API
Track streaks and mood distribution
Insights API
Discover patterns in your journaling