v1

OpenAPI 3.1.02026-07-13632897.9 KB
Priority Guardian Patterns

Get Patterns

Get behavioral patterns from user's tracking history.

Returns patterns computed at read time from existing snapshot and priority data. No data is stored - patterns are computed fresh each call.

Called by MCP get_patterns tool during weekly reflection or when user asks about trends/patterns.

Args: request: FastAPI request (for correlation_id) user_id: Validated user ID from X-User-ID header session: SQLAlchemy async session

Returns: JSON response with pattern data or error

get/api/priority-guardian/patterns

Headers

X-Internal-Secretstring nullable
X-User-IDstring nullable

Response

Successful Response

{"stackTrail":"paths:/api/priority-guardian/patterns:get:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}