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
Reference

SDK

MaaS does not require an official SDK for integration.

MaaS does not require an official SDK for integration.

Use raw HTTPS requests first. Build a thin client wrapper only after your request shapes are stable.

Suggested wrapper surface

  • createAnchor(payload)
  • storeAtom(payload)
  • recall(payload)
  • feedback(payload)
  • ingestMemory(payload)
  • hydrateMemory(payload)

Minimal JavaScript wrapper

async function maasRequest(path, body, { apiKey, workspaceId }) {
  const response = await fetch(`https://maas.nunchiai.com/v1${path}`, {
    method: "POST",
    headers: {
      "Authorization": `Bearer ${apiKey}`,
      "X-Workspace-Id": workspaceId,
      "Content-Type": "application/json"
    },
    body: JSON.stringify(body)
  });

  const json = await response.json();
  if (!response.ok) throw new Error(`${response.status}: ${json.message || json.error}`);
  return json;
}

Errors

  • 400 validate headers and payload
  • 402 billing blocked
  • 403 access policy denied
  • 404 anchor missing
  • 429 apply retry/backoff