/projects/{project_id}/branches/{branch_id}/auth/email_providerUpdate email provider configuration
Updates the email provider configuration for a branch's Neon Auth integration. Use the standard fields to configure SMTP settings and the sender identity; Better Auth integrations merge omitted fields, while Legacy Stack Auth integrations require all six standard fields on each update. Returns the updated email provider configuration.
- IdempotentThe SDK sends
Idempotency-Key, so a retried request is only applied once.
Email provider configuration. Better Auth integrations merge omitted fields; Legacy Stack Auth integrations require all six standard SMTP and sender fields on every update.
For Legacy Stack Auth integrations, include host, port, username, password, sender_email, and sender_name in every update; partial standard updates are not supported. Better Auth integrations merge omitted fields, so you can send only the standard fields you want to change. The project_id and branch_id path parameters must each contain 1 to 60 lowercase letters, digits, or hyphens.