SmartMemory
GET
/memory/procedures/candidates

List procedure promotion candidates from working memory patterns.

Analyzes working memory items to find repeated patterns that could be promoted to stored procedures for reuse.

Returns candidates sorted by recommendation score (highest first).

Authorization

AuthorizationBearer <token>

Send Authorization: Bearer <token>. The token is either a Clerk session JWT or a SmartMemory API key (prefix sm_live_, sm_test_, or legacy sk_).

In: header

Query Parameters

min_score?Min Score

Minimum recommendation score

min_cluster_size?Min Cluster Size

Minimum items in cluster

days_back?Days Back

Look back period in days

limit?Limit

Maximum candidates to return

Response Body

application/json

application/json

curl -X GET "https://example.com/memory/procedures/candidates"
null
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string",
      "input": null,
      "ctx": {}
    }
  ]
}