Docs
Esc

Suggested

QuickstartGet started
Webhooks and signaturesMessaging
Create a messagemessages.create · POST /v1/accounts/{AC}/messages
RATE_LIMITED429 · Rate limit exceeded.
message.deliveredMessage resource
Contents

API reference

Opt-in links

API reference descriptions are provided in English to preserve the exact published contract.

GET/v1/accounts/{AC}/opt-in-links

optInLinks.listSDK operation getV1AccountsByAcOptInLinks

POST/v1/accounts/{AC}/opt-in-links

optInLinks.createSDK operation postV1AccountsByAcOptInLinks

Mints a link to a form Toutye hosts. A person who submits it and confirms by sending the one-time code from that WhatsApp number becomes a contact with an OPTED_IN consent for the purpose, citing this link and its exact wording as evidence. The token is returned once and stored hashed.

Request body

  • consentTextstring (max 1000 chars)Required
  • labelstring (max 120 chars)Required
  • defaultCountrystring (pattern ^[A-Za-z]{2}$)

    Two-letter country a number typed without + is read against. Defaults to the organization's country.

  • expiresInDaysinteger (1–3650)
  • publicBusinessNamestring (max 120 chars)

    Public business name fixed for this form link. Omit only to retain the explicitly labelled legacy account name.

  • purposeenum

    MARKETINGTRANSACTIONALSUPPORT

Revoke a hosted opt-in form link

POST/v1/accounts/{AC}/opt-in-links/{OL}/revoke

optInLinks.revokeSDK operation postV1AccountsByAcOptInLinksByOlRevoke

The form stops accepting submissions. The row stays, because the consents it collected cite it.

Parameters

  • OLstring (OL… SID)Required

Read a hosted opt-in form (public)

GET/v1/opt-in/{token}

optIn.retrieveSDK operation getV1OptInByToken

Parameters

  • tokenstring (max 256 chars)Required

Submit a hosted opt-in form (public)

POST/v1/opt-in/{token}

optIn.updateSDK operation postV1OptInByToken

Starts a confirmation: answers 202 with a one-time code and a WhatsApp click-to-chat link. The OPTED_IN consent (source FORM, citing the link and its exact wording) is recorded only when that code arrives on WhatsApp from the submitted number.

Parameters

  • tokenstring (max 256 chars)Required

Request body

  • agreedbooleanRequired
  • phonestring (max 32 chars)Required
  • namestring (max 200 chars)