Request From Web Form
<form method="post" action="[path-to-endpoint]">
<!-- include the "hash" param as a separate hidden field, or simply as GET parameter in the form-action -->
<input type="hidden" name="hash" value="the-calculated-sha256-hash-code" />
<!-- this can be "live" or "preview". If param is missing, default is "live". -->
<input type="hidden" name="environment" value="preview" />
<!-- only required to activate debug-mode -->
<input type="hidden" name="debug" value="true" />
<!-- name-attributes for web inputs = endpoint parameters -->
<input type="..." name="firstname" /> <input type="..." name="lastname" />
<input type="..." name="email" />
<input type="submit" value="Send Request" />
</form>What shall happen after submit?
Option 1: Redirect to Success-Page / Error-Page
Option 2: Return HTTP-Status
Option 3: Return Custom JSON
Option 4: Download Document
Form Inputs vs Endpoint Parameters
Option 1: Endpoint With Parameter Transformation
Option 2: Endpoint Without Parameter Transformation
Last updated