SmartMemory
POST
/memory/patterns/seed

Seed patterns from MEMORY.md TEXT (SM-PATTERN-CRUD-1). Returns created ids and skipped titles with reasons.

Links that are absolute or climb with .. are refused by the parser itself. refused carries the links the client declined to read (a symlink out of its dir). Titles already active in this workspace are skipped.

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

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

MEMORY.md text and the linked files' text. The server never takes or reads a path.

Response Body

application/json

application/json

curl -X POST "https://example.com/memory/patterns/seed" \  -H "Content-Type: application/json" \  -d '{    "index_text": "string"  }'
null
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string",
      "input": null,
      "ctx": {}
    }
  ]
}