---
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-post">`POST`</span> `/auth`

ログインフォームを経由することなく、ショップフロントへの証認アクセスを取得するために使用する特殊なエンティティです。

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

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

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

## リクエスト：ボディ

| Name           | Type   | 説明            |
| -------------- | ------ | ------------- |
| `email`        | string | ユーザーのEメールアドレス |
| `redirect_url` | string | リダイレクト先のURL   |

## レスポンス

### 200

```json
{
  "key": "1cdeb052c9e8925e09248fbf7ddc04be",
  "link": "https://your-shop.jp/index.php?dispatch=auth.ekey_login&ekey=1cdeb052c9e8925e09248fbf7ddc04be"
}
```

### 400

```json
{}
```

Source: https://apidocs.cs-cart.jp/auth/auth-login/index.mdx
