Using the Consumer API is significantly more complex than using our Javascript tags or our EntryPoint API and will take more development time to complete.If you wish to do this, please contact our support team so we can best support you.
Share links
When you enrol a referrer via the Consumer API, the response includes ashareLinks array containing pre-built share links for each sharing channel (WhatsApp, Facebook, X, SMS, link copy, and others configured for your offer).
Each share link object includes:
| Field | Description |
|---|---|
type | The sharing channel (e.g. “whatsapp”, “facebook”, “link”) |
protocol | The URL protocol for the share, if applicable |
url | The referral URL to include in the share |
defaultShareMessage | The pre-rendered share message text for this channel |
exampleImplementation | A ready-to-use share URL you can open directly, or adapt to suit your implementation |
Dynamic content in share messages
ThedefaultShareMessage field returns fully rendered text with all dynamic content placeholders resolved. Any placeholders configured in your offer’s share copy - such as the referrer’s first name or custom share fields - are automatically populated with real values.
For example, if your WhatsApp share copy is configured as:
Order tracking
Learn how to pass order data to Mention Me for referral tracking.