Authorization: Bearer YOUR_TOKEN
/api/syncUpload a ZIP file containing the full .clint directory structure. Use this for full backups.
curl -X POST "{BASE_URL}/api/sync?owner=myorg&repo=project-x" \
-H "Authorization: Bearer {TOKEN}" \
-H "Content-Type: application/zip" \
--data-binary @clint_state.zip
/api/downloadDownload the latest .clint state as a ZIP file.
curl "{BASE_URL}/api/download?owner=myorg&repo=project-x" \
-H "Authorization: Bearer {TOKEN}" \
-o clint_restore.zip
/api/bullet/fileUpload a specific file (e.g., instructions.md, overview.md) to a bullet directory.
curl -X POST "{BASE_URL}/api/bullet/file?owner=myorg&repo=project-x&bullet=bullet_001&filename=instructions.md" \
-H "Authorization: Bearer {TOKEN}" \
--data-binary @local_instructions.md
/api/bullet/fileRetrieve the raw content of a specific file.
curl "{BASE_URL}/api/bullet/file?owner=myorg&repo=project-x&bullet=bullet_001&filename=instructions.md" \
-H "Authorization: Bearer {TOKEN}"
/api/bullet/statusUpdate the status of a specific task (e.g., success, failure).
curl -X POST "{BASE_URL}/api/bullet/status?owner=myorg&repo=project-x&bullet=bullet_001" \
-H "Authorization: Bearer {TOKEN}" \
-d "success"
/api/bullet/logAppend a text line to the logs.md file of a specific bullet.
curl -X POST "{BASE_URL}/api/bullet/log?owner=myorg&repo=project-x&bullet=bullet_001" \
-H "Authorization: Bearer {TOKEN}" \
-d "Error: Dependency missing"