<%= render 'shared/settings_nav' %>

API

<%= render 'shared/clipboard_copy', icon: 'copy', text: current_user.access_token.token, 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: <%= current_user.access_token.token %>' \ --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 with default values
POST
<%= api_submissions_path %>
<% text = capture do %>curl --location '<%= api_submissions_url %>' \ --header 'X-Auth-Token: <%= current_user.access_token.token %>' \ --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@') %>", "values": { "Form Text Field Name": "Default Value" } }, { "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 %>
Template details
GET
<%= api_template_path(':id') %>
<% text = capture do %>curl '<%= api_template_url(current_account.templates.last) %>' \ --header 'X-Auth-Token: <%= current_user.access_token.token %>'<% 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 %>