# Business info: what a business publishes about itself

Every business on LegoTechApps keeps its information in one place, **Dashboard → Business info**: about, contact, services and prices, opening hours, a menu with prices, pictures, questions and answers, policies, and any sections of its own (delivery areas, warranty terms). The business's chatbots answer from it. When the business switches **Publish** on, apps and AI agents can read it too.

- Read-only, no credentials, JSON. A business's information is published by default once it saves it; the business can unpublish at any time.
- **Per business.** Each business has its own unguessable key (`bi_` + 20 hex characters). There is no list of businesses: you read a business only if it gave you its link.
- **The business decides.** Each section has switches: on/off, *in the API*, *the bot uses it*; each row and question has its own on/off. Unpublishing or making a new link stops the old link at once.
- **Whose information it is** is in every answer: `source.kind` is `business` (a business describing itself, hosted by LegoTechApps) or `official` (LegoTechApps describing itself).
- Every item carries `updated_at`, so you can tell how fresh it is.

## REST

```
GET https://legotechapps.com/api/v1/businesses/{key}?lang=en&section=faq
GET https://legotechapps.com/api/v1/facts?lang=en          # LegoTechApps itself
```

`lang`: en, he, hu, es, pt, fr, de, ar, zh. Untranslated text comes in the business's own language.
`section`: about, contact, services, hours, rating, menu, images, faq, policies, custom, library. Omit for everything. `library` is the business's shared chatbot library and appears only if the business published it.

Errors are RFC 9457 problem details: `400 INVALID_KEY | UNSUPPORTED_LANGUAGE | UNKNOWN_SECTION`, `404 BUSINESS_NOT_PUBLISHED`, `429`, `503 FACTS_UNAVAILABLE`. Responses are cached for 60 seconds.

```json
{
  "business": { "name": "Pizza Roma", "website": "https://roma.example", "logo": null },
  "source": { "kind": "business", "written_by": "Pizza Roma", "hosted_by": "LegoTechApps",
              "note": "Written and published by Pizza Roma about itself. It describes Pizza Roma, not LegoTechApps." },
  "lang": "en", "revision": 12, "updated_at": "2026-11-19T10:00:00+00:00",
  "sections": {
    "contact": { "phone": "+972 3-555-0100", "whatsapp_url": "https://wa.me/972545550100", "address": "Herzl 1, Tel Aviv" },
    "services": { "currency": "ILS", "items": [{ "name": "Margherita", "price": 52, "description": "Wood oven" }] },
    "hours": { "text": "Sun–Thu 9:00–18:00" },
    "faq": { "items": [{ "q": "Is it kosher?", "a": "Yes", "updated_at": "2026-11-18T09:12:00+00:00" }] },
    "custom": [{ "id": "delivery", "title": "Delivery areas", "rows": [{ "label": "Tel Aviv", "value": "30 minutes" }] }]
  }
}
```

The full schema is `BusinessInfo` in [openapi.json](https://legotechapps.com/openapi.json).

## MCP

Public, no credentials: `https://legotechapps.com/mcp`

- `legotech_get_business_info { key, lang?, section? }`: a business that shared its key.
- `legotech_get_company_facts { lang?, section? }`: LegoTechApps itself.

The business's **own** agent can also change its information through its authenticated MCP key (Dashboard → AI connections): `business_info_get`, `business_info_upsert_item`, `business_info_add_custom_section`, `business_info_set_switch`. Publishing is not a tool; it needs the business's consent in the dashboard.

## CLI

```
npm install --global https://legotechapps.com/downloads/legotechapps-cli-0.2.0.tgz
legotech info bi_0123456789abcdef0123 --lang en --section faq
legotech info legotech --json
```

## Showing that it is yours

A business can link its information from its own website, so agents that visit the site know the API speaks for it:

```html
<link rel="alternate" type="application/json" title="Business info" href="https://legotechapps.com/api/v1/businesses/{key}">
```
