Ustawienia e-mail

GET https://leads.qreq.com/api/email/settings
curl --request GET \
--url 'https://leads.qreq.com/api/email/settings' \
--header 'Authorization: Bearer {api_key}'
{ "status": "success", "message": "Email settings retrieved successfully.", "data": { "smtp_host": "smtp.example.com", "smtp_port": 587, "smtp_username": "[email protected]", "smtp_from_email": "[email protected]", "smtp_from_name": "Example App", "encryption": "tls" } }
PUT https://leads.qreq.com/api/email/settings/update
Parametry Szczegóły Opis
smtp_host WymaganeCiąg SMTP server hostname
smtp_port WymaganeLiczba całkowita SMTP server port
smtp_username WymaganeCiąg SMTP username/email
smtp_password WymaganeCiąg SMTP password
smtp_from_email WymaganeCiąg Email address for "From"
smtp_from_name OpcjonalneCiąg Name displayed in "From" field
encryption OpcjonalneCiąg Encryption type: tls or ssl
curl --request PUT \
--url 'https://leads.qreq.com/api/email/settings/update' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: application/json' \
--data-raw '{ "smtp_host": "smtp.example.com", "smtp_port": 587, "smtp_username": "[email protected]", "smtp_password": "password123", "smtp_from_email": "[email protected]", "smtp_from_name": "Example App", "encryption": "tls" }'
{ "status": "success", "message": "Email settings updated successfully.", "data": { "smtp_host": "smtp.example.com", "smtp_port": 587, "smtp_username": "[email protected]", "smtp_from_email": "[email protected]", "smtp_from_name": "Example App", "encryption": "tls" } }