---
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> `/blocks`

ショップで作成されたすべてのブロックを一覧を取得するには、`/api/blocks`に対してGETを送信します。

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

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

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

## レスポンス

### 200

```json
[
  {
    "block_id": "33",
    "type": "lite_checkout_customer_sign_in",
    "properties": {
      "template": "blocks/lite_checkout/customer_sign_in.tpl"
    },
    "company_id": "1",
    "lang_code": "ja",
    "name": " "
  },
  {
    "block_id": "46",
    "type": "template",
    "properties": {
      "template": "blocks/static_templates/404.tpl"
    },
    "company_id": "1",
    "lang_code": "ja",
    "name": "404"
  },
  {
    "block_id": "25",
    "type": "testimonials",
    "properties": {
      "template": "addons/discussion/blocks/testimonials.tpl",
      "limit": "2",
      "random": "N"
    },
    "company_id": "1",
    "lang_code": "ja",
    "name": "お客様の声"
  }
]
```

### 400

```json
{}
```

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