curl --request POST \
--url https://api.example.com/api/moments/{path}/publish{
"path": "<string>",
"visibility": "<string>"
}Change the visibility of a moment from private to public
curl --request POST \
--url https://api.example.com/api/moments/{path}/publish{
"path": "<string>",
"visibility": "<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.
public), it becomes visible to all users and the published_at timestamp is automatically set.
SERVICE_API_KEY header for authentication.
X-Service-Key: your-service-api-key
YYYY/month/DD/HHMM/country/region/city/event-slugExample: 1776/july/04/1200/united-states/pennsylvania/philadelphia/signing-declaration-independence-3f4apublic - Visible to all users, sets published_at timestampprivate - Only visible to creator/authorized usersunlisted - Accessible via direct link but not shown in public listingscurl -X POST https://api.clockchain.io/api/moments/1776/july/04/1200/united-states/pennsylvania/philadelphia/signing-declaration-independence-3f4a/publish \
-H "Content-Type: application/json" \
-H "X-Service-Key: your-service-api-key" \
-d '{
"visibility": "public"
}'
{
"path": "/1776/july/04/1200/united-states/pennsylvania/philadelphia/signing-declaration-independence-3f4a",
"visibility": "public"
}
curl -X POST https://api.clockchain.io/api/moments/1776/july/04/1200/united-states/pennsylvania/philadelphia/signing-declaration-independence-3f4a/publish \
-H "Content-Type: application/json" \
-H "X-Service-Key: your-service-api-key" \
-d '{
"visibility": "private"
}'
{
"path": "/1776/july/04/1200/united-states/pennsylvania/philadelphia/signing-declaration-independence-3f4a",
"visibility": "private"
}
published_at timestamp to current UTC timepublic, the published_at field is automatically populated with the current timestamp. This field is used for sorting recently published content.publicpublished_at timestampprivate):curl -X POST https://api.clockchain.io/api/generate \
-H "Content-Type: application/json" \
-H "X-Service-Key: your-key" \
-d '{"query": "Moon landing July 20 1969", "visibility": "private"}'
curl -X GET https://api.clockchain.io/api/jobs/{job_id} \
-H "X-Service-Key: your-key"
curl -X POST https://api.clockchain.io/api/moments/{path}/publish \
-H "Content-Type: application/json" \
-H "X-Service-Key: your-key" \
-d '{"visibility": "public"}'
public. Once published, moments become visible to all users immediately.| Status Code | Description |
|---|---|
| 404 | Moment not found at the specified path |
| 401 | Missing or invalid SERVICE_API_KEY |
| 400 | Invalid visibility value |
/api/moments/{path} - Fetch full moment details