Documentation Index
Fetch the complete documentation index at: https://mintlify.com/timepoint-ai/timepoint-clockchain/llms.txt
Use this file to discover all available pages before exploring further.
Endpoint
Authentication
Requires a valid service key via theverify_service_key dependency.
Response
Returns a singleMomentSummary object:
Unique path identifier for the moment
Display name of the moment
Brief description or summary
Year when the moment occurred
Month (1-12)
Day of the month (1-31)
Graph layer (importance indicator)
Always
public for random resultsSource classification (e.g.,
historical, generated)Example
Get Random Moment
Error Responses
No public moments available in the database
Behavior Notes
- Returns only public moments (visibility =
public) - Only considers moments with layer >= 1 (filters out layer 0 moments)
- Uses PostgreSQL’s
ORDER BY random()for true randomization - Each request returns a different moment (no caching or session state)
- If the database has no qualifying moments, returns a 404 error
Use Cases
- Discovery features: “Surprise me” or “Random moment” buttons
- Daily inspiration: Show a random historical moment on app launch
- Testing: Quickly access different moments during development
- Serendipity: Help users discover moments they wouldn’t search for
- Onboarding: Show example moments to new users
Performance Considerations
TheORDER BY random() approach is simple but can be slow on very large datasets. For production systems with millions of moments, consider:
- Implementing a cached random ID list
- Using a weighted random selection based on layer importance
- Pre-computing daily/hourly random moment selections