Overview
Returns a paginated list of patterns that CauseFlow AI has learned from resolved incidents. Patterns represent recurring failure signatures — as more incidents are resolved and feedback is submitted, patterns gain confidence and transition from emerging to stable.
Required role: admin or member
Query parameters
Filter by pattern maturity. One of: emerging, stable.
emerging — pattern has been seen fewer than 5 times or has low confidence
stable — pattern has been confirmed across multiple incidents with high confidence
Minimum confidence score (0–1 inclusive). Only patterns with a confidence value greater than or equal to this threshold are returned. Example: 0.8 returns only high-confidence patterns.
Number of patterns to return per page. Maximum 100.
Cursor token from a previous response to fetch the next page. Omit for the first page.
Response
Returns 200 OK with a paginated list of patterns.
{
"patterns": [
{
"patternId": "pat_01HX9VTPQR3KF8MZWBYD5N6JCE",
"title": "Connection pool exhaustion under payment processor load spike",
"confidence": 0.94,
"occurrences": 12,
"status": "stable",
"createdAt": "2024-02-15T08:00:00Z",
"lastSeenAt": "2024-04-01T14:31:00Z"
},
{
"patternId": "pat_01HX9VTPQR3KF8MZWBYD5N6JCF",
"title": "Deployment-triggered cache invalidation cascade",
"confidence": 0.61,
"occurrences": 3,
"status": "emerging",
"createdAt": "2024-03-20T11:45:00Z",
"lastSeenAt": "2024-03-28T09:12:00Z"
}
],
"count": 34,
"cursor": "eyJpZCI6InBhdF8..."
}
| Field | Type | Description |
|---|
patternId | string | Unique identifier for the pattern |
title | string | Human-readable summary of the failure pattern |
confidence | number | Confidence score between 0 and 1. Higher values indicate more reliable matches |
occurrences | integer | Number of incidents where this pattern was confirmed |
status | string | Pattern maturity: emerging or stable |
createdAt | string | ISO 8601 timestamp when the pattern was first identified |
lastSeenAt | string | ISO 8601 timestamp of the most recent incident matching this pattern |
count | integer | Total number of patterns matching the query across all pages |
cursor | string | Cursor token for the next page. null if no more pages. |
Examples
# List stable patterns with confidence >= 0.8
curl "https://api.causeflow.ai/v1/knowledge?status=stable&minConfidence=0.8&limit=20" \
-H "Authorization: Bearer <token>"