API reference · 10 endpoints
Automations
Standing reflect queries that keep themselves up to date as new memories land.
- GETList automation templates
- GETList automations
- POSTCreate automation
- GETGet automation
- PATCHUpdate automation
- DELETEDelete automation
- POSTClear automation content
- GETGet automation history
- POSTRefresh automation
- GETGet automation run history
/v1/default/automations/templatesList automation templates
The static catalog of starter automation templates (name, source query, and a suggested schedule) used to pre-fill the create form.
/v1/default/namespaces/{namespace_id}/automationsList automations
List user-curated living documents that stay current.
Parameters
namespace_idstringpathrequiredtagsstring[]queryFilter by tags
tags_match"any" | "all" | "exact"queryHow to match tags
detail"metadata" | "content" | "full"queryDetail level: 'metadata' (names/tags only), 'content' (adds content/config), 'full' (includes reflect_response)
limitintegerqueryoffsetintegerquery/v1/default/namespaces/{namespace_id}/automationsCreate automation
Create an automation by running reflect with the source query in the background. Returns an operation ID to track progress. The content is auto-generated by the reflect endpoint. Use the operations endpoint to check completion status.
Parameters
namespace_idstringpathrequiredRequest body · application/json
idstring | nullOptional custom ID for the automation (alphanumeric lowercase with hyphens)
namestringrequiredHuman-readable name for the automation
source_querystringrequiredThe query to run to generate content
tagsstring[]default []Tags for scoped visibility
max_tokensintegerdefault 2048Maximum tokens for generated content
triggerunknown | nulldefault {}Trigger settings
/v1/default/namespaces/{namespace_id}/automations/{automation_id}Get automation
Get a specific automation by ID.
Parameters
namespace_idstringpathrequiredautomation_idstringpathrequireddetail"metadata" | "content" | "full"queryDetail level: 'metadata' (names/tags only), 'content' (adds content/config), 'full' (includes reflect_response)
/v1/default/namespaces/{namespace_id}/automations/{automation_id}Update automation
Update an automation's name and/or source query.
Parameters
namespace_idstringpathrequiredautomation_idstringpathrequiredRequest body · application/json
namestring | nullNew name for the automation
source_querystring | nullNew source query for the automation
max_tokensinteger | nullMaximum tokens for generated content
tagsstring[]Tags for scoped visibility
triggerunknown | nullTrigger settings
/v1/default/namespaces/{namespace_id}/automations/{automation_id}Delete automation
Delete an automation.
Parameters
namespace_idstringpathrequiredautomation_idstringpathrequired/v1/default/namespaces/{namespace_id}/automations/{automation_id}/clearClear automation content
Clear an automation's content so the next refresh performs a full re-synthesis. This is useful for delta-mode models that have accumulated drift over many incremental refreshes. After clearing, call the /refresh endpoint to trigger a clean full rebuild.
Parameters
namespace_idstringpathrequiredautomation_idstringpathrequired/v1/default/namespaces/{namespace_id}/automations/{automation_id}/historyGet automation history
Get the refresh history of an automation, showing content changes over time.
Parameters
namespace_idstringpathrequiredautomation_idstringpathrequired/v1/default/namespaces/{namespace_id}/automations/{automation_id}/refreshRefresh automation
Submit an async task to re-run the source query through reflect and update the content.
Parameters
namespace_idstringpathrequiredautomation_idstringpathrequired/v1/default/namespaces/{namespace_id}/automations/{automation_id}/runsGet automation run history
List the newest-first refresh runs of an automation, each with its trigger cause (manual/schedule/consolidation) and outcome (changed, or no_new_facts for a quiet-day skip). Terminally failed refreshes are not included; they appear in the failed-operations DLQ.
Parameters
namespace_idstringpathrequiredautomation_idstringpathrequired