> For the complete documentation index, see [llms.txt](https://markefan.gitbook.io/documents/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://markefan.gitbook.io/documents/index.md).

# 主なAPIのサンプルコード

Markefanの持つ約350のAPIを活用することで、CRM、SFA、Chatbotやその他業務アプリケーションとも連携可能です。 ここでは、このAPIの中から主に利用する機能についてサンプルコードをご紹介します。 ご自身の会社のシステム環境に合わせて、Markefanとの連携を行う際の参考となれば幸いです。

APIを使用した開発の依頼やサポートをご希望の場合は、担当の代理店またはマーケファン株式会社の販売担当までお問い合わせください。

## ログイン制御のAPI

* [Markefanへログインする](/documents/index/userlogin.md) &#x20;

## データをインポートする API

* [Markefanへのリードのインポート](/documents/index/customerimport.md) &#x20;
* [Markefanへのリードの高度なインポート](/documents/index/customeradvancedimport.md) &#x20;
* [既存キャンペーンにリードを追加する](/documents/index/mailmagazineupdate.md) &#x20;
* [リードを削除する](/documents/index/customerdelete.md) &#x20;

## データを取得する API

* [メールのステータスを取得する](/documents/index/campaignstatusget.md) &#x20;
* [メールの未開封／未クリックを取得する](/documents/index/campaignstatusadvancedget.md) &#x20;
* [リード情報を取得する](/documents/index/customerget.md) &#x20;
* [セグメントに属するリードを取得する](/documents/index/customerbysegmentget.md) &#x20;
* [キャンペーン対象のリードを取得する](/documents/index/campaigncustomerget.md) &#x20;


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://markefan.gitbook.io/documents/index.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
