Opt-in links
API reference descriptions are provided in English to preserve the exact published contract.
- GETList hosted opt-in form links
optInLinks.list - POSTCreate a hosted opt-in form link
optInLinks.create - POSTRevoke a hosted opt-in form link
optInLinks.revoke - GETRead a hosted opt-in form (public)
optIn.retrieve - POSTSubmit a hosted opt-in form (public)
optIn.update
List hosted opt-in form links
GET/v1/accounts/{AC}/opt-in-links
optInLinks.listSDK operation getV1AccountsByAcOptInLinks
Create a hosted opt-in form link
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)Requiredlabelstring (max 120 chars)RequireddefaultCountrystring (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.
purposeenumMARKETINGTRANSACTIONALSUPPORT
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
agreedbooleanRequiredphonestring (max 32 chars)Requirednamestring (max 200 chars)