Embeds
SMTP Settings
Configure SMTP settings for your data app so scheduled reports can be sent by email.
PUT
Set or update the SMTP configuration used to send scheduled reports and other emails for your data app. The API validates the connection before saving; if the credentials or server are invalid, the request fails and settings are not stored.Documentation Index
Fetch the complete documentation index at: https://docs.usedatabrain.com/llms.txt
Use this file to discover all available pages before exploring further.
You can also configure email in the UI: Settings → Embed Settings → Email Settings. This API is for automation and integration. See Email Settings for Scheduled Reports for the UI flow.
Endpoint
Authentication
All requests must include your data app API key in theAuthorization header. See the data app creation guide and the API Token guide.
Headers
Bearer token for API authentication. Use your data app API key.
Must be
application/json.Request Body
SMTP server hostname (e.g.
smtp.example.com).SMTP server port as integer (e.g.
587 for STARTTLS, 465 for implicit SSL).SMTP authentication username.
SMTP authentication password.
Sender email address. Must be a valid email format (e.g.
noreply@example.com).Reply-to email address. Must be a valid email format.
Whether to use TLS/SSL for the connection. Use
true for port 465; use false for port 587 with STARTTLS.Response
Examples
Error codes
| Error Code | HTTP Status | Description |
|---|---|---|
INVALID_DATA_APP_API_KEY | 400 | Missing or invalid data app API key |
INVALID_SERVICE_TOKEN | 400 | Invalid or expired token; cannot resolve company context |
INVALID_REQUEST_BODY | 400 | Invalid or missing body fields (e.g. invalid email, missing host) |
INTERNAL_SERVER_ERROR | 400 / 500 | SMTP connection test failed (400) or unexpected server error (500) |
Related
Email Settings for Scheduled Reports
Configure email in the UI
Whitelist Domains
Manage embedding domains

