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

# Send interactive button message

> Sends an interactive button message to a phone number. Requires that the recipient has messaged the business in the last 24 hours.



## OpenAPI

````yaml POST /messages/interactive/button
openapi: 3.0.0
info:
  title: Cogfy Messenger Public API
  version: 1.0.0
  description: API for interacting with the Cogfy Messenger platform
servers:
  - url: https://messenger-public-api.cogfy.com
    description: Production server
  - url: http://localhost:53981
    description: Local server
security:
  - ApiKeyAuth: []
tags: []
paths:
  /messages/interactive/button:
    post:
      tags:
        - Messages
      summary: Send interactive button message
      description: >-
        Sends an interactive button message to a phone number. Requires that the
        recipient has messaged the business in the last 24 hours.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - from
                - to
                - interactive
              properties:
                from:
                  type: string
                to:
                  type: string
                interactive:
                  type: object
                  required:
                    - body
                    - action
                  properties:
                    type:
                      type: string
                      enum:
                        - button
                      default: button
                    header:
                      type: object
                      required:
                        - type
                      properties:
                        type:
                          type: string
                          enum:
                            - text
                            - image
                            - video
                            - document
                        text:
                          type: string
                    body:
                      type: object
                      required:
                        - text
                      properties:
                        text:
                          type: string
                    footer:
                      type: object
                      properties:
                        text:
                          type: string
                    action:
                      type: object
                      properties:
                        buttons:
                          type: array
                          minItems: 1
                          maxItems: 3
                          items:
                            type: object
                            required:
                              - type
                              - reply
                            properties:
                              type:
                                type: string
                              reply:
                                type: object
                                required:
                                  - id
                                  - title
                                properties:
                                  id:
                                    type: string
                                  title:
                                    type: string
      responses:
        '200':
          description: Image message sent successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: api-key

````