Email Settings

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
Parameter Einzelheiten Beschreibung
smtp_host ErforderlichZeichenfolge SMTP server hostname
smtp_port ErforderlichGanzzahl SMTP server port
smtp_username ErforderlichZeichenfolge SMTP username/email
smtp_password ErforderlichZeichenfolge SMTP password
smtp_from_email ErforderlichZeichenfolge Email address for "From"
smtp_from_name OptionalZeichenfolge Name displayed in "From" field
encryption OptionalZeichenfolge 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" } }