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

# Send buttons

> Sends an interactive message with reply buttons or CTA buttons (URL, call, copy code, Pix). Limits: up to 3 REPLY buttons; REPLY cannot be mixed with other types; PIX must be the only button. Returns `{ messageId }`.



## OpenAPI

````yaml /en/api-reference/openapi.json post /messages/send-button
openapi: 3.1.0
info:
  title: Zapfy API
  description: >-
    Multi-tenant WhatsApp API. Send messages and manage webhooks through a
    single surface.
  version: 1.0.0
servers:
  - url: https://api.zapfy.io/v1
security:
  - accountToken: []
paths:
  /messages/send-button:
    post:
      tags:
        - Messages
      summary: Send buttons
      description: >-
        Sends an interactive message with reply buttons or CTA buttons (URL,
        call, copy code, Pix). Limits: up to 3 REPLY buttons; REPLY cannot be
        mixed with other types; PIX must be the only button. Returns `{
        messageId }`.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SendButtonBody'
      responses:
        '200':
          $ref: '#/components/responses/MessageAccepted'
        '400':
          $ref: '#/components/responses/Error'
        '401':
          $ref: '#/components/responses/Error'
        '403':
          $ref: '#/components/responses/Error'
        '502':
          $ref: '#/components/responses/Error'
      security:
        - instanceToken: []
components:
  schemas:
    SendButtonBody:
      type: object
      required:
        - to
        - title
        - description
        - footer
        - buttons
      properties:
        to:
          $ref: '#/components/schemas/Recipient'
          description: >-
            Message recipient: phone in E.164 (e.g. 5511999998888) or a group
            id.
        title:
          type: string
          description: Header title.
          example: Special offer
        description:
          type: string
          description: Body text.
          example: Check the conditions below
        footer:
          type: string
          description: Footer text.
          example: Zapfy
        buttons:
          type: array
          minItems: 1
          items:
            $ref: '#/components/schemas/Button'
          description: >-
            Buttons to render. Limits: up to 3 REPLY buttons; REPLY can't be
            mixed with other types; PIX must be alone.
        mentionedPhones:
          type: array
          items:
            type: string
            example: '5511999998888'
          description: Phones to mention inside the body text.
        mentionAll:
          type: boolean
          description: Mention every participant (groups only).
        delay:
          $ref: '#/components/schemas/Delay'
        quoted:
          $ref: '#/components/schemas/Quoted'
    Recipient:
      type: string
      description: >-
        Recipient: a phone in E.164 (with or without `+`, spaces or formatting,
        e.g. `5511999998888` or `+55 11 99999-8888`) or a group id. To send to a
        group, use the group id (from `GET /groups`).
      example: '5511999998888'
    Button:
      type: object
      required:
        - type
      description: >-
        A button inside a /messages/send-button message. Which fields apply
        depends on `type`.
      properties:
        type:
          type: string
          enum:
            - REPLY
            - COPY
            - URL
            - CALL
            - PIX
          description: >-
            Button type. REPLY = quick reply; URL = opens a link; CALL = dials a
            number; COPY = copies a code; PIX = Brazilian Pix payment. Sent in
            UPPERCASE.
        displayText:
          type: string
          description: Label shown on the button (REPLY/COPY/URL/CALL). Ignored for PIX.
          example: Learn more
        id:
          type: string
          description: Callback payload returned via webhook when type=REPLY.
          example: btn_info
        copyCode:
          type: string
          description: Code copied to the clipboard when type=COPY.
          example: PROMO2026
        url:
          type: string
          description: Target link when type=URL.
          example: https://zapfy.io
        phoneNumber:
          type: string
          description: Phone number to dial when type=CALL.
          example: '+5511999998888'
        currency:
          type: string
          description: ISO currency code when type=PIX (e.g. BRL).
          example: BRL
        name:
          type: string
          description: Merchant name shown on the Pix sheet (type=PIX).
          example: Minha Loja
        keyType:
          type: string
          enum:
            - PHONE
            - EMAIL
            - CPF
            - CNPJ
            - RANDOM
          description: Pix key type (type=PIX). Sent in UPPERCASE.
        key:
          type: string
          description: Pix key value matching `keyType` (type=PIX).
          example: '12345678900'
    Delay:
      type: integer
      description: >-
        Optional delay in milliseconds before sending; WhatsApp shows "typing…"
        during this interval.
    Quoted:
      type: object
      description: Quotes (replies to) a previous message.
      required:
        - messageId
      properties:
        messageId:
          type: string
          description: '`messageId` of the quoted message.'
          example: 3EB0C767D4...
        participant:
          type: string
          description: In a group, who sent the quoted message.
    MessageHandle:
      type: object
      description: >-
        Identifier of the sent message. Store the `messageId`: together with the
        same `to` you sent to, it is what `/messages/delete` and
        `/messages/edit` need.
      properties:
        messageId:
          type: string
          description: WhatsApp message ID.
          example: 3EB0C767D4...
  responses:
    MessageAccepted:
      description: Message accepted by WhatsApp.
      content:
        application/json:
          schema:
            type: object
            properties:
              data:
                $ref: '#/components/schemas/MessageHandle'
    Error:
      description: Error.
      content:
        application/json:
          schema:
            type: object
            properties:
              error:
                type: string
                example: Instance not found
  securitySchemes:
    accountToken:
      type: http
      scheme: bearer
      description: Account token (`zpfy_acct_...`) — manages instances and webhooks.
    instanceToken:
      type: http
      scheme: bearer
      description: Instance token (`zpfy_inst_...`) — sends messages.

````