{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/gryz-ai/json-schema/gryz-ai-post-api-memory-request-schema.json",
  "title": "PostApiMemoryRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/gryz-ai-openapi-generated.yml#/components/schemas/PostApiMemoryRequest",
  "type": "object",
  "properties": {
    "scope": {
      "type": "string",
      "description": "\"personal\" or \"project\""
    },
    "project_key": {
      "type": "string",
      "description": "required when scope is \"project\", must be omitted for \"personal\""
    },
    "body": {
      "type": "string",
      "description": "the atomic fact, 1–4000 characters"
    },
    "valid_from": {
      "type": "string",
      "description": "ISO timestamp the fact became true (optional, defaults to now)"
    },
    "salience": {
      "type": "integer",
      "description": "importance weight 0 – 10 (optional, defaults to 1)"
    }
  },
  "required": [
    "scope",
    "body"
  ]
}