> ## Documentation Index
> Fetch the complete documentation index at: https://docs.utage-system.com/llms.txt
> Use this file to discover all available pages before exploring further.

# HTMLメール要素プロパティ定義

> 指定したHTMLメール要素タイプのプロパティ定義を取得します（認証不要）。

レスポンスの `data` には以下が含まれます。
- `global_common_properties`: 全要素共通のプロパティ
- `content_common_properties`: コンテンツ要素共通のプロパティ
- `element_types`: 指定した各要素タイプのプロパティ定義

`types` が未指定の場合、または未対応の要素タイプが含まれる場合は `422` を返します。


`GET`

```
https://api.utage-system.com/v1/element-types/mail/properties
```


## OpenAPI

````yaml GET /element-types/mail/properties
openapi: 3.0.3
info:
  title: UTAGE API
  description: |
    UTAGEのパブリックAPIです。ファネル、配信アカウント、シナリオ、メディアなどのリソースをプログラムから操作できます。

    ## 認証
    すべてのリクエストにAPIキーによるBearer認証が必要です（要素タイプエンドポイントを除く）。

    ```
    Authorization: Bearer {api_key}
    ```

    APIキーはUTAGE管理画面から発行できます。

    ## レート制限
    リクエスト数には以下の制限があります。

    | 分間上限 | 日間上限 |
    |----------|----------|
    | 60リクエスト/分 | 10,000リクエスト/日 |

    レスポンスヘッダーで現在の使用状況を確認できます。

    | ヘッダー | 説明 |
    |----------|------|
    | X-RateLimit-Limit | 分間の上限値 |
    | X-RateLimit-Remaining | 分間の残りリクエスト数 |
    | X-RateLimit-Reset | 制限がリセットされるUNIXタイムスタンプ |

    上限を超えた場合は `429 Too Many Requests` が返されます。

    ## エラーレスポンス
    エラー時は以下の形式で返されます。

    ```json
    {
      "error": {
        "code": "error_code",
        "message": "エラーメッセージ"
      }
    }
    ```
  version: '1.0'
  contact:
    name: UTAGE サポート
servers:
  - url: https://api.utage-system.com/v1
    description: UTAGE API
security:
  - BearerAuth: []
tags:
  - name: ファネル
    description: ファネルの作成・更新・一覧取得
  - name: ステップ
    description: ファネル内のステップの作成・更新・並び替え
  - name: ページ
    description: ステップ内のページの作成・更新・取得・削除
  - name: 配信アカウント
    description: 配信アカウントの作成・一覧取得
  - name: シナリオ
    description: シナリオの作成・一覧取得
  - name: メディア
    description: 動画・音声・通常メディアの一覧取得とアップロード
  - name: 要素タイプ
    description: ファネルページ・HTMLメールの要素タイプ定義、LINEメッセージタイプ・配信条件タイプの取得（認証不要）
  - name: ファネル統計
    description: ファネルの集計データ・登録者・登録経路の取得（プレビュー）
  - name: 配信メッセージ
    description: 配信メッセージの作成・更新・テスト送信・配信統計、置き換え文字の取得（プレビュー）
  - name: 読者
    description: 読者の作成・更新・取得、ラベル・配信履歴・開封/クリック履歴の取得（プレビュー）
  - name: LINE
    description: LINE友だち・カスタム送信者・1対1チャット・テンプレートの操作（プレビュー）
  - name: ラベル・共通読者・登録経路
    description: ラベル・共通読者・アクション・登録経路の操作（プレビュー）
paths:
  /element-types/mail/properties:
    get:
      tags:
        - 要素タイプ
      summary: HTMLメール要素プロパティ定義
      description: |
        指定したHTMLメール要素タイプのプロパティ定義を取得します（認証不要）。

        レスポンスの `data` には以下が含まれます。
        - `global_common_properties`: 全要素共通のプロパティ
        - `content_common_properties`: コンテンツ要素共通のプロパティ
        - `element_types`: 指定した各要素タイプのプロパティ定義

        `types` が未指定の場合、または未対応の要素タイプが含まれる場合は `422` を返します。
      operationId: getMailElementTypeProperties
      parameters:
        - name: types
          in: query
          required: true
          description: '要素タイプ名のカンマ区切り（例: text,button,image）'
          schema:
            type: string
          example: text,button,image
      responses:
        '200':
          description: 要素プロパティ定義
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ElementPropertiesResponse'
        '422':
          $ref: '#/components/responses/ValidationError'
      security: []
components:
  schemas:
    ElementPropertiesResponse:
      type: object
      description: 要素プロパティ定義のレスポンス
      properties:
        data:
          type: object
          properties:
            global_common_properties:
              type: array
              description: 全要素共通のプロパティ定義
              items:
                $ref: '#/components/schemas/ElementProperty'
            content_common_properties:
              type: array
              description: コンテンツ要素共通のプロパティ定義（padding/border/background）
              items:
                $ref: '#/components/schemas/ElementProperty'
            element_types:
              type: array
              description: 指定した各要素タイプのプロパティ定義
              items:
                type: object
                properties:
                  type:
                    type: string
                    description: 要素タイプ名
                  name:
                    type: string
                    description: 表示名
                  category:
                    type: string
                    description: カテゴリ
                  description:
                    type: string
                    description: 要素の説明
                  children_types:
                    type: array
                    description: 配下に持てる子要素タイプ名の配列（leaf要素は空配列）
                    items:
                      type: string
                  properties:
                    type: array
                    description: 要素固有のプロパティ定義
                    items:
                      $ref: '#/components/schemas/ElementProperty'
    ElementProperty:
      type: object
      description: 要素プロパティ定義
      properties:
        name:
          type: string
          description: プロパティ名
        type:
          type: string
          description: プロパティの型
        required:
          type: boolean
          description: 必須かどうか
        default:
          description: 既定値
        description:
          type: string
          description: プロパティの説明
        enum:
          type: array
          description: 選択肢（列挙型の場合）
          items: {}
    ErrorResponse:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              description: エラーコード
            message:
              type: string
              description: エラーメッセージ
            details:
              type: object
              nullable: true
              description: エラーの補足情報（retry_afterやフィールド別エラー等）。エラー種別により含まれる場合があります。
  responses:
    ValidationError:
      description: バリデーションエラー。リクエストパラメータが不正。
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            error:
              code: validation_error
              message: バリデーションエラーが発生しました
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: APIキーをBearerトークンとして指定

````