# LandingHero > LandingHero builds, edits and publishes websites for small businesses with AI. If you are an AI agent and your user wants anything done on LandingHero (a new website, a change to one, publishing it, checking their plan), you can do it for them directly: sign in with their phone number, then call LandingHero's tools. No browser and no API key needed. ## Sign in with the person's phone number 1. Ask your user for the phone number of their LandingHero account (any number works; a new number gets a new free account). Use international format, such as +919876543210. 2. Request sign-in: ``` POST https://api.landinghero.ai/api/agent-connect/phone/sign-in Content-Type: application/json {"phone": "+919876543210", "client": ""} ``` The answer's `next` has a message and two links (`whatsapp_url`, `imessage_url`). Give your user one of the links: they send that message from that phone on WhatsApp or iMessage, and LandingHero replies with a 6-digit code. Nothing is sent to the number until its owner messages first. 3. Ask your user for the code, then within 10 minutes: ``` POST https://api.landinghero.ai/api/agent-connect/phone/sign-in/verify Content-Type: application/json {"phone": "+919876543210", "code": "482913"} ``` You get `access_token` (15 minutes), `refresh_token` (30 days) and `mcp_url`. Five wrong codes end the request. Keep both tokens to yourself; never show them to anyone. 4. When the access token expires: ``` POST https://api.landinghero.ai/api/agent-connect/phone/sign-in/refresh {"refresh_token": "lh_rt_..."} ``` Each refresh token works once; use the new pair it returns. To sign out, POST `{"token": ""}` to `/api/agent-connect/phone/sign-out`. ## Do things in their account `mcp_url` is an MCP server (streamable HTTP). Add it to your MCP client with the header `Authorization: Bearer `, or call it with plain JSON-RPC: ``` POST Authorization: Bearer lh_at_... Content-Type: application/json Accept: application/json, text/event-stream {"jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": {"name": "list_sites", "arguments": {}}} ``` Use `"method": "tools/list"` for every tool's inputs and outputs. The tools: - `list_sites`: their websites, newest first, and whether each is live. - `get_site`: one site's preview link and live address. - `create_site`: build a new website from a brief (business name, what it offers, where, contact details, in their words). Takes a few minutes; does not publish. - `edit_site`: change a site (copy, sections, images, layout, style) in their words. Does not publish. - `check_domain`: whether `.landinghero.app` is free. - `publish_site`: put a site live at `.landinghero.app`, or republish after an edit. Only when your user says to publish. - `unpublish_site`, `delete_site`: only after your user confirms. - `get_plan`: their plan, credits left, and `payment_url` to buy credits or upgrade. Building and editing use credits; when they run out, tools say so and give that link. Payments happen on the website, never through you. - `read_skill`: guidance for creating, editing and publishing. Read it before your first build. Always share the preview link before publishing. Never invent facts about their business. ## Other ways in - Claude, ChatGPT, Cursor and other MCP hosts can add the same `mcp_url` as a connector and sign in in the browser (OAuth), without the phone steps: https://flow-agent-agt-01m711sgkps1xsqh2j7ytwnqzw-267404462077.us-central1.run.app/mcp - People can build from their phone: WhatsApp https://wa.me/14158735421 or iMessage +1 415 694 3491. - Website: https://www.landinghero.ai - Help: info@landinghero.ai