---
title: "ユーザーの一覧"
---

> Documentation Index
> Fetch the complete documentation index at: https://apidocs.cs-cart.jp/llms.txt
> Use this file to discover all available pages before exploring further.

# ユーザーの一覧

<span class="api-method api-method-get">`GET`</span> `/users`

ユーザーの一覧を取得するには、`/api/users`エンドポイントにGETリクエストを送信します。

## リクエスト：ヘッダー

| Name          | Value              |
| ------------- | ------------------ |
| Content-Type  | `application/json` |
| Authorization | `Basic <認証情報>`     |

> **認証情報について**
>
> 認証情報は、ユーザーのEメールアドレスとAPIキーをコロンで連結したものをBase64エンコードしたものです。

## クエリ パラメータ

| Name             | Type    | 説明                                                         | デフォルト値 | 必須 |
| ---------------- | ------- | ---------------------------------------------------------- | ------ | -- |
| `page`           | integer | ページ番号                                                      | 1      |    |
| `items_per_page` | integer | 1ページあたりの表示数                                                | 10     |    |
| `user_type`      | string  | <p>ユーザータイプ<br />（<code>A</code>：管理者, <code>C</code>：お客様）</p> | `C`    | ○  |

## レスポンス

### 200

```json
{
  "users": [
    {
      "user_id": "3",
      "user_login": "customer",
      "is_root": "N",
      "timestamp": "1576988370",
      "user_type": "C",
      "status": "A",
      "firstname": "鈴木",
      "lastname": "一郎",
      "email": "customer@example.com",
      "company": "Simtech",
      "company_id": "1",
      "phone": "77 77 777 7777",
      "company_name": "CS-Cart.jp"
    }
  ],
  "params": {
    "page": 2,
    "items_per_page": 1,
    "extended_search": true,
    "sort_order": "asc",
    "sort_by": "name",
    "sort_order_rev": "desc",
    "total_items": "2"
  }
}
```

### 400

```json
{}
```

Source: https://apidocs.cs-cart.jp/users/api-users-list/index.mdx
