Public examples only

Safe request examples for the production MemLayer API.

This page intentionally shows curated request examples instead of a live schema browser. Replace YOUR_API_KEY with a real key that has the scopes you need.

Health

GET /health
curl -sS 'https://api.memlayer.ru/health'

Search

GET /memory/search
curl -sS 'https://api.memlayer.ru/memory/search?query=architecture%20decision&mode=hybrid&limit=8' \
  -H 'Authorization: Bearer YOUR_API_KEY'

Relevant context

POST /memory/relevant
curl -sS 'https://api.memlayer.ru/memory/relevant' \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -d '{
    "query": "Current task context",
    "agent_id": "public-example",
    "limit": 6,
    "search_mode": "hybrid"
  }'

Runtime self-check

GET /admin/runtime/self-check
curl -sS 'https://api.memlayer.ru/admin/runtime/self-check?search_query=architecture&limit=5' \
  -H 'Authorization: Bearer YOUR_API_KEY'