{
    "ok": true,
    "what": "Kiva Logic is ecommerce software for businesses whose customers buy again and again (subscriptions, weekly boxes, one-off orders, delivery and pickup). This endpoint lets an AI agent sign its owner up and build their store, ask us a question, or send feedback. Agents are welcome here. For signup, the owner confirms with a 6-digit code emailed to them, and the owner decides when the store launches.",
    "how": "POST JSON to https://kivalogic.com/agent-signup with an \"action\". Every answer has ok, status, message and next (what to do next, in plain words).",
    "steps": [
        {
            "action": "start",
            "send": "{\"action\":\"start\",\"email\":\"owner@example.com\",\"store\":{...}}",
            "get": "ticket. A 6-digit code is emailed to the owner."
        },
        {
            "action": "verify",
            "send": "{\"action\":\"verify\",\"ticket\":\"...\",\"code\":\"123456\"}",
            "get": "verified. Ask the owner for the code; never guess it."
        },
        {
            "action": "build",
            "send": "{\"action\":\"build\",\"ticket\":\"...\",\"subdomain\":\"greenacres\"}",
            "get": "store_url, door_url, mcp_url and api_key (a permanent key for running the store through its AI door). Takes a minute or two. subdomain is optional."
        },
        {
            "action": "status",
            "send": "{\"action\":\"status\",\"ticket\":\"...\"}",
            "get": "Where it is at. If build timed out, this hands back the same answer, key included, once."
        }
    ],
    "questions": {
        "about": "No store needed. Ask anything, or tell us a tool is missing or broken. Each message gets a private answer_url; it says \"waiting\" until our team answers. Leave your human's email and we email the answer too.",
        "commands": [
            {
                "action": "ask",
                "send": "{\"action\":\"ask\",\"message\":\"Do you support X?\",\"email\":\"optional, your human's email\",\"agent\":\"optional, e.g. Claude\",\"context\":\"optional, what your human is trying to do\"}",
                "get": "ticket, answer_url, answer_json_url."
            },
            {
                "action": "feedback",
                "send": "{\"action\":\"feedback\",\"message\":\"...\",\"category\":\"feature_request | bug | friction | praise | other\",\"email\":\"optional\"}",
                "get": "ticket, answer_url, answer_json_url."
            }
        ],
        "check": "GET answer_json_url later for {status, answer}. Answers we make public are listed at https://kivalogic.com/agent-answers",
        "limits": "message up to 2000 characters, context up to 2000. 10 messages per hour per address."
    },
    "store_fields": {
        "name": "Business name, up to 40 characters. Required.",
        "category": "One of: produce, meat, bakery, meal_kits, dairy, seafood, coffee, flowers, grocery, prepared, other.",
        "area": "Where they deliver, in words (\"Portland, OR\").",
        "delivery_days": "Days they deliver, e.g. [\"Tue\",\"Thu\"].",
        "fulfillment": "delivery, pickup or both.",
        "pickup_spots": "Pickup spot names, up to 6.",
        "zips": "Zip codes they deliver to.",
        "zip_radius": "{\"center\":\"97201\",\"miles\":10} instead of listing zips.",
        "frequency": "weekly, biweekly or monthly.",
        "customize": "curated, swaps or build_my_own (can customers change what is in the box).",
        "boxes": "Up to 4: [{\"name\":\"Small Box\",\"price\":\"29\"}].",
        "catalog": "Up to 8 add-on items: [{\"name\":\"Eggs\",\"price\":\"6\"}].",
        "products": "What usually goes in the boxes, up to 8 words or short phrases.",
        "about": "Their story in their own words, for the About page. Only what they said.",
        "headline": "Front page headline, up to 70 characters.",
        "subhead": "Front page line under it, up to 140 characters.",
        "color": "Brand color, #rrggbb.",
        "website": "Their current website, if any.",
        "logo": "Logo image URL (https)."
    },
    "rules": [
        "Only fill store fields with what the owner told you or what their own website says. Leave the rest out.",
        "The code goes to the owner; ask them for it. Five wrong codes locks the ticket.",
        "After the build, every store has its own AI door (one tool per admin action). The owner launches the store; launched stores email their customers."
    ],
    "for_people": "https://kivalogic.com/for-agents"
}