<%= render 'shared/settings_nav' %>

API

<%= render 'shared/clipboard_copy', icon: 'copy', text: jwt, class: 'base-button', icon_class: 'w-6 h-6 text-white', copy_title: 'Copy', copied_title: 'Copied' %>
Request signature, single submitter
POST
<%= api_submissions_path %>
<% text = capture do %>curl --location '<%= api_submissions_url %>' \ --header 'X-Auth-Token: <%= jwt %>' \ --data-raw '{ "template_id": <%= current_account.templates.last&.id || 1 %>, "emails": "<%= current_user.email.sub('@', '+test@') %>, <%= current_user.email.sub('@', '+test2@') %>" }'<% end.to_str %> <%= render 'shared/clipboard_copy', icon: 'copy', text:, class: 'btn btn-ghost text-white', icon_class: 'w-6 h-6 text-white', copy_title: 'Copy', copied_title: 'Copied' %>
<%= text %>
Request signature, multiple submitters
POST
<%= api_submissions_path %>
<% text = capture do %>curl --location '<%= api_submissions_url %>' \ --header 'X-Auth-Token: <%= jwt %>' \ --data-raw '{ "template_id": <%= current_account.templates.last&.id || 1 %>, "submission": [ { "submitters": [ { "name": "<%= current_account.templates.last ? current_account.templates.last.submitters.first['name'] : 'First Submitter' %>", "email": "<%= current_user.email.sub('@', '+test@') %>" }, { "name": "Second Submitter", "email": "<%= current_user.email.sub('@', '+test2@') %>" } ] } ] }'<% end.to_str %> <%= render 'shared/clipboard_copy', icon: 'copy', text:, class: 'btn btn-ghost text-white', icon_class: 'w-6 h-6 text-white', copy_title: 'Copy', copied_title: 'Copied' %>
<%= text %>