> ## Documentation Index
> Fetch the complete documentation index at: https://docs.conare.ai/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Conare's API is at https://api.conare.ai. Authenticate with `Authorization: Bearer $CONARE_API_KEY`.
> The full OpenAPI spec is at https://api.conare.ai/openapi.yaml; each endpoint has a page under /api-reference, and appending .md to any page URL returns its Markdown.
> Embed with model conare-embed-1; send input_type "query" for search queries. Rerank with conare-rerank-1.
> Prefer the TypeScript SDK (`npm install conare`) or plain HTTP in examples.
> Install the Conare skill with `npx skills add https://docs.conare.ai`; search these docs over MCP at https://docs.conare.ai/mcp; the whole site is at https://docs.conare.ai/llms-full.txt.

# クイックスタート

> API キーを取得し、curl または TypeScript SDK で最初のドキュメントをネームスペースに書き込み、検索して結果をモデルに渡します。

**1. キーを取得する**

[コンソール](https://conare.ai/dashboard/keys)で API キーを作成します。利用は招待制です。[アクセスをリクエスト](https://conare.ai/request-access)してください。

```bash theme={null}
export CONARE_API_KEY=sk-conare-...
npm install conare  # for the TypeScript examples
```

**2. ドキュメントを書き込む**

最初の書き込みで namespace `docs` が作成されます。

```bash curl theme={null}
curl https://api.conare.ai/namespaces/docs/documents \
  -H "Authorization: Bearer $CONARE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "documents": [
      { "id": "refunds", "text": "Refunds are available for 30 days.", "metadata": { "team": "support" } }
    ]
  }'
```

```ts TypeScript theme={null}
import { Conare } from "conare";

const conare = new Conare();
const docs = conare.namespace("docs");

await docs.add({ id: "refunds", text: "Refunds are available for 30 days.", metadata: { team: "support" } });
```

**3. 検索する**

```bash curl theme={null}
curl https://api.conare.ai/namespaces/docs/query \
  -H "Authorization: Bearer $CONARE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query": "how do refunds work?"}'
```

```ts TypeScript theme={null}
const results = await docs.query("how do refunds work?");
```

```json Response theme={null}
{
  "results": [
    {
      "id": "refunds",
      "text": "Refunds are available for 30 days.",
      "score": 0.3471,
      "reranked": true,
      "metadata": { "team": "support" }
    }
  ],
  "took_ms": 59
}
```

各結果の `text` をコンテキストとしてモデルに渡します。

## 次のステップ

| ガイド | 用途 |
| - | - |
| [MCP](https://docs.conare.ai/ja/mcp-server.md) | Claude、Cursor、ChatGPT から検索します |
| [フィルター](https://docs.conare.ai/ja/filters.md) | メタデータで検索を絞り込みます |
| [ファイル](https://docs.conare.ai/ja/files.md) | PDF、スライド、スプレッドシートをアップロードします |
| [ソース](https://docs.conare.ai/ja/sources.md) | アプリを同期し続けます |


## Related topics

- [はじめに](https://docs.conare.ai/ja/index.md)
- [ファイル形式と Markdown](https://docs.conare.ai/ja/file-types.md)
- [フィルター](https://docs.conare.ai/ja/filters.md)
- [turbopuffer API](https://docs.conare.ai/ja/turbopuffer.md)
- [コンソール](https://docs.conare.ai/ja/console.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.