Skip to content

Messaging Configuration

Configure email and SMS providers per tenant.

Email Configuration

curl -X PATCH http://localhost:8000/api/sso/v1/tenants/TENANT_ID/messaging \
  -H "Authorization: Bearer TOKEN" \
  -d '{
    "email": {
      "provider": "smtp",
      "smtp_host": "smtp.gmail.com",
      "smtp_port": 587,
      "smtp_username": "[email protected]",
      "smtp_password": "...",
      "from_address": "Acme Corp <[email protected]>"
    }
  }'

SMS Configuration

curl -X PATCH http://localhost:8000/api/sso/v1/tenants/TENANT_ID/messaging \
  -H "Authorization: Bearer TOKEN" \
  -d '{
    "sms": {
      "provider": "twilio",
      "account_sid": "...",
      "auth_token": "...",
      "from_number": "+1234567890"
    }
  }'

Supported Providers

Email: - SMTP - SendGrid - Resend - AWS SES

SMS: - Twilio - Kavenegar - AWS SNS