SMS API
Register Marketing Consent
Register or revoke GDPR-compliant marketing consent for phone numbers
POST
Documentation Index
Fetch the complete documentation index at: https://docs.loyalty.lt/llms.txt
Use this file to discover all available pages before exploring further.
Register Marketing Consent
Register or revoke marketing consent for a phone number. Use this endpoint to maintain GDPR-compliant records of consent obtained through your website, app, or other channels.Marketing consent can also be registered when sending SMS by including
marketing_consent: true in the send request.Path Parameters
Language code (e.g.,
lt, en)Authentication
API key from Partners Portal
API secret from Partners Portal
Request Body
Required Fields
Phone number to register consent for. E.164 format recommended.Example:
"+37061234567"true- Register consent (opt-in)false- Revoke consent (opt-out)
Optional Fields (Recommended for GDPR)
Source/channel where consent was obtained.Examples:
"website_form", "pos", "app", "phone_call"The actual IP address of the end user who gave consent. Important for GDPR compliance.Example:
"192.168.1.100"Browser/device user agent string of the person who gave consent.Example:
"Mozilla/5.0 (Windows NT 10.0; Win64; x64)..."URL of the page/form where consent was obtained.Example:
"https://example.com/newsletter-subscribe"Response
Whether the consent was registered successfully
Status message
GDPR Best Practices
Collect Client Information
Always capture the end user’s IP address and user agent when obtaining consent. Do not use your server’s IP.
Record Consent Source
Use descriptive
consent_source values like website_form, checkout_page, mobile_app, pos_terminal.Related Endpoints
Send SMS
Send SMS with consent registration in one call
SMS Overview
Complete SMS API documentation