TrueToForm API is a RESTful API that allows you to create, read, update, and delete forms and form submissions.
Authentication is done via JWT. To authenticate, send a POST request to /api/auth with your username and password. If the credentials are correct, you will receive a JWT token in the response. You must include this token in the Authorization header of all subsequent requests.
Forms are created by sending a POST request to /api/forms. The request must include a title and an array of fields. Each field must have a type and a label. The response will include the ID of the new form.
Form submissions are created by sending a POST request to /api/forms/{formId}/submissions. The request must include an array of values corresponding to the fields of the form. The response will include the ID of the new submission.