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
Query Parameters
Search query (minimum 1 character). Supports partial matching.
Authentication
Requires a valid service key via theverify_service_key dependency.
Response
Returns an array ofSearchResult objects:
Unique path identifier for the moment
Display name of the moment
Brief description or summary
Relevance score:
1.0- Match in the name field0.7- Match in the one_liner field0.4- Match in tags or figures fields
Examples
Search by Keyword
Search by Person
Search by Tag
Search Algorithm
The search performs case-insensitive partial matching across:- Name field (score: 1.0) - Highest priority
- One-liner field (score: 0.7) - Medium priority
- Tags array (score: 0.4) - Lower priority
- Figures array (score: 0.4) - Lower priority
- Sorted by score (descending) - most relevant first
- Limited to 20 results maximum
- Filtered to public moments only
Behavior Notes
- Query parameter
qis required and must be at least 1 character - Search is case-insensitive
- Uses SQL
ILIKEfor partial matching (e.g.,moonmatchesApollo 11 Moon Landing) - Only returns public moments (visibility =
public) - Returns empty array
[]if no matches found - Maximum of 20 results returned per query
Use Cases
- Search bars: Primary search functionality for your app
- Autocomplete: Suggest moments as users type
- Entity search: Find moments related to specific people, places, or topics
- Tag exploration: Discover moments by thematic tags
- Quick lookup: Find specific moments when you know part of the name
Performance Tips
- For better performance on large datasets, consider implementing full-text search with PostgreSQL’s
tsvector - Add indexes on frequently searched fields (
name,one_liner) - For multi-word queries, consider splitting and searching each term
- Cache popular search queries to reduce database load