Update settings
Developer Platform, Sandbox & Key Management
/settings
Update settings
updateSettingsUpdates partner configuration. All fields are optional — only provided fields are changed. Set emailConfig to null to revert to MyStocks default transactional emails.
Parameters
This endpoint has no path or query parameters.
Headers
AuthorizationstringRequiredBearer sk_sandbox_<your_key> for sandbox requests.
Idempotency-KeystringheaderRequiredUnique string that makes write calls safe to retry on network failure. Required for money movement, trading, KYC, subscriptions, and webhook creation. Deduplicated for 24 hours -- duplicate keys return the cached response. HTTP 409 if a concurrent request with the same key is still in progress.
Example: dep_user42_1743152580
Request body
logoUrlstring | nullHTTPS URL of your company logo. Shown in partner-branded emails.
Example: "https://cdn.yourapp.com/logo.png"
emailConfigobject | nullCustom SMTP config. Set to null to revert to MyStocks default emails.
emailConfig.hoststringSMTP hostname. e.g. smtp.sendgrid.net, smtp.gmail.com.
Example: "smtp.sendgrid.net"
emailConfig.portintegerSMTP port. Default 587 (STARTTLS). Use 465 for implicit TLS.
Example: 587
emailConfig.securebooleantrue = implicit TLS (port 465). false = STARTTLS (port 587).
Example: false
emailConfig.usernamestringSMTP auth username.
Example: "apikey"
emailConfig.passwordstringSMTP password or API key. Omit to keep existing.
emailConfig.fromNamestringDisplay name in the From header.
Example: "Acme Investments"
emailConfig.fromEmailstringFrom email address.
Example: "noreply@acme.com"
Response fields
messagestringExample: "Settings updated."
Response codes
200Settings updated.