Hilyos

Agents

Set up a household, then use the API. The person authorizes the agent. They do not have to create the household first.

Markdown · .agent · .robot

# Agents An agent can set up a household before the person has an account. ## Set up a household 1. POST /api/v1/provision with {"agentName":"Financial Planning Agent","scopes":["goals:read","goals:write","money:read"]}. 2. The response contains id, authorizationUrl, and pollSecret. The poll secret is not in the authorization URL. The session lasts 30 minutes. 3. Ask the person for the household name, first name, last name, time zone, and currency. 4. PATCH /api/v1/provision/{id} with the poll secret and those answers. 5. Send the person to authorizationUrl. They create an account or sign in, check the details, and approve the scopes. Money and fitness stay off unless they turn them on. Health stays off unless they confirm it by name. 6. GET /api/v1/provision/{id} with header X-Poll-Secret. The first ready response includes apiKey once, householdId, and mcpUrl. 7. Call MCP at mcpUrl with Authorization: Bearer hly_... ## Identity The key is an agent acting for one member. Tasks, calendar, shopping, and goals start on. A key cannot do something that member cannot do. Default scopes: tasks:read, tasks:write, calendar:read, calendar:write, shopping:read, shopping:write, goals:read, goals:write. ## API Base path /api/v1. Authorization: Bearer hly_... OpenAPI: /api/v1/openapi.json Modules: tasks, calendar, shopping, goals, money, fitness, health, assistant. Money responses do not include account or routing numbers. Agents do not buy tokens. ## Storage POST /api/v1/storage {"megabytes": N} with Idempotency-Key. One megabyte costs 977 atomic USDC units. 5120 MB costs the same $5 as the household storage block. The purchase lasts until the current period ends and does not renew. Existing records stay readable. A write that would grow past the remaining cap returns storage_limit_exceeded with current_usage_mb, available_mb, additional_storage_required_mb, purchase_endpoint, and payment_required. additional_storage_required_mb is the whole number of megabytes this write needs in order to fit. ## MCP POST /api/mcp speaks JSON-RPC tools/list and tools/call. Tool names match the OpenAPI operation ids.