Forms
Create a form
Getting started
Users
Form submissions
Workspaces
Forms
Create a form
Creates a new form, optionally based on a template or within a specific workspace.
POST
/
forms
curl --request POST \
--url https://api.tally.so/forms \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"workspaceId": "<string>",
"templateId": "<string>",
"status": "BLANK",
"blocks": [
{
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "FORM_TITLE",
"groupUuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"groupType": "FORM_TITLE",
"payload": {
"html": "<string>",
"logo": "<string>",
"cover": "<string>",
"coverSettings": {
"objectPositionYPercent": 123
},
"mentions": [
{
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"field": {
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "InputField",
"questionType": "FORM_TITLE",
"blockGroupUuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"calculatedFieldType": "NUMBER"
},
"defaultValue": {}
}
],
"button": {
"label": "<string>"
}
}
}
],
"settings": {
"language": "<string>",
"isClosed": false,
"closeMessageTitle": "<string>",
"closeMessageDescription": "<string>",
"closeTimezone": "<string>",
"closeDate": "<string>",
"closeTime": "<string>",
"submissionsLimit": 1,
"uniqueSubmissionKey": "<string>",
"redirectOnCompletion": "<string>",
"hasSelfEmailNotifications": false,
"selfEmailTo": "<string>",
"selfEmailReplyTo": "<string>",
"selfEmailSubject": "<string>",
"selfEmailFromName": "<string>",
"selfEmailBody": "<string>",
"hasRespondentEmailNotifications": false,
"respondentEmailTo": "<string>",
"respondentEmailReplyTo": "<string>",
"respondentEmailSubject": "<string>",
"respondentEmailFromName": "<string>",
"respondentEmailBody": "<string>",
"hasProgressBar": false,
"hasPartialSubmissions": false,
"pageAutoJump": false,
"saveForLater": true,
"styles": "<string>",
"password": "<string>",
"submissionsDataRetentionDuration": 1,
"submissionsDataRetentionUnit": "<string>"
}
}'
{
"id": "<string>",
"name": "<string>",
"workspaceId": "<string>",
"status": "BLANK",
"numberOfSubmissions": 123,
"isClosed": true,
"payments": [
{
"amount": 123,
"currency": "<string>"
}
],
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
application/json
Response
201
application/json
Form created successfully
The response is of type object
.
curl --request POST \
--url https://api.tally.so/forms \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"workspaceId": "<string>",
"templateId": "<string>",
"status": "BLANK",
"blocks": [
{
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "FORM_TITLE",
"groupUuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"groupType": "FORM_TITLE",
"payload": {
"html": "<string>",
"logo": "<string>",
"cover": "<string>",
"coverSettings": {
"objectPositionYPercent": 123
},
"mentions": [
{
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"field": {
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "InputField",
"questionType": "FORM_TITLE",
"blockGroupUuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"calculatedFieldType": "NUMBER"
},
"defaultValue": {}
}
],
"button": {
"label": "<string>"
}
}
}
],
"settings": {
"language": "<string>",
"isClosed": false,
"closeMessageTitle": "<string>",
"closeMessageDescription": "<string>",
"closeTimezone": "<string>",
"closeDate": "<string>",
"closeTime": "<string>",
"submissionsLimit": 1,
"uniqueSubmissionKey": "<string>",
"redirectOnCompletion": "<string>",
"hasSelfEmailNotifications": false,
"selfEmailTo": "<string>",
"selfEmailReplyTo": "<string>",
"selfEmailSubject": "<string>",
"selfEmailFromName": "<string>",
"selfEmailBody": "<string>",
"hasRespondentEmailNotifications": false,
"respondentEmailTo": "<string>",
"respondentEmailReplyTo": "<string>",
"respondentEmailSubject": "<string>",
"respondentEmailFromName": "<string>",
"respondentEmailBody": "<string>",
"hasProgressBar": false,
"hasPartialSubmissions": false,
"pageAutoJump": false,
"saveForLater": true,
"styles": "<string>",
"password": "<string>",
"submissionsDataRetentionDuration": 1,
"submissionsDataRetentionUnit": "<string>"
}
}'
{
"id": "<string>",
"name": "<string>",
"workspaceId": "<string>",
"status": "BLANK",
"numberOfSubmissions": 123,
"isClosed": true,
"payments": [
{
"amount": 123,
"currency": "<string>"
}
],
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}