<% account_config = AccountConfig.find_or_initialize_by(account: current_account, key: AccountConfig::SIGNATURE_CALLBACK_URL_KEY) %> <% if can?(:manage, account_config) %>
>
Signature Callback URL

When a Provider, Client/Caregiver, or Supervisor signature is collected, DocuSeal will POST { template_id, form_id, email, signatures } to this URL. Leave blank to disable.

<%= form_for account_config, url: account_configs_path, method: :post, html: { autocomplete: 'off', class: 'space-y-3' } do |f| %> <%= f.hidden_field :key %>
<%= f.url_field :value, class: 'base-input w-full font-mono', placeholder: 'https://your-app.example.com/api/signature-callback', value: account_config.value.presence %>
<%= f.button button_title(title: 'Save', disabled_with: 'Saving'), class: 'base-button' %>
<% end %>
<% end %>