---
agent:
  instructions: "Use this search API to find relevant content across this site with keywords or natural-language queries, instead of crawling individual pages. Results are returned in Markdown."
  endpoint: "https://docs.sendcorex.com/.well-known/search?q={query}"
  method: "GET"
  documentation: "https://docs.sendcorex.com/llms.txt"
---

Source: https://docs.sendcorex.com/ja/api-reference/contacts/lists/list-lists

連絡先：リスト

# リストの一覧

アカウントのすべてのリスト（古い順）。メンバー数も任意で取得可能。

POST `https://g.sendcorex.com/v1/contacts` command: list_lists

API keyに`contact:read`スコープが必要です。

## 引数

- `with_stats` boolean 任意
各リストに`stats`（メンバー、送信可能、開封、クリック）を追加します。
- `include_deleting` boolean 任意
削除済みでまだ整理中のリストも返します。

## クイックスタート

```
import axios from 'axios';

const response = await axios.post(
  'https://g.sendcorex.com/v1/contacts',
  {
    commands: [
      {
        command: "list_lists",
        args: {
          with_stats: true
        }
      }
    ]
  },
  { headers: { Authorization: process.env.SENDCOREX_API_KEY } },
);

const [result] = response.data.results;
if (result.type !== 'SUCCESS') throw new Error(`${result.code}: ${result.message}`);
console.log(result.data);
```

## レスポンス

```
{
  "type": "SUCCESS",
  "results": [
    {
      "command": "list_lists",
      "id": "0",
      "type": "SUCCESS",
      "took_ms": 14,
      "data": {
        "lists": [
          {
            "list_id": "customers",
            "name": "Customers",
            "description": "Everyone who bought at least once",
            "source": "checkout",
            "status": "ready",
            "custom": {
              "origin": "checkout",
              "year": 2026
            },
            "created_at": "2026-10-01T10:00:00.000Z",
            "updated_at": "2026-10-12T15:22:41.000Z",
            "stats": {
              "total": 1834,
              "ok": 1790,
              "opened": 912,
              "clicked": 233
            }
          }
        ]
      }
    }
  ]
}
```

### レスポンスの項目

- `lists[].list_id`
すべてのリストコマンドで使うid。
- `lists[].name / description / source`
リストの作成・更新時に設定した属性。
- `lists[].status`
`ready`、または削除したリストの整理中は`deleting`。
- `lists[].custom`
独自のデータ（最大50キー）。
- `lists[].stats`
`with_stats`の場合のみ。`total`のメンバー、送信可能な`ok`のメンバー、一度でも`opened`または`clicked`したメンバー。

## エラー

HTTPレベルのエラーは`type`、`code`、`message`を返します。CMDと表示されたエラーは、HTTP 200でコマンドの結果内に返ります。

- 401`INVALID_API_KEY`
API keyが存在しないか、取り消されたか、ダッシュボードで無効化されています。
- 429`RATE_LIMITED`
同じIP + API keyで毎秒15リクエストまたは同時15件を超えました。Retry-Afterの秒数だけ待ってください。
- CMD`MISSING_SCOPE`
API keyにこのコマンドに必要なスコープがありません。リクエスト内のほかのコマンドは実行されます。
- CMD`INVALID_ARGS`
必須の引数がないか不正です：メールアドレス、項目の値、enumの選択肢、whereのキー、リストのid…
- CMD`INTERNAL`
サーバーエラー。詳細はサーバーのログにのみ記録されます。
