MaaS AHOP Docs
Home Demo llms.txt
Language EN KO JA

Working with a coding agent? Copy the Markdown version of this page or hand over the full docs bundle.

Open llms-full.txt
Integration Guides

Editorial / Content

This guide uses `service_source: maas-enterprise`.

This guide uses service_source: maas-enterprise.

Default integration pattern

  • create one anchor per domain lane
  • ingest content or observations into the correct lane
  • recall before drafting
  • hydrate prompt context when the current input is sparse
  • reinforce only the recalled memory that changed the output
  • MAAS_ANCHOR_EDITORIAL
  • MAAS_ANCHOR_TRENDS
  • MAAS_ANCHOR_MAKERS

Create the editorial anchor

curl -X POST https://maas.nunchiai.com/v1/anchors \
  -H "Authorization: Bearer mk_maas_example" \
  -H "X-Workspace-Id: indiepulse-editorial" \
  -H 'Content-Type: application/json' \
  -d '{
    "name": "Editorial Lane",
    "type": "chat-log",
    "metadata": {
      "lane": "MAAS_ANCHOR_EDITORIAL",
      "project": "indiepulse"
    }
  }'

Ingest editorial memory

curl -X POST https://maas.nunchiai.com/v1/memory/ingest \
  -H "Authorization: Bearer mk_maas_example" \
  -H "X-Workspace-Id: indiepulse-editorial" \
  -H 'Content-Type: application/json' \
  -d '{
    "user_external_id": "indiepulse-editorial",
    "session_id": "editorial-brief-2026-04-03",
    "messages": [
      { "role": "system", "content": "Editorial memory ingest." },
      { "role": "user", "content": "Founders are reacting strongly to infra pricing shifts." }
    ]
  }'

Recall before drafting

curl -X POST https://maas.nunchiai.com/v1/memory/recall \
  -H "Authorization: Bearer mk_maas_example" \
  -H "X-Workspace-Id: indiepulse-editorial" \
  -H 'Content-Type: application/json' \
  -d '{
    "user_external_id": "indiepulse-editorial",
    "session_id": "draft-2026-04-03",
    "query": "What angles should the editorial draft emphasize?"
  }'

Hydrate a bounded context block

curl -X POST https://maas.nunchiai.com/v1/memory/hydrate \
  -H "Authorization: Bearer mk_maas_example" \
  -H "X-Workspace-Id: indiepulse-editorial" \
  -H 'Content-Type: application/json' \
  -d '{
    "anchor_ids": ["EDITORIAL_ANCHOR_ID", "TRENDS_ANCHOR_ID"],
    "query": "Prepare a 500-token briefing on founder pricing sentiment.",
    "token_budget": 500
  }'

Errors

  • 400 invalid key or missing workspace header
  • 402 billing blocked
  • 403 access policy denied
  • 404 missing anchor
  • 429 rate limited