API reference · 5 endpoints
Directives
Per-namespace standing instructions that steer retain and recall behavior.
GET
/v1/default/namespaces/{namespace_id}/directivesList directives
List hard rules that are injected into prompts.
Parameters
namespace_idstringpathrequiredtagsstring[]queryFilter by tags
tags_match"any" | "all" | "exact"queryHow to match tags
active_onlybooleanqueryOnly return active directives
limitintegerqueryoffsetintegerqueryPOST
/v1/default/namespaces/{namespace_id}/directivesCreate directive
Create a hard rule that will be injected into prompts.
Parameters
namespace_idstringpathrequiredRequest body · application/json
namestringrequiredHuman-readable name for the directive
contentstringrequiredThe directive text to inject into prompts
priorityintegerdefault 0Higher priority directives are injected first
is_activebooleandefault trueWhether this directive is active
tagsstring[]default []Tags for filtering
GET
/v1/default/namespaces/{namespace_id}/directives/{directive_id}Get directive
Get a specific directive by ID.
Parameters
namespace_idstringpathrequireddirective_idstringpathrequiredPATCH
/v1/default/namespaces/{namespace_id}/directives/{directive_id}Update directive
Update a directive's properties.
Parameters
namespace_idstringpathrequireddirective_idstringpathrequiredRequest body · application/json
namestring | nullNew name
contentstring | nullNew content
priorityinteger | nullNew priority
is_activeboolean | nullNew active status
tagsstring[]New tags
DELETE
/v1/default/namespaces/{namespace_id}/directives/{directive_id}Delete directive
Delete a directive.
Parameters
namespace_idstringpathrequireddirective_idstringpathrequired