<%= render 'shared/settings_nav' %>

SMS

<% value = @encrypted_config.value || {} %> <% sms_live = Sms.enabled_for?(current_account) %> <% if sms_live %>
<%= svg_icon('discount_check_filled', class: 'w-6 h-6') %>

SMS is enabled

Provider: <%= value['provider'].to_s.upcase %>. From: <%= value['from_number'] %>.

<% else %>
<%= svg_icon('info_circle', class: 'w-6 h-6') %>

SMS provider is not configured

WaboSign currently supports BulkVS. Paste the Basic Auth header value from the BulkVS portal below.

<% end %> <%= form_for @encrypted_config, url: settings_sms_path, method: :post, html: { autocomplete: 'off', class: 'space-y-4' } do |f| %> <%= f.fields_for :value do |ff| %>
<%= ff.label :provider, 'Provider', class: 'label' %> <%= ff.select :provider, [['BulkVS', 'bulkvs']], { selected: value['provider'] || 'bulkvs' }, class: 'base-select' %>
<%= ff.label :basic_auth_token, 'BulkVS Basic Auth Token', class: 'label' %> <%= ff.password_field :basic_auth_token, class: 'base-input', placeholder: value['basic_auth_token'].present? ? '*************' : 'Paste from BulkVS portal' %> <% if value['basic_auth_token'].present? %> Leave blank to keep the saved token. <% else %> In the BulkVS portal, open the API tab and copy the pre-encoded Basic Auth header value (do not include "Basic "). <% end %>
<%= ff.label :from_number, 'From Number', class: 'label' %> <%= ff.text_field :from_number, value: value['from_number'], class: 'base-input', placeholder: '15551234567' %> E.164 format (digits only, country code first; e.g. 15551234567).
<%= ff.label :delivery_webhook_url, 'Delivery Status Webhook (optional)', class: 'label' %> <%= ff.url_field :delivery_webhook_url, value: value['delivery_webhook_url'], class: 'base-input', placeholder: 'https://your-app.example/webhooks/sms' %> If set, BulkVS will POST delivery-status events here for each message.
<% end %>
<%= f.button button_title(title: t('save'), disabled_with: t('saving')), class: 'base-button' %>
<% end %> <% if sms_live %>

Send a test SMS

<%= form_with url: test_message_settings_sms_path, method: :post, html: { autocomplete: 'off', class: 'space-y-3' } do |f| %>
A short test message is sent to this number using your saved config.
<% end %>
<% end %>