Register custom natural-language temporal phrases.

Temporal Phrases

Register custom natural-language phrases that the recall + answer pipelines should parse into temporal ranges. CortexDB ships with a default set (last week, this quarter, etc.); add tenant-specific ones like "fiscal Q3" or "holiday freeze".

Stability: beta.


POST /v1/temporal/phrases

{
  "name":      "fiscal Q3",
  "anchor":    "2026-01-31T00:00:00Z",
  "expression":"+P6M..+P9M"
}

| Field | Type | Notes | |---|---|---| | name | string | Phrase to match (case-insensitive, whole-word). | | anchor | RFC 3339 | Reference instant. | | expression | string | Two ISO 8601 durations separated by .., relative to anchor. |

GET /v1/temporal/phrases

List all registered phrases.

DELETE /v1/temporal/phrases/

Returns 204.