# 概要

LMile は **マルチストアの商品・在庫・売上データを集約し、業務分析を提供する** プラットフォームです。外部アプリが API でデータを push し、LMile AI（チャット）が自然言語で分析に答えます。

## データの流れ

```
外部アプリ ──push API──▶ LMile (inventory-os) ──▶ LMile AI (チャット)
  │                          │
  ├─ 商品マスター            ├─ 売上集計
  ├─ 在庫データ              ├─ 在庫照会
  └─ 受注データ              └─ 拠点別分析
```

## API 一覧

| Method | Path                                 | 用途                                |
| ------ | ------------------------------------ | --------------------------------- |
| `POST` | `/api/ingest/products`               | 商品マスター登録・更新                       |
| `POST` | `/api/ingest/inventory-snapshot`     | 在庫スナップショット（絶対値）                   |
| `POST` | `/api/ingest/inventory-available`    | 販売可能在庫のリアルタイム更新（absolute / delta） |
| `POST` | `/api/order-line-master/bulk-upsert` | 受注登録                              |
| `POST` | `/api/routing/orders`                | 受注ルーティング（出荷元判定・出荷指示）              |

すべて `https://api.lmile.io` でホストされ、`x-ingest-secret` ヘッダー認証・`shop` はボディ指定です。

## 次のステップ

1. [認証方法](/lmile-docs/getting-started/authentication.md) を確認
2. [最初のリクエスト](/lmile-docs/getting-started/your-first-request.md) で商品と在庫を登録してみる
3. [Data Model](/lmile-docs/reference/data-model.md) でスキーマを理解する


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://lmile.gitbook.io/lmile-docs/getting-started/overview.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
