Loyalty.lt
External sms api

Register marketing consent

Register marketing consent for a phone number without sending an SMS. Useful for consent obtained via website forms or other channels.

POST/{locale}/sms/consent

Register marketing consent for a phone number without sending an SMS. Useful for consent obtained via website forms or other channels.

Authorization

ApiKeyAuth ApiSecretAuth

Path Parameters

locale*string

Locale code

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://example.com/lt/sms/consent" \  -H "Content-Type: application/json" \  -d '{    "phone_number": "+37061234567",    "consent_given": true  }'
{  "success": true,  "message": "Marketing consent registered successfully",  "data": {    "phone_number": "+37061234567",    "consent_given": true,    "consent_source": "website_form",    "consent_date": "2025-01-15T10:30:00Z"  },  "code": 200}