Skip to main content
Use the copy button to send a code your customer will paste into another app: a Pix copia e cola code, the typeable line of a boleto or a discount coupon. The native copy button depends on how each WhatsApp version shows the message and may not show up on some devices; in link mode, the button reaches any device.

How to send

Send a copyable button with "render_as": "link":
A complete example, with the text and the button, through the POST /wa/messages endpoint:
Send the copy_code whole, exactly as your bank or payment gateway generated it. The label follows the rule for every button: up to 20 characters.

How it works

Message on a phone with the Pix text and, below it, the "Copiar código Pix" link button
  1. The message arrives with the button. With render_as: "link", the API sends the button as a link (url) button with the same label.
  2. Tapping the button opens a page that shows the full code.
  3. On that page, the recipient copies the code, spaces and special characters included, and pastes it into the bank or store app.

Rules and support

  • The converted button counts as a url button for every button rule.
  • It works on the phone, on WhatsApp Web and in groups.
  • On official (WABA) instances, the button is accepted in a session message and follows the rule of exactly 1 url button per message, with no reply buttons alongside.
  • render_as only applies when type is copyable. On any other button type, the request is rejected with a 400 error.
As with the native button, the code travels inside the message: anyone with access to the message can see the code.