SmartMemory
POST
/memory/read-around

Return a contract-shaped centered conversation window for a recall hit.

Errors: 400 budget_too_small: char_budget too small to fit the centered chunk. 404 not_found: item_id not accessible under the caller's scope.

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.

Request body for POST /memory/read-around. Mirrors contract request section.

Response Body

application/json

application/json

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