curl --request POST \
--url https://api.example.com/api/index{
"path": "<string>",
"status": "<string>"
}Manually create and index a moment node into the graph
curl --request POST \
--url https://api.example.com/api/index{
"path": "<string>",
"status": "<string>"
}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.
/index endpoint allows you to manually create moment nodes in the Clockchain graph without using the Flash Timepoint API. This is useful for:
/index does not call the Flash API. You must provide all moment metadata manually.SERVICE_API_KEY header for authentication.
X-Service-Key: your-service-api-key
/YYYY/month/DD/HHMM/country/region/city/event-slugExample: /1969/july/20/2056/united-states/florida/cape-canaveral/apollo-11-moon-landingname (string) - Event name/titleone_liner (string) - Brief descriptionyear (integer) - Year of eventmonth (string) - Month namemonth_num (integer) - Month number (1-12)day (integer) - Day of monthtime (string) - Time in HHMM formatcountry (string) - Country slugregion (string) - Region slugcity (string) - City slugtags (array) - Tag stringsfigures (array) - Names of key figuresslug (string) - URL-friendly identifierera (string) - Historical eralayer is automatically set to at least 2 (Flash-generated content layer).private - Only visible to authorized userspublic - Visible to all usersunlisted - Accessible via direct linkindexed on success.curl -X POST https://api.clockchain.io/api/index \
-H "Content-Type: application/json" \
-H "X-Service-Key: your-service-api-key" \
-d '{
"path": "/1969/july/20/2056/united-states/florida/cape-canaveral/apollo-11-landing",
"metadata": {
"name": "Apollo 11 Moon Landing",
"one_liner": "First humans land on the Moon",
"year": 1969,
"month": "july",
"month_num": 7,
"day": 20,
"time": "2056",
"country": "united-states",
"region": "florida",
"city": "cape-canaveral",
"tags": ["space", "nasa", "moon", "apollo"],
"figures": ["Neil Armstrong", "Buzz Aldrin", "Michael Collins"]
},
"visibility": "public",
"created_by": "data-import-script"
}'
{
"path": "/1969/july/20/2056/united-states/florida/cape-canaveral/apollo-11-landing",
"status": "indexed"
}
curl -X POST https://api.clockchain.io/api/index \
-H "Content-Type: application/json" \
-H "X-Service-Key: your-service-api-key" \
-d '{
"path": "/1776/july/04/1200/united-states/pennsylvania/philadelphia/declaration-independence",
"flash_timepoint_id": "tp_a3d8f7e2_4c1b_4a9e",
"metadata": {
"name": "Signing of the Declaration of Independence",
"one_liner": "Continental Congress adopts Declaration of Independence",
"year": 1776,
"tags": ["american-revolution", "independence", "founding-documents"],
"figures": ["Thomas Jefferson", "John Adams", "Benjamin Franklin"]
},
"visibility": "public",
"created_by": "flash-integration"
}'
type - Always set to "event"layer - Set to 0 by default, or 2 minimum if flash_timepoint_id is providedcreated_at - Automatically set to current UTC timestampname - Event nameyear, month, day, time - Temporal datacountry, region, city - Spatial dataone_liner - Brief descriptiontags - Categorization tagsfigures - Key historical figures involvedera - Historical period/eraslug - URL identifierflash_slug - Flash Timepoint slug if applicableflash_share_url - Flash Timepoint share URLsource_type - Data source classificationconfidence - Confidence score (0.0-1.0)flash_timepoint_id is provided, layer is automatically set to at least 2.# Import from CSV/JSON with pre-computed paths
curl -X POST https://api.clockchain.io/api/index \
-H "Content-Type: application/json" \
-H "X-Service-Key: your-service-api-key" \
-d '{
"path": "/1865/april/14/2215/united-states/washington-dc/fords-theatre/lincoln-assassination",
"metadata": {
"name": "Assassination of Abraham Lincoln",
"year": 1865,
"tags": ["civil-war", "assassination", "lincoln"],
"figures": ["Abraham Lincoln", "John Wilkes Booth"],
"source_type": "historical_database"
},
"visibility": "public",
"created_by": "wikipedia-import-bot"
}'
# Index a moment generated externally via Flash API
curl -X POST https://api.clockchain.io/api/index \
-H "Content-Type: application/json" \
-H "X-Service-Key: your-service-api-key" \
-d '{
"path": "/1945/august/06/0815/japan/chugoku/hiroshima/atomic-bombing",
"flash_timepoint_id": "tp_external_12345",
"metadata": {
"name": "Atomic Bombing of Hiroshima",
"flash_share_url": "https://flash.timepoint.ai/moments/tp_external_12345",
"tags": ["wwii", "nuclear", "japan"]
},
"visibility": "public"
}'
# Index non-Flash content with custom attributes
curl -X POST https://api.clockchain.io/api/index \
-H "Content-Type: application/json" \
-H "X-Service-Key: your-service-api-key" \
-d '{
"path": "/2024/january/15/1430/united-states/california/palo-alto/company-founding",
"metadata": {
"name": "Acme Corp Founded",
"custom_field_1": "corporate_event",
"custom_field_2": 1000000,
"tags": ["business", "startup"]
},
"visibility": "private",
"created_by": "internal-timeline-system"
}'
/YYYY/month-name/DD/HHMM/country/region/city/event-slug| Status Code | Description |
|---|---|
| 400 | Missing required path field |
| 401 | Missing or invalid SERVICE_API_KEY |
| 409 | Node already exists at the specified path |
| 500 | Graph indexing error |
| Feature | /index | /generate |
|---|---|---|
| Flash API call | No | Yes |
| Job processing | Immediate | Async background |
| Requires metadata | Yes, manual | No, auto-extracted |
| Use case | Structured imports | Natural language queries |
| Cost | No Flash API cost | Flash API credits |
| Response time | ~100ms | 5-30 seconds |
/api/moments/{path} - Retrieve indexed moments