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

# 実験的なインタラクティブメッセージを送信する

> 即時のみ REST Send for native-flow buttons, selection lists,
location requests, and caroussels スケジュールされた送信またはMCPではサポートされていません。
非公式プロトコルを使用します。APIの成功は受信者
のレンダリングや配信を保証するものではありません。 個々のユーザーまたはグループの受信者のみを受け入れます。
ボタンまたはカードを入力します。 全体的な HTTP ボディの制限も適用されます。




## OpenAPI

````yaml /ja/openapi.yml post /send/interactive
openapi: 3.0.0
info:
  title: WhatsApp API マルチデバイス
  version: 9.7.0
  description: |
    この API は API 経由で whatsapp を送信するために使用されます。

    Web ダッシュボードは別のプロジェクトです (gowa-ui); サーバーは
    最新のリリースアセットをダウンロードし、`/`で動作します（または、
    APP_UI_ENABLED=falseの場合はJSONバナーを返します）。

    デバイススコープ:
    - すべてのデバイススコープの REST コールで `X-Device-Id` を送信します。
    - WebSocket: `/wsに接続しますか？device_id=<id> ` 。
    - WebSocket 認証（Basic Auth が有効な場合）: ブラウザーは WebSocket 接続で
      Authorization ヘッダーを設定できないため、クエリ文字列にも
      `&authorization=<base64(user:pass)>` を渡してください。 認証情報が URL に表示されるため、本番環境では
      TLS を使用してください。
servers:
  - url: http://localhost:3000
security:
  - basicAuth: []
tags:
  - name: app
    description: Whatsappサーバーへの初期接続
  - name: device
    description: マルチデバイスサポートのためのデバイス管理
  - name: user
    description: 情報の取得
  - name: send
    description: メッセージ (テキスト/イメージ/ファイル/ビデオ) を送信します。
  - name: message
    description: メッセージ操作 (revoke/react/update)
  - name: call
    description: 通話管理 (着信拒否)
  - name: chat
    description: チャットとメッセージ
  - name: group
    description: グループ設定
  - name: newsletter
    description: ニュースレターの設定
  - name: chatwoot
    description: カスタマーサポートのためのChatwoot統合
paths:
  /send/interactive:
    post:
      tags:
        - send
      summary: 実験的なインタラクティブメッセージを送信する
      description: |
        即時のみ REST Send for native-flow buttons, selection lists,
        location requests, and caroussels スケジュールされた送信またはMCPではサポートされていません。
        非公式プロトコルを使用します。APIの成功は受信者
        のレンダリングや配信を保証するものではありません。 個々のユーザーまたはグループの受信者のみを受け入れます。
        ボタンまたはカードを入力します。 全体的な HTTP ボディの制限も適用されます。
      operationId: sendInteractive
      parameters:
        - $ref: '#/components/parameters/DeviceIdHeader'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/InteractiveSendRequest'
            example:
              phone: '628123456789'
              body: Confirm your order?
              buttons:
                - name: quick_reply
                  params:
                    display_text: Confirm
                    id: confirm
      responses:
        '200':
          description: 送信可能; 受信者のレンダリングは未確認です
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SendResponse'
        '400':
          description: 受信者、テキスト、ボタンパラメータ、または画像制限が無効です
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorBadRequest'
        '500':
          description: デバイス、メディアのアップロード、または WhatsApp 送信失敗
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorInternalServer'
components:
  parameters:
    DeviceIdHeader:
      name: X-Device-Id
      in: header
      required: false
      description: |
        マルチデバイスサポート用のデバイス識別子 複数のデバイスが登録されている場合に必要です。
        1つのデバイスのみ登録されている場合は、デフォルトとして使用されます。
        `device_id`クエリパラメータとして提供することもできます。
      schema:
        type: string
        example: my-device-id
  schemas:
    InteractiveSendRequest:
      type: object
      required:
        - phone
        - body
      properties:
        phone:
          type: string
          description: 電話番号または完全な個人ユーザーまたはグループJID。
        body:
          type: string
          description: 必須の空白ではないテキスト、最大4096 バイト。
        footer:
          type: string
          description: 最大 256 バイト。
        buttons:
          type: array
          minItems: 1
          maxItems: 10
          items:
            $ref: '#/components/schemas/InteractiveNativeFlowButton'
        cards:
          type: array
          minItems: 2
          maxItems: 10
          items:
            $ref: '#/components/schemas/InteractiveCarouselCard'
      oneOf:
        - required:
            - buttons
          not:
            required:
              - cards
        - required:
            - cards
          not:
            required:
              - buttons
    SendResponse:
      type: object
      properties:
        code:
          type: string
          example: SUCCESS
        message:
          type: string
          example: Success
        results:
          type: object
          properties:
            message_id:
              type: string
              example: 3EB0B430B6F8F1D0E053AC120E0A9E5C
              description: スケジュールされた送信が省略されました
            status:
              type: string
              example: <feature> success ....
            schedule_id:
              type: string
              example: 0b5c3a8e-7f5d-4d6f-9d1e-2f8c1a7b9e10
              description: スケジュールされた送信のみ。 /send/schedules ルートで使用します。
            scheduled_at:
              type: string
              format: date-time
              example: '2026-10-01T02:00:00Z'
              description: スケジュールされた送信のみ。 最初の送信時刻。
            next_run_at:
              type: string
              format: date-time
              example: '2026-10-01T02:00:00Z'
              description: スケジュールされた送信のみ。 ワーカーが次に送信するとき。
    ErrorBadRequest:
      type: object
      properties:
        code:
          type: string
          example: 400
          description: HTTP ステータスコードです
        message:
          type: string
          example: field cannot be blank
          description: 詳細エラーメッセージ
        results:
          type: object
          example: null
          description: 追加データ
    ErrorInternalServer:
      type: object
      properties:
        code:
          type: string
          example: INTERNAL_SERVER_ERROR
          description: システムのコードにエラー
        message:
          type: string
          example: you are not loggin
          description: 詳細エラーメッセージ
        results:
          type: object
          example: null
          description: 追加データ
    InteractiveNativeFlowButton:
      type: object
      required:
        - name
        - params
      properties:
        name:
          type: string
          enum:
            - quick_reply
            - cta_url
            - cta_copy
            - cta_call
            - single_select
            - send_location
        params:
          type: object
          additionalProperties: true
          description: |
            最大 16384 JSON バイト。 quick_reply には display_text と id が必要です。
            cta_url には display_text と絶対 HTTP(S) url が必要です。
            cta_copy には display_text と copy_code が必要です。
            cta_call には display_text と phone_number が必要です。
            single_select には title と空でない sections が必要です。各セクションには
            空でない rows が必要で、各行の id と title は空でない文字列である必要があります。
            send_location は {} のようなオブジェクトを受け取り、カルーセルでないメッセージの唯一の
            ボタンでなければなりません。 名前を指定したすべてのテキストパラメーターは、
            空でない文字列である必要があります。
    InteractiveCarouselCard:
      type: object
      required:
        - body
        - buttons
      properties:
        title:
          type: string
          description: 最大 256 バイト。
        body:
          type: string
          description: 必須の空白ではないテキスト、最大4096 バイト。
        footer:
          type: string
          description: 最大 256 バイト。
        image_base64:
          type: string
          description: |
            オプションの生の標準base64 JPEGまたはPNG、データURLプレフィックスなし。
            上限はエンコード後 2800000 文字、デコード後 2000000 バイトです。
            設定された画像サイズの上限も適用されます。 側面あたりの最大4096ピクセル。
            送信前にサイズ変更、JPEGエンコード、サムネイル、アップロード。
        buttons:
          type: array
          minItems: 1
          maxItems: 10
          items:
            $ref: '#/components/schemas/InteractiveNativeFlowButton'
  securitySchemes:
    basicAuth:
      type: http
      scheme: basic

````

## Related topics

- [メッセージを送信中](https://gowa-docs.mintlify.site/ja/examples/sending-messages.md)
- [実験的な対話メッセージ](https://gowa-docs.mintlify.site/ja/examples/interactive-messages.md)
- [GOWA: WhatsApp REST API](https://gowa-docs.mintlify.site/ja/index.md)
- [音声メッセージを再生済みにする](https://gowa-docs.mintlify.site/ja/api-reference/message/音声メッセージを再生済みにする.md)
- [メッセージを送信](https://gowa-docs.mintlify.site/ja/api-reference/send/メッセージを送信.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.