Examples
Creating a contact form
Learn how to create a contact form using the Tally API
Prerequisites
- A Tally account
- An API key
Request
To create the form, send a POST request to the /forms
endpoint with the following payload:
This example adds in total 7 blocks to the form:
- The form title
- A title block for the name field
- A required text input block for the name field
- A title block for the email field
- A required email input block for the email field
- A title block for the message field
- A required large text input block for the message field
Response
The API will respond with a 201 status code and with some form meta data:
The form that was created should now show up in the Tally dashboard & look like this.