Settings API Guide
Learn how to manage deployment settings using the Wacht Rust SDK. This includes authentication settings, display customization, email configuration, and more.Prerequisites
Before using any API methods, you must initialize the SDK:Fetch Deployment Settings
Get the current configuration for your deployment.Update Authentication Settings
Configure authentication methods and security settings.Update Display Settings
Customize the appearance of your authentication pages.Update B2B Settings
Configure organization and workspace features.Update Deployment Restrictions
⚠️ DO NOT USE - The SDK modelDeploymentRestrictions does not match the backend API. The SDK needs to be regenerated before this feature will work correctly.
Actual backend API fields:
allowlist_enabled(boolean)blocklist_enabled(boolean)country_restrictions(CountryRestrictions object)sign_up_mode(string)
allowed_email_domains, blocked_email_domains, ip_whitelist, ip_blacklist which do not exist in the backend API.
JWT Templates
List JWT Templates
Get all JWT templates in your deployment.Create JWT Template
Create a new JWT template for token customization.Update JWT Template
Modify an existing JWT template.Delete JWT Template
Remove a JWT template.SMTP Configuration
Update SMTP Settings
Configure custom email delivery.Verify SMTP Connection
Test your SMTP configuration before saving.Remove SMTP Configuration
Revert to using the default email service.Email Templates
Fetch Email Template
Get the current configuration for an email template.Update Email Template
Customize an email template content.Social Connections
List Social Connections
Get all configured social login providers.Configure Social Connection
Add or update a social login provider.Upload Images
Upload logos, icons, and other images for your deployment.Supported Image Types
logo- Organization or application logofavicon- Website faviconuser-profile- Default user profile imageorg-profile- Default organization profile imageworkspace-profile- Default workspace profile image
Error Handling
All SDK methods return aResult<T, Error>:
Related
- Installation - SDK setup
- API Keys Guide - API authentication management
- Users Guide - User management
- API Reference - Backend API - Full API docs
