Create a new form
curl --request POST \
--url https://api.tally.so/forms \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"blocks": [
{
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "FORM_TITLE",
"groupUuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"payload": {
"html": "<string>",
"title": "<string>",
"logo": "<string>",
"cover": "<string>",
"coverSettings": {
"objectPositionYPercent": 50
},
"mentions": [
{
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"field": {
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"blockGroupUuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"payload": {}
},
"defaultValue": "<unknown>"
}
],
"button": {
"label": "<string>"
}
}
}
],
"workspaceId": "<string>",
"templateId": "<string>",
"folderId": "<string>",
"settings": {
"language": "<string>",
"isClosed": false,
"closeMessageTitle": "<string>",
"closeMessageDescription": "<string>",
"closeTimezone": "<string>",
"closeDate": "<string>",
"closeTime": "<string>",
"submissionsLimit": 1,
"uniqueSubmissionKey": {
"html": "<string>",
"mentions": [
{
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"field": {
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"blockGroupUuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"payload": {}
},
"defaultValue": "<unknown>"
}
]
},
"redirectOnCompletion": {
"html": "<string>",
"mentions": [
{
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"field": {
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"blockGroupUuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"payload": {}
},
"defaultValue": "<unknown>"
}
]
},
"hasSelfEmailNotifications": false,
"selfEmailTo": {
"html": "<string>",
"mentions": [
{
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"field": {
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"blockGroupUuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"payload": {}
},
"defaultValue": "<unknown>"
}
]
},
"selfEmailReplyTo": {
"html": "<string>",
"mentions": [
{
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"field": {
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"blockGroupUuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"payload": {}
},
"defaultValue": "<unknown>"
}
]
},
"selfEmailSubject": {
"html": "<string>",
"mentions": [
{
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"field": {
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"blockGroupUuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"payload": {}
},
"defaultValue": "<unknown>"
}
]
},
"selfEmailFromName": {
"html": "<string>",
"mentions": [
{
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"field": {
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"blockGroupUuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"payload": {}
},
"defaultValue": "<unknown>"
}
]
},
"selfEmailBody": {
"html": "<string>",
"mentions": [
{
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"field": {
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"blockGroupUuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"payload": {}
},
"defaultValue": "<unknown>"
}
]
},
"hasRespondentEmailNotifications": false,
"respondentEmailTo": {
"html": "<string>",
"mentions": [
{
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"field": {
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"blockGroupUuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"payload": {}
},
"defaultValue": "<unknown>"
}
]
},
"respondentEmailReplyTo": {
"html": "<string>",
"mentions": [
{
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"field": {
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"blockGroupUuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"payload": {}
},
"defaultValue": "<unknown>"
}
]
},
"respondentEmailSubject": {
"html": "<string>",
"mentions": [
{
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"field": {
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"blockGroupUuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"payload": {}
},
"defaultValue": "<unknown>"
}
]
},
"respondentEmailFromName": {
"html": "<string>",
"mentions": [
{
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"field": {
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"blockGroupUuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"payload": {}
},
"defaultValue": "<unknown>"
}
]
},
"respondentEmailBody": {
"html": "<string>",
"mentions": [
{
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"field": {
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"blockGroupUuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"payload": {}
},
"defaultValue": "<unknown>"
}
]
},
"hasProgressBar": false,
"hasPartialSubmissions": false,
"pageAutoJump": false,
"saveForLater": true,
"styles": "<string>",
"password": "<string>",
"submissionsDataRetentionDuration": 1,
"submissionsDataRetentionUnit": "<string>"
}
}
'import requests
url = "https://api.tally.so/forms"
payload = {
"blocks": [
{
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "FORM_TITLE",
"groupUuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"payload": {
"html": "<string>",
"title": "<string>",
"logo": "<string>",
"cover": "<string>",
"coverSettings": { "objectPositionYPercent": 50 },
"mentions": [
{
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"field": {
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"blockGroupUuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"payload": {}
},
"defaultValue": "<unknown>"
}
],
"button": { "label": "<string>" }
}
}
],
"workspaceId": "<string>",
"templateId": "<string>",
"folderId": "<string>",
"settings": {
"language": "<string>",
"isClosed": False,
"closeMessageTitle": "<string>",
"closeMessageDescription": "<string>",
"closeTimezone": "<string>",
"closeDate": "<string>",
"closeTime": "<string>",
"submissionsLimit": 1,
"uniqueSubmissionKey": {
"html": "<string>",
"mentions": [
{
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"field": {
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"blockGroupUuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"payload": {}
},
"defaultValue": "<unknown>"
}
]
},
"redirectOnCompletion": {
"html": "<string>",
"mentions": [
{
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"field": {
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"blockGroupUuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"payload": {}
},
"defaultValue": "<unknown>"
}
]
},
"hasSelfEmailNotifications": False,
"selfEmailTo": {
"html": "<string>",
"mentions": [
{
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"field": {
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"blockGroupUuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"payload": {}
},
"defaultValue": "<unknown>"
}
]
},
"selfEmailReplyTo": {
"html": "<string>",
"mentions": [
{
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"field": {
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"blockGroupUuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"payload": {}
},
"defaultValue": "<unknown>"
}
]
},
"selfEmailSubject": {
"html": "<string>",
"mentions": [
{
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"field": {
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"blockGroupUuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"payload": {}
},
"defaultValue": "<unknown>"
}
]
},
"selfEmailFromName": {
"html": "<string>",
"mentions": [
{
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"field": {
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"blockGroupUuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"payload": {}
},
"defaultValue": "<unknown>"
}
]
},
"selfEmailBody": {
"html": "<string>",
"mentions": [
{
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"field": {
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"blockGroupUuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"payload": {}
},
"defaultValue": "<unknown>"
}
]
},
"hasRespondentEmailNotifications": False,
"respondentEmailTo": {
"html": "<string>",
"mentions": [
{
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"field": {
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"blockGroupUuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"payload": {}
},
"defaultValue": "<unknown>"
}
]
},
"respondentEmailReplyTo": {
"html": "<string>",
"mentions": [
{
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"field": {
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"blockGroupUuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"payload": {}
},
"defaultValue": "<unknown>"
}
]
},
"respondentEmailSubject": {
"html": "<string>",
"mentions": [
{
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"field": {
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"blockGroupUuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"payload": {}
},
"defaultValue": "<unknown>"
}
]
},
"respondentEmailFromName": {
"html": "<string>",
"mentions": [
{
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"field": {
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"blockGroupUuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"payload": {}
},
"defaultValue": "<unknown>"
}
]
},
"respondentEmailBody": {
"html": "<string>",
"mentions": [
{
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"field": {
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"blockGroupUuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"payload": {}
},
"defaultValue": "<unknown>"
}
]
},
"hasProgressBar": False,
"hasPartialSubmissions": False,
"pageAutoJump": False,
"saveForLater": True,
"styles": "<string>",
"password": "<string>",
"submissionsDataRetentionDuration": 1,
"submissionsDataRetentionUnit": "<string>"
}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
blocks: [
{
uuid: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
type: 'FORM_TITLE',
groupUuid: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
payload: {
html: '<string>',
title: '<string>',
logo: '<string>',
cover: '<string>',
coverSettings: {objectPositionYPercent: 50},
mentions: [
{
uuid: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
field: {
uuid: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
blockGroupUuid: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
title: '<string>',
payload: {}
},
defaultValue: '<unknown>'
}
],
button: {label: '<string>'}
}
}
],
workspaceId: '<string>',
templateId: '<string>',
folderId: '<string>',
settings: {
language: '<string>',
isClosed: false,
closeMessageTitle: '<string>',
closeMessageDescription: '<string>',
closeTimezone: '<string>',
closeDate: '<string>',
closeTime: '<string>',
submissionsLimit: 1,
uniqueSubmissionKey: {
html: '<string>',
mentions: [
{
uuid: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
field: {
uuid: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
blockGroupUuid: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
title: '<string>',
payload: {}
},
defaultValue: '<unknown>'
}
]
},
redirectOnCompletion: {
html: '<string>',
mentions: [
{
uuid: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
field: {
uuid: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
blockGroupUuid: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
title: '<string>',
payload: {}
},
defaultValue: '<unknown>'
}
]
},
hasSelfEmailNotifications: false,
selfEmailTo: {
html: '<string>',
mentions: [
{
uuid: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
field: {
uuid: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
blockGroupUuid: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
title: '<string>',
payload: {}
},
defaultValue: '<unknown>'
}
]
},
selfEmailReplyTo: {
html: '<string>',
mentions: [
{
uuid: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
field: {
uuid: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
blockGroupUuid: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
title: '<string>',
payload: {}
},
defaultValue: '<unknown>'
}
]
},
selfEmailSubject: {
html: '<string>',
mentions: [
{
uuid: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
field: {
uuid: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
blockGroupUuid: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
title: '<string>',
payload: {}
},
defaultValue: '<unknown>'
}
]
},
selfEmailFromName: {
html: '<string>',
mentions: [
{
uuid: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
field: {
uuid: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
blockGroupUuid: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
title: '<string>',
payload: {}
},
defaultValue: '<unknown>'
}
]
},
selfEmailBody: {
html: '<string>',
mentions: [
{
uuid: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
field: {
uuid: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
blockGroupUuid: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
title: '<string>',
payload: {}
},
defaultValue: '<unknown>'
}
]
},
hasRespondentEmailNotifications: false,
respondentEmailTo: {
html: '<string>',
mentions: [
{
uuid: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
field: {
uuid: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
blockGroupUuid: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
title: '<string>',
payload: {}
},
defaultValue: '<unknown>'
}
]
},
respondentEmailReplyTo: {
html: '<string>',
mentions: [
{
uuid: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
field: {
uuid: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
blockGroupUuid: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
title: '<string>',
payload: {}
},
defaultValue: '<unknown>'
}
]
},
respondentEmailSubject: {
html: '<string>',
mentions: [
{
uuid: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
field: {
uuid: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
blockGroupUuid: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
title: '<string>',
payload: {}
},
defaultValue: '<unknown>'
}
]
},
respondentEmailFromName: {
html: '<string>',
mentions: [
{
uuid: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
field: {
uuid: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
blockGroupUuid: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
title: '<string>',
payload: {}
},
defaultValue: '<unknown>'
}
]
},
respondentEmailBody: {
html: '<string>',
mentions: [
{
uuid: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
field: {
uuid: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
blockGroupUuid: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
title: '<string>',
payload: {}
},
defaultValue: '<unknown>'
}
]
},
hasProgressBar: false,
hasPartialSubmissions: false,
pageAutoJump: false,
saveForLater: true,
styles: '<string>',
password: '<string>',
submissionsDataRetentionDuration: 1,
submissionsDataRetentionUnit: '<string>'
}
})
};
fetch('https://api.tally.so/forms', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.tally.so/forms",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'blocks' => [
[
'uuid' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'type' => 'FORM_TITLE',
'groupUuid' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'payload' => [
'html' => '<string>',
'title' => '<string>',
'logo' => '<string>',
'cover' => '<string>',
'coverSettings' => [
'objectPositionYPercent' => 50
],
'mentions' => [
[
'uuid' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'field' => [
'uuid' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'blockGroupUuid' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'title' => '<string>',
'payload' => [
]
],
'defaultValue' => '<unknown>'
]
],
'button' => [
'label' => '<string>'
]
]
]
],
'workspaceId' => '<string>',
'templateId' => '<string>',
'folderId' => '<string>',
'settings' => [
'language' => '<string>',
'isClosed' => false,
'closeMessageTitle' => '<string>',
'closeMessageDescription' => '<string>',
'closeTimezone' => '<string>',
'closeDate' => '<string>',
'closeTime' => '<string>',
'submissionsLimit' => 1,
'uniqueSubmissionKey' => [
'html' => '<string>',
'mentions' => [
[
'uuid' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'field' => [
'uuid' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'blockGroupUuid' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'title' => '<string>',
'payload' => [
]
],
'defaultValue' => '<unknown>'
]
]
],
'redirectOnCompletion' => [
'html' => '<string>',
'mentions' => [
[
'uuid' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'field' => [
'uuid' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'blockGroupUuid' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'title' => '<string>',
'payload' => [
]
],
'defaultValue' => '<unknown>'
]
]
],
'hasSelfEmailNotifications' => false,
'selfEmailTo' => [
'html' => '<string>',
'mentions' => [
[
'uuid' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'field' => [
'uuid' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'blockGroupUuid' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'title' => '<string>',
'payload' => [
]
],
'defaultValue' => '<unknown>'
]
]
],
'selfEmailReplyTo' => [
'html' => '<string>',
'mentions' => [
[
'uuid' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'field' => [
'uuid' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'blockGroupUuid' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'title' => '<string>',
'payload' => [
]
],
'defaultValue' => '<unknown>'
]
]
],
'selfEmailSubject' => [
'html' => '<string>',
'mentions' => [
[
'uuid' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'field' => [
'uuid' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'blockGroupUuid' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'title' => '<string>',
'payload' => [
]
],
'defaultValue' => '<unknown>'
]
]
],
'selfEmailFromName' => [
'html' => '<string>',
'mentions' => [
[
'uuid' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'field' => [
'uuid' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'blockGroupUuid' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'title' => '<string>',
'payload' => [
]
],
'defaultValue' => '<unknown>'
]
]
],
'selfEmailBody' => [
'html' => '<string>',
'mentions' => [
[
'uuid' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'field' => [
'uuid' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'blockGroupUuid' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'title' => '<string>',
'payload' => [
]
],
'defaultValue' => '<unknown>'
]
]
],
'hasRespondentEmailNotifications' => false,
'respondentEmailTo' => [
'html' => '<string>',
'mentions' => [
[
'uuid' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'field' => [
'uuid' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'blockGroupUuid' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'title' => '<string>',
'payload' => [
]
],
'defaultValue' => '<unknown>'
]
]
],
'respondentEmailReplyTo' => [
'html' => '<string>',
'mentions' => [
[
'uuid' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'field' => [
'uuid' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'blockGroupUuid' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'title' => '<string>',
'payload' => [
]
],
'defaultValue' => '<unknown>'
]
]
],
'respondentEmailSubject' => [
'html' => '<string>',
'mentions' => [
[
'uuid' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'field' => [
'uuid' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'blockGroupUuid' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'title' => '<string>',
'payload' => [
]
],
'defaultValue' => '<unknown>'
]
]
],
'respondentEmailFromName' => [
'html' => '<string>',
'mentions' => [
[
'uuid' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'field' => [
'uuid' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'blockGroupUuid' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'title' => '<string>',
'payload' => [
]
],
'defaultValue' => '<unknown>'
]
]
],
'respondentEmailBody' => [
'html' => '<string>',
'mentions' => [
[
'uuid' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'field' => [
'uuid' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'blockGroupUuid' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'title' => '<string>',
'payload' => [
]
],
'defaultValue' => '<unknown>'
]
]
],
'hasProgressBar' => false,
'hasPartialSubmissions' => false,
'pageAutoJump' => false,
'saveForLater' => true,
'styles' => '<string>',
'password' => '<string>',
'submissionsDataRetentionDuration' => 1,
'submissionsDataRetentionUnit' => '<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.tally.so/forms"
payload := strings.NewReader("{\n \"blocks\": [\n {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"type\": \"FORM_TITLE\",\n \"groupUuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"payload\": {\n \"html\": \"<string>\",\n \"title\": \"<string>\",\n \"logo\": \"<string>\",\n \"cover\": \"<string>\",\n \"coverSettings\": {\n \"objectPositionYPercent\": 50\n },\n \"mentions\": [\n {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"field\": {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"blockGroupUuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"title\": \"<string>\",\n \"payload\": {}\n },\n \"defaultValue\": \"<unknown>\"\n }\n ],\n \"button\": {\n \"label\": \"<string>\"\n }\n }\n }\n ],\n \"workspaceId\": \"<string>\",\n \"templateId\": \"<string>\",\n \"folderId\": \"<string>\",\n \"settings\": {\n \"language\": \"<string>\",\n \"isClosed\": false,\n \"closeMessageTitle\": \"<string>\",\n \"closeMessageDescription\": \"<string>\",\n \"closeTimezone\": \"<string>\",\n \"closeDate\": \"<string>\",\n \"closeTime\": \"<string>\",\n \"submissionsLimit\": 1,\n \"uniqueSubmissionKey\": {\n \"html\": \"<string>\",\n \"mentions\": [\n {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"field\": {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"blockGroupUuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"title\": \"<string>\",\n \"payload\": {}\n },\n \"defaultValue\": \"<unknown>\"\n }\n ]\n },\n \"redirectOnCompletion\": {\n \"html\": \"<string>\",\n \"mentions\": [\n {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"field\": {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"blockGroupUuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"title\": \"<string>\",\n \"payload\": {}\n },\n \"defaultValue\": \"<unknown>\"\n }\n ]\n },\n \"hasSelfEmailNotifications\": false,\n \"selfEmailTo\": {\n \"html\": \"<string>\",\n \"mentions\": [\n {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"field\": {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"blockGroupUuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"title\": \"<string>\",\n \"payload\": {}\n },\n \"defaultValue\": \"<unknown>\"\n }\n ]\n },\n \"selfEmailReplyTo\": {\n \"html\": \"<string>\",\n \"mentions\": [\n {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"field\": {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"blockGroupUuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"title\": \"<string>\",\n \"payload\": {}\n },\n \"defaultValue\": \"<unknown>\"\n }\n ]\n },\n \"selfEmailSubject\": {\n \"html\": \"<string>\",\n \"mentions\": [\n {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"field\": {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"blockGroupUuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"title\": \"<string>\",\n \"payload\": {}\n },\n \"defaultValue\": \"<unknown>\"\n }\n ]\n },\n \"selfEmailFromName\": {\n \"html\": \"<string>\",\n \"mentions\": [\n {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"field\": {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"blockGroupUuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"title\": \"<string>\",\n \"payload\": {}\n },\n \"defaultValue\": \"<unknown>\"\n }\n ]\n },\n \"selfEmailBody\": {\n \"html\": \"<string>\",\n \"mentions\": [\n {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"field\": {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"blockGroupUuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"title\": \"<string>\",\n \"payload\": {}\n },\n \"defaultValue\": \"<unknown>\"\n }\n ]\n },\n \"hasRespondentEmailNotifications\": false,\n \"respondentEmailTo\": {\n \"html\": \"<string>\",\n \"mentions\": [\n {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"field\": {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"blockGroupUuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"title\": \"<string>\",\n \"payload\": {}\n },\n \"defaultValue\": \"<unknown>\"\n }\n ]\n },\n \"respondentEmailReplyTo\": {\n \"html\": \"<string>\",\n \"mentions\": [\n {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"field\": {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"blockGroupUuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"title\": \"<string>\",\n \"payload\": {}\n },\n \"defaultValue\": \"<unknown>\"\n }\n ]\n },\n \"respondentEmailSubject\": {\n \"html\": \"<string>\",\n \"mentions\": [\n {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"field\": {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"blockGroupUuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"title\": \"<string>\",\n \"payload\": {}\n },\n \"defaultValue\": \"<unknown>\"\n }\n ]\n },\n \"respondentEmailFromName\": {\n \"html\": \"<string>\",\n \"mentions\": [\n {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"field\": {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"blockGroupUuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"title\": \"<string>\",\n \"payload\": {}\n },\n \"defaultValue\": \"<unknown>\"\n }\n ]\n },\n \"respondentEmailBody\": {\n \"html\": \"<string>\",\n \"mentions\": [\n {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"field\": {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"blockGroupUuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"title\": \"<string>\",\n \"payload\": {}\n },\n \"defaultValue\": \"<unknown>\"\n }\n ]\n },\n \"hasProgressBar\": false,\n \"hasPartialSubmissions\": false,\n \"pageAutoJump\": false,\n \"saveForLater\": true,\n \"styles\": \"<string>\",\n \"password\": \"<string>\",\n \"submissionsDataRetentionDuration\": 1,\n \"submissionsDataRetentionUnit\": \"<string>\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.tally.so/forms")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"blocks\": [\n {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"type\": \"FORM_TITLE\",\n \"groupUuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"payload\": {\n \"html\": \"<string>\",\n \"title\": \"<string>\",\n \"logo\": \"<string>\",\n \"cover\": \"<string>\",\n \"coverSettings\": {\n \"objectPositionYPercent\": 50\n },\n \"mentions\": [\n {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"field\": {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"blockGroupUuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"title\": \"<string>\",\n \"payload\": {}\n },\n \"defaultValue\": \"<unknown>\"\n }\n ],\n \"button\": {\n \"label\": \"<string>\"\n }\n }\n }\n ],\n \"workspaceId\": \"<string>\",\n \"templateId\": \"<string>\",\n \"folderId\": \"<string>\",\n \"settings\": {\n \"language\": \"<string>\",\n \"isClosed\": false,\n \"closeMessageTitle\": \"<string>\",\n \"closeMessageDescription\": \"<string>\",\n \"closeTimezone\": \"<string>\",\n \"closeDate\": \"<string>\",\n \"closeTime\": \"<string>\",\n \"submissionsLimit\": 1,\n \"uniqueSubmissionKey\": {\n \"html\": \"<string>\",\n \"mentions\": [\n {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"field\": {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"blockGroupUuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"title\": \"<string>\",\n \"payload\": {}\n },\n \"defaultValue\": \"<unknown>\"\n }\n ]\n },\n \"redirectOnCompletion\": {\n \"html\": \"<string>\",\n \"mentions\": [\n {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"field\": {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"blockGroupUuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"title\": \"<string>\",\n \"payload\": {}\n },\n \"defaultValue\": \"<unknown>\"\n }\n ]\n },\n \"hasSelfEmailNotifications\": false,\n \"selfEmailTo\": {\n \"html\": \"<string>\",\n \"mentions\": [\n {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"field\": {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"blockGroupUuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"title\": \"<string>\",\n \"payload\": {}\n },\n \"defaultValue\": \"<unknown>\"\n }\n ]\n },\n \"selfEmailReplyTo\": {\n \"html\": \"<string>\",\n \"mentions\": [\n {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"field\": {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"blockGroupUuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"title\": \"<string>\",\n \"payload\": {}\n },\n \"defaultValue\": \"<unknown>\"\n }\n ]\n },\n \"selfEmailSubject\": {\n \"html\": \"<string>\",\n \"mentions\": [\n {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"field\": {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"blockGroupUuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"title\": \"<string>\",\n \"payload\": {}\n },\n \"defaultValue\": \"<unknown>\"\n }\n ]\n },\n \"selfEmailFromName\": {\n \"html\": \"<string>\",\n \"mentions\": [\n {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"field\": {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"blockGroupUuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"title\": \"<string>\",\n \"payload\": {}\n },\n \"defaultValue\": \"<unknown>\"\n }\n ]\n },\n \"selfEmailBody\": {\n \"html\": \"<string>\",\n \"mentions\": [\n {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"field\": {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"blockGroupUuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"title\": \"<string>\",\n \"payload\": {}\n },\n \"defaultValue\": \"<unknown>\"\n }\n ]\n },\n \"hasRespondentEmailNotifications\": false,\n \"respondentEmailTo\": {\n \"html\": \"<string>\",\n \"mentions\": [\n {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"field\": {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"blockGroupUuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"title\": \"<string>\",\n \"payload\": {}\n },\n \"defaultValue\": \"<unknown>\"\n }\n ]\n },\n \"respondentEmailReplyTo\": {\n \"html\": \"<string>\",\n \"mentions\": [\n {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"field\": {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"blockGroupUuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"title\": \"<string>\",\n \"payload\": {}\n },\n \"defaultValue\": \"<unknown>\"\n }\n ]\n },\n \"respondentEmailSubject\": {\n \"html\": \"<string>\",\n \"mentions\": [\n {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"field\": {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"blockGroupUuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"title\": \"<string>\",\n \"payload\": {}\n },\n \"defaultValue\": \"<unknown>\"\n }\n ]\n },\n \"respondentEmailFromName\": {\n \"html\": \"<string>\",\n \"mentions\": [\n {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"field\": {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"blockGroupUuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"title\": \"<string>\",\n \"payload\": {}\n },\n \"defaultValue\": \"<unknown>\"\n }\n ]\n },\n \"respondentEmailBody\": {\n \"html\": \"<string>\",\n \"mentions\": [\n {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"field\": {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"blockGroupUuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"title\": \"<string>\",\n \"payload\": {}\n },\n \"defaultValue\": \"<unknown>\"\n }\n ]\n },\n \"hasProgressBar\": false,\n \"hasPartialSubmissions\": false,\n \"pageAutoJump\": false,\n \"saveForLater\": true,\n \"styles\": \"<string>\",\n \"password\": \"<string>\",\n \"submissionsDataRetentionDuration\": 1,\n \"submissionsDataRetentionUnit\": \"<string>\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.tally.so/forms")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"blocks\": [\n {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"type\": \"FORM_TITLE\",\n \"groupUuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"payload\": {\n \"html\": \"<string>\",\n \"title\": \"<string>\",\n \"logo\": \"<string>\",\n \"cover\": \"<string>\",\n \"coverSettings\": {\n \"objectPositionYPercent\": 50\n },\n \"mentions\": [\n {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"field\": {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"blockGroupUuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"title\": \"<string>\",\n \"payload\": {}\n },\n \"defaultValue\": \"<unknown>\"\n }\n ],\n \"button\": {\n \"label\": \"<string>\"\n }\n }\n }\n ],\n \"workspaceId\": \"<string>\",\n \"templateId\": \"<string>\",\n \"folderId\": \"<string>\",\n \"settings\": {\n \"language\": \"<string>\",\n \"isClosed\": false,\n \"closeMessageTitle\": \"<string>\",\n \"closeMessageDescription\": \"<string>\",\n \"closeTimezone\": \"<string>\",\n \"closeDate\": \"<string>\",\n \"closeTime\": \"<string>\",\n \"submissionsLimit\": 1,\n \"uniqueSubmissionKey\": {\n \"html\": \"<string>\",\n \"mentions\": [\n {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"field\": {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"blockGroupUuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"title\": \"<string>\",\n \"payload\": {}\n },\n \"defaultValue\": \"<unknown>\"\n }\n ]\n },\n \"redirectOnCompletion\": {\n \"html\": \"<string>\",\n \"mentions\": [\n {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"field\": {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"blockGroupUuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"title\": \"<string>\",\n \"payload\": {}\n },\n \"defaultValue\": \"<unknown>\"\n }\n ]\n },\n \"hasSelfEmailNotifications\": false,\n \"selfEmailTo\": {\n \"html\": \"<string>\",\n \"mentions\": [\n {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"field\": {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"blockGroupUuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"title\": \"<string>\",\n \"payload\": {}\n },\n \"defaultValue\": \"<unknown>\"\n }\n ]\n },\n \"selfEmailReplyTo\": {\n \"html\": \"<string>\",\n \"mentions\": [\n {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"field\": {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"blockGroupUuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"title\": \"<string>\",\n \"payload\": {}\n },\n \"defaultValue\": \"<unknown>\"\n }\n ]\n },\n \"selfEmailSubject\": {\n \"html\": \"<string>\",\n \"mentions\": [\n {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"field\": {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"blockGroupUuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"title\": \"<string>\",\n \"payload\": {}\n },\n \"defaultValue\": \"<unknown>\"\n }\n ]\n },\n \"selfEmailFromName\": {\n \"html\": \"<string>\",\n \"mentions\": [\n {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"field\": {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"blockGroupUuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"title\": \"<string>\",\n \"payload\": {}\n },\n \"defaultValue\": \"<unknown>\"\n }\n ]\n },\n \"selfEmailBody\": {\n \"html\": \"<string>\",\n \"mentions\": [\n {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"field\": {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"blockGroupUuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"title\": \"<string>\",\n \"payload\": {}\n },\n \"defaultValue\": \"<unknown>\"\n }\n ]\n },\n \"hasRespondentEmailNotifications\": false,\n \"respondentEmailTo\": {\n \"html\": \"<string>\",\n \"mentions\": [\n {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"field\": {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"blockGroupUuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"title\": \"<string>\",\n \"payload\": {}\n },\n \"defaultValue\": \"<unknown>\"\n }\n ]\n },\n \"respondentEmailReplyTo\": {\n \"html\": \"<string>\",\n \"mentions\": [\n {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"field\": {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"blockGroupUuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"title\": \"<string>\",\n \"payload\": {}\n },\n \"defaultValue\": \"<unknown>\"\n }\n ]\n },\n \"respondentEmailSubject\": {\n \"html\": \"<string>\",\n \"mentions\": [\n {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"field\": {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"blockGroupUuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"title\": \"<string>\",\n \"payload\": {}\n },\n \"defaultValue\": \"<unknown>\"\n }\n ]\n },\n \"respondentEmailFromName\": {\n \"html\": \"<string>\",\n \"mentions\": [\n {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"field\": {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"blockGroupUuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"title\": \"<string>\",\n \"payload\": {}\n },\n \"defaultValue\": \"<unknown>\"\n }\n ]\n },\n \"respondentEmailBody\": {\n \"html\": \"<string>\",\n \"mentions\": [\n {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"field\": {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"blockGroupUuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"title\": \"<string>\",\n \"payload\": {}\n },\n \"defaultValue\": \"<unknown>\"\n }\n ]\n },\n \"hasProgressBar\": false,\n \"hasPartialSubmissions\": false,\n \"pageAutoJump\": false,\n \"saveForLater\": true,\n \"styles\": \"<string>\",\n \"password\": \"<string>\",\n \"submissionsDataRetentionDuration\": 1,\n \"submissionsDataRetentionUnit\": \"<string>\"\n }\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"name": "<string>",
"workspaceId": "<string>",
"numberOfSubmissions": 123,
"isClosed": true,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"payments": [
{
"amount": 123,
"currency": "<string>"
}
]
}Forms
Creating forms
Creates a new form, optionally based on a template or within a specific workspace.
POST
/
forms
Create a new form
curl --request POST \
--url https://api.tally.so/forms \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"blocks": [
{
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "FORM_TITLE",
"groupUuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"payload": {
"html": "<string>",
"title": "<string>",
"logo": "<string>",
"cover": "<string>",
"coverSettings": {
"objectPositionYPercent": 50
},
"mentions": [
{
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"field": {
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"blockGroupUuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"payload": {}
},
"defaultValue": "<unknown>"
}
],
"button": {
"label": "<string>"
}
}
}
],
"workspaceId": "<string>",
"templateId": "<string>",
"folderId": "<string>",
"settings": {
"language": "<string>",
"isClosed": false,
"closeMessageTitle": "<string>",
"closeMessageDescription": "<string>",
"closeTimezone": "<string>",
"closeDate": "<string>",
"closeTime": "<string>",
"submissionsLimit": 1,
"uniqueSubmissionKey": {
"html": "<string>",
"mentions": [
{
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"field": {
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"blockGroupUuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"payload": {}
},
"defaultValue": "<unknown>"
}
]
},
"redirectOnCompletion": {
"html": "<string>",
"mentions": [
{
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"field": {
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"blockGroupUuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"payload": {}
},
"defaultValue": "<unknown>"
}
]
},
"hasSelfEmailNotifications": false,
"selfEmailTo": {
"html": "<string>",
"mentions": [
{
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"field": {
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"blockGroupUuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"payload": {}
},
"defaultValue": "<unknown>"
}
]
},
"selfEmailReplyTo": {
"html": "<string>",
"mentions": [
{
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"field": {
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"blockGroupUuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"payload": {}
},
"defaultValue": "<unknown>"
}
]
},
"selfEmailSubject": {
"html": "<string>",
"mentions": [
{
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"field": {
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"blockGroupUuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"payload": {}
},
"defaultValue": "<unknown>"
}
]
},
"selfEmailFromName": {
"html": "<string>",
"mentions": [
{
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"field": {
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"blockGroupUuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"payload": {}
},
"defaultValue": "<unknown>"
}
]
},
"selfEmailBody": {
"html": "<string>",
"mentions": [
{
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"field": {
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"blockGroupUuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"payload": {}
},
"defaultValue": "<unknown>"
}
]
},
"hasRespondentEmailNotifications": false,
"respondentEmailTo": {
"html": "<string>",
"mentions": [
{
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"field": {
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"blockGroupUuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"payload": {}
},
"defaultValue": "<unknown>"
}
]
},
"respondentEmailReplyTo": {
"html": "<string>",
"mentions": [
{
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"field": {
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"blockGroupUuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"payload": {}
},
"defaultValue": "<unknown>"
}
]
},
"respondentEmailSubject": {
"html": "<string>",
"mentions": [
{
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"field": {
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"blockGroupUuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"payload": {}
},
"defaultValue": "<unknown>"
}
]
},
"respondentEmailFromName": {
"html": "<string>",
"mentions": [
{
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"field": {
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"blockGroupUuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"payload": {}
},
"defaultValue": "<unknown>"
}
]
},
"respondentEmailBody": {
"html": "<string>",
"mentions": [
{
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"field": {
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"blockGroupUuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"payload": {}
},
"defaultValue": "<unknown>"
}
]
},
"hasProgressBar": false,
"hasPartialSubmissions": false,
"pageAutoJump": false,
"saveForLater": true,
"styles": "<string>",
"password": "<string>",
"submissionsDataRetentionDuration": 1,
"submissionsDataRetentionUnit": "<string>"
}
}
'import requests
url = "https://api.tally.so/forms"
payload = {
"blocks": [
{
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "FORM_TITLE",
"groupUuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"payload": {
"html": "<string>",
"title": "<string>",
"logo": "<string>",
"cover": "<string>",
"coverSettings": { "objectPositionYPercent": 50 },
"mentions": [
{
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"field": {
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"blockGroupUuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"payload": {}
},
"defaultValue": "<unknown>"
}
],
"button": { "label": "<string>" }
}
}
],
"workspaceId": "<string>",
"templateId": "<string>",
"folderId": "<string>",
"settings": {
"language": "<string>",
"isClosed": False,
"closeMessageTitle": "<string>",
"closeMessageDescription": "<string>",
"closeTimezone": "<string>",
"closeDate": "<string>",
"closeTime": "<string>",
"submissionsLimit": 1,
"uniqueSubmissionKey": {
"html": "<string>",
"mentions": [
{
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"field": {
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"blockGroupUuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"payload": {}
},
"defaultValue": "<unknown>"
}
]
},
"redirectOnCompletion": {
"html": "<string>",
"mentions": [
{
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"field": {
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"blockGroupUuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"payload": {}
},
"defaultValue": "<unknown>"
}
]
},
"hasSelfEmailNotifications": False,
"selfEmailTo": {
"html": "<string>",
"mentions": [
{
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"field": {
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"blockGroupUuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"payload": {}
},
"defaultValue": "<unknown>"
}
]
},
"selfEmailReplyTo": {
"html": "<string>",
"mentions": [
{
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"field": {
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"blockGroupUuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"payload": {}
},
"defaultValue": "<unknown>"
}
]
},
"selfEmailSubject": {
"html": "<string>",
"mentions": [
{
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"field": {
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"blockGroupUuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"payload": {}
},
"defaultValue": "<unknown>"
}
]
},
"selfEmailFromName": {
"html": "<string>",
"mentions": [
{
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"field": {
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"blockGroupUuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"payload": {}
},
"defaultValue": "<unknown>"
}
]
},
"selfEmailBody": {
"html": "<string>",
"mentions": [
{
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"field": {
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"blockGroupUuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"payload": {}
},
"defaultValue": "<unknown>"
}
]
},
"hasRespondentEmailNotifications": False,
"respondentEmailTo": {
"html": "<string>",
"mentions": [
{
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"field": {
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"blockGroupUuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"payload": {}
},
"defaultValue": "<unknown>"
}
]
},
"respondentEmailReplyTo": {
"html": "<string>",
"mentions": [
{
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"field": {
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"blockGroupUuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"payload": {}
},
"defaultValue": "<unknown>"
}
]
},
"respondentEmailSubject": {
"html": "<string>",
"mentions": [
{
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"field": {
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"blockGroupUuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"payload": {}
},
"defaultValue": "<unknown>"
}
]
},
"respondentEmailFromName": {
"html": "<string>",
"mentions": [
{
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"field": {
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"blockGroupUuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"payload": {}
},
"defaultValue": "<unknown>"
}
]
},
"respondentEmailBody": {
"html": "<string>",
"mentions": [
{
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"field": {
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"blockGroupUuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"payload": {}
},
"defaultValue": "<unknown>"
}
]
},
"hasProgressBar": False,
"hasPartialSubmissions": False,
"pageAutoJump": False,
"saveForLater": True,
"styles": "<string>",
"password": "<string>",
"submissionsDataRetentionDuration": 1,
"submissionsDataRetentionUnit": "<string>"
}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
blocks: [
{
uuid: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
type: 'FORM_TITLE',
groupUuid: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
payload: {
html: '<string>',
title: '<string>',
logo: '<string>',
cover: '<string>',
coverSettings: {objectPositionYPercent: 50},
mentions: [
{
uuid: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
field: {
uuid: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
blockGroupUuid: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
title: '<string>',
payload: {}
},
defaultValue: '<unknown>'
}
],
button: {label: '<string>'}
}
}
],
workspaceId: '<string>',
templateId: '<string>',
folderId: '<string>',
settings: {
language: '<string>',
isClosed: false,
closeMessageTitle: '<string>',
closeMessageDescription: '<string>',
closeTimezone: '<string>',
closeDate: '<string>',
closeTime: '<string>',
submissionsLimit: 1,
uniqueSubmissionKey: {
html: '<string>',
mentions: [
{
uuid: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
field: {
uuid: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
blockGroupUuid: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
title: '<string>',
payload: {}
},
defaultValue: '<unknown>'
}
]
},
redirectOnCompletion: {
html: '<string>',
mentions: [
{
uuid: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
field: {
uuid: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
blockGroupUuid: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
title: '<string>',
payload: {}
},
defaultValue: '<unknown>'
}
]
},
hasSelfEmailNotifications: false,
selfEmailTo: {
html: '<string>',
mentions: [
{
uuid: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
field: {
uuid: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
blockGroupUuid: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
title: '<string>',
payload: {}
},
defaultValue: '<unknown>'
}
]
},
selfEmailReplyTo: {
html: '<string>',
mentions: [
{
uuid: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
field: {
uuid: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
blockGroupUuid: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
title: '<string>',
payload: {}
},
defaultValue: '<unknown>'
}
]
},
selfEmailSubject: {
html: '<string>',
mentions: [
{
uuid: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
field: {
uuid: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
blockGroupUuid: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
title: '<string>',
payload: {}
},
defaultValue: '<unknown>'
}
]
},
selfEmailFromName: {
html: '<string>',
mentions: [
{
uuid: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
field: {
uuid: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
blockGroupUuid: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
title: '<string>',
payload: {}
},
defaultValue: '<unknown>'
}
]
},
selfEmailBody: {
html: '<string>',
mentions: [
{
uuid: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
field: {
uuid: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
blockGroupUuid: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
title: '<string>',
payload: {}
},
defaultValue: '<unknown>'
}
]
},
hasRespondentEmailNotifications: false,
respondentEmailTo: {
html: '<string>',
mentions: [
{
uuid: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
field: {
uuid: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
blockGroupUuid: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
title: '<string>',
payload: {}
},
defaultValue: '<unknown>'
}
]
},
respondentEmailReplyTo: {
html: '<string>',
mentions: [
{
uuid: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
field: {
uuid: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
blockGroupUuid: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
title: '<string>',
payload: {}
},
defaultValue: '<unknown>'
}
]
},
respondentEmailSubject: {
html: '<string>',
mentions: [
{
uuid: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
field: {
uuid: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
blockGroupUuid: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
title: '<string>',
payload: {}
},
defaultValue: '<unknown>'
}
]
},
respondentEmailFromName: {
html: '<string>',
mentions: [
{
uuid: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
field: {
uuid: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
blockGroupUuid: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
title: '<string>',
payload: {}
},
defaultValue: '<unknown>'
}
]
},
respondentEmailBody: {
html: '<string>',
mentions: [
{
uuid: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
field: {
uuid: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
blockGroupUuid: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
title: '<string>',
payload: {}
},
defaultValue: '<unknown>'
}
]
},
hasProgressBar: false,
hasPartialSubmissions: false,
pageAutoJump: false,
saveForLater: true,
styles: '<string>',
password: '<string>',
submissionsDataRetentionDuration: 1,
submissionsDataRetentionUnit: '<string>'
}
})
};
fetch('https://api.tally.so/forms', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.tally.so/forms",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'blocks' => [
[
'uuid' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'type' => 'FORM_TITLE',
'groupUuid' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'payload' => [
'html' => '<string>',
'title' => '<string>',
'logo' => '<string>',
'cover' => '<string>',
'coverSettings' => [
'objectPositionYPercent' => 50
],
'mentions' => [
[
'uuid' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'field' => [
'uuid' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'blockGroupUuid' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'title' => '<string>',
'payload' => [
]
],
'defaultValue' => '<unknown>'
]
],
'button' => [
'label' => '<string>'
]
]
]
],
'workspaceId' => '<string>',
'templateId' => '<string>',
'folderId' => '<string>',
'settings' => [
'language' => '<string>',
'isClosed' => false,
'closeMessageTitle' => '<string>',
'closeMessageDescription' => '<string>',
'closeTimezone' => '<string>',
'closeDate' => '<string>',
'closeTime' => '<string>',
'submissionsLimit' => 1,
'uniqueSubmissionKey' => [
'html' => '<string>',
'mentions' => [
[
'uuid' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'field' => [
'uuid' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'blockGroupUuid' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'title' => '<string>',
'payload' => [
]
],
'defaultValue' => '<unknown>'
]
]
],
'redirectOnCompletion' => [
'html' => '<string>',
'mentions' => [
[
'uuid' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'field' => [
'uuid' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'blockGroupUuid' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'title' => '<string>',
'payload' => [
]
],
'defaultValue' => '<unknown>'
]
]
],
'hasSelfEmailNotifications' => false,
'selfEmailTo' => [
'html' => '<string>',
'mentions' => [
[
'uuid' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'field' => [
'uuid' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'blockGroupUuid' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'title' => '<string>',
'payload' => [
]
],
'defaultValue' => '<unknown>'
]
]
],
'selfEmailReplyTo' => [
'html' => '<string>',
'mentions' => [
[
'uuid' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'field' => [
'uuid' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'blockGroupUuid' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'title' => '<string>',
'payload' => [
]
],
'defaultValue' => '<unknown>'
]
]
],
'selfEmailSubject' => [
'html' => '<string>',
'mentions' => [
[
'uuid' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'field' => [
'uuid' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'blockGroupUuid' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'title' => '<string>',
'payload' => [
]
],
'defaultValue' => '<unknown>'
]
]
],
'selfEmailFromName' => [
'html' => '<string>',
'mentions' => [
[
'uuid' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'field' => [
'uuid' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'blockGroupUuid' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'title' => '<string>',
'payload' => [
]
],
'defaultValue' => '<unknown>'
]
]
],
'selfEmailBody' => [
'html' => '<string>',
'mentions' => [
[
'uuid' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'field' => [
'uuid' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'blockGroupUuid' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'title' => '<string>',
'payload' => [
]
],
'defaultValue' => '<unknown>'
]
]
],
'hasRespondentEmailNotifications' => false,
'respondentEmailTo' => [
'html' => '<string>',
'mentions' => [
[
'uuid' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'field' => [
'uuid' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'blockGroupUuid' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'title' => '<string>',
'payload' => [
]
],
'defaultValue' => '<unknown>'
]
]
],
'respondentEmailReplyTo' => [
'html' => '<string>',
'mentions' => [
[
'uuid' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'field' => [
'uuid' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'blockGroupUuid' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'title' => '<string>',
'payload' => [
]
],
'defaultValue' => '<unknown>'
]
]
],
'respondentEmailSubject' => [
'html' => '<string>',
'mentions' => [
[
'uuid' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'field' => [
'uuid' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'blockGroupUuid' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'title' => '<string>',
'payload' => [
]
],
'defaultValue' => '<unknown>'
]
]
],
'respondentEmailFromName' => [
'html' => '<string>',
'mentions' => [
[
'uuid' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'field' => [
'uuid' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'blockGroupUuid' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'title' => '<string>',
'payload' => [
]
],
'defaultValue' => '<unknown>'
]
]
],
'respondentEmailBody' => [
'html' => '<string>',
'mentions' => [
[
'uuid' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'field' => [
'uuid' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'blockGroupUuid' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'title' => '<string>',
'payload' => [
]
],
'defaultValue' => '<unknown>'
]
]
],
'hasProgressBar' => false,
'hasPartialSubmissions' => false,
'pageAutoJump' => false,
'saveForLater' => true,
'styles' => '<string>',
'password' => '<string>',
'submissionsDataRetentionDuration' => 1,
'submissionsDataRetentionUnit' => '<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.tally.so/forms"
payload := strings.NewReader("{\n \"blocks\": [\n {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"type\": \"FORM_TITLE\",\n \"groupUuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"payload\": {\n \"html\": \"<string>\",\n \"title\": \"<string>\",\n \"logo\": \"<string>\",\n \"cover\": \"<string>\",\n \"coverSettings\": {\n \"objectPositionYPercent\": 50\n },\n \"mentions\": [\n {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"field\": {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"blockGroupUuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"title\": \"<string>\",\n \"payload\": {}\n },\n \"defaultValue\": \"<unknown>\"\n }\n ],\n \"button\": {\n \"label\": \"<string>\"\n }\n }\n }\n ],\n \"workspaceId\": \"<string>\",\n \"templateId\": \"<string>\",\n \"folderId\": \"<string>\",\n \"settings\": {\n \"language\": \"<string>\",\n \"isClosed\": false,\n \"closeMessageTitle\": \"<string>\",\n \"closeMessageDescription\": \"<string>\",\n \"closeTimezone\": \"<string>\",\n \"closeDate\": \"<string>\",\n \"closeTime\": \"<string>\",\n \"submissionsLimit\": 1,\n \"uniqueSubmissionKey\": {\n \"html\": \"<string>\",\n \"mentions\": [\n {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"field\": {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"blockGroupUuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"title\": \"<string>\",\n \"payload\": {}\n },\n \"defaultValue\": \"<unknown>\"\n }\n ]\n },\n \"redirectOnCompletion\": {\n \"html\": \"<string>\",\n \"mentions\": [\n {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"field\": {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"blockGroupUuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"title\": \"<string>\",\n \"payload\": {}\n },\n \"defaultValue\": \"<unknown>\"\n }\n ]\n },\n \"hasSelfEmailNotifications\": false,\n \"selfEmailTo\": {\n \"html\": \"<string>\",\n \"mentions\": [\n {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"field\": {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"blockGroupUuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"title\": \"<string>\",\n \"payload\": {}\n },\n \"defaultValue\": \"<unknown>\"\n }\n ]\n },\n \"selfEmailReplyTo\": {\n \"html\": \"<string>\",\n \"mentions\": [\n {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"field\": {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"blockGroupUuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"title\": \"<string>\",\n \"payload\": {}\n },\n \"defaultValue\": \"<unknown>\"\n }\n ]\n },\n \"selfEmailSubject\": {\n \"html\": \"<string>\",\n \"mentions\": [\n {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"field\": {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"blockGroupUuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"title\": \"<string>\",\n \"payload\": {}\n },\n \"defaultValue\": \"<unknown>\"\n }\n ]\n },\n \"selfEmailFromName\": {\n \"html\": \"<string>\",\n \"mentions\": [\n {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"field\": {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"blockGroupUuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"title\": \"<string>\",\n \"payload\": {}\n },\n \"defaultValue\": \"<unknown>\"\n }\n ]\n },\n \"selfEmailBody\": {\n \"html\": \"<string>\",\n \"mentions\": [\n {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"field\": {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"blockGroupUuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"title\": \"<string>\",\n \"payload\": {}\n },\n \"defaultValue\": \"<unknown>\"\n }\n ]\n },\n \"hasRespondentEmailNotifications\": false,\n \"respondentEmailTo\": {\n \"html\": \"<string>\",\n \"mentions\": [\n {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"field\": {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"blockGroupUuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"title\": \"<string>\",\n \"payload\": {}\n },\n \"defaultValue\": \"<unknown>\"\n }\n ]\n },\n \"respondentEmailReplyTo\": {\n \"html\": \"<string>\",\n \"mentions\": [\n {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"field\": {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"blockGroupUuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"title\": \"<string>\",\n \"payload\": {}\n },\n \"defaultValue\": \"<unknown>\"\n }\n ]\n },\n \"respondentEmailSubject\": {\n \"html\": \"<string>\",\n \"mentions\": [\n {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"field\": {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"blockGroupUuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"title\": \"<string>\",\n \"payload\": {}\n },\n \"defaultValue\": \"<unknown>\"\n }\n ]\n },\n \"respondentEmailFromName\": {\n \"html\": \"<string>\",\n \"mentions\": [\n {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"field\": {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"blockGroupUuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"title\": \"<string>\",\n \"payload\": {}\n },\n \"defaultValue\": \"<unknown>\"\n }\n ]\n },\n \"respondentEmailBody\": {\n \"html\": \"<string>\",\n \"mentions\": [\n {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"field\": {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"blockGroupUuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"title\": \"<string>\",\n \"payload\": {}\n },\n \"defaultValue\": \"<unknown>\"\n }\n ]\n },\n \"hasProgressBar\": false,\n \"hasPartialSubmissions\": false,\n \"pageAutoJump\": false,\n \"saveForLater\": true,\n \"styles\": \"<string>\",\n \"password\": \"<string>\",\n \"submissionsDataRetentionDuration\": 1,\n \"submissionsDataRetentionUnit\": \"<string>\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.tally.so/forms")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"blocks\": [\n {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"type\": \"FORM_TITLE\",\n \"groupUuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"payload\": {\n \"html\": \"<string>\",\n \"title\": \"<string>\",\n \"logo\": \"<string>\",\n \"cover\": \"<string>\",\n \"coverSettings\": {\n \"objectPositionYPercent\": 50\n },\n \"mentions\": [\n {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"field\": {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"blockGroupUuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"title\": \"<string>\",\n \"payload\": {}\n },\n \"defaultValue\": \"<unknown>\"\n }\n ],\n \"button\": {\n \"label\": \"<string>\"\n }\n }\n }\n ],\n \"workspaceId\": \"<string>\",\n \"templateId\": \"<string>\",\n \"folderId\": \"<string>\",\n \"settings\": {\n \"language\": \"<string>\",\n \"isClosed\": false,\n \"closeMessageTitle\": \"<string>\",\n \"closeMessageDescription\": \"<string>\",\n \"closeTimezone\": \"<string>\",\n \"closeDate\": \"<string>\",\n \"closeTime\": \"<string>\",\n \"submissionsLimit\": 1,\n \"uniqueSubmissionKey\": {\n \"html\": \"<string>\",\n \"mentions\": [\n {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"field\": {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"blockGroupUuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"title\": \"<string>\",\n \"payload\": {}\n },\n \"defaultValue\": \"<unknown>\"\n }\n ]\n },\n \"redirectOnCompletion\": {\n \"html\": \"<string>\",\n \"mentions\": [\n {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"field\": {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"blockGroupUuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"title\": \"<string>\",\n \"payload\": {}\n },\n \"defaultValue\": \"<unknown>\"\n }\n ]\n },\n \"hasSelfEmailNotifications\": false,\n \"selfEmailTo\": {\n \"html\": \"<string>\",\n \"mentions\": [\n {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"field\": {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"blockGroupUuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"title\": \"<string>\",\n \"payload\": {}\n },\n \"defaultValue\": \"<unknown>\"\n }\n ]\n },\n \"selfEmailReplyTo\": {\n \"html\": \"<string>\",\n \"mentions\": [\n {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"field\": {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"blockGroupUuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"title\": \"<string>\",\n \"payload\": {}\n },\n \"defaultValue\": \"<unknown>\"\n }\n ]\n },\n \"selfEmailSubject\": {\n \"html\": \"<string>\",\n \"mentions\": [\n {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"field\": {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"blockGroupUuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"title\": \"<string>\",\n \"payload\": {}\n },\n \"defaultValue\": \"<unknown>\"\n }\n ]\n },\n \"selfEmailFromName\": {\n \"html\": \"<string>\",\n \"mentions\": [\n {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"field\": {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"blockGroupUuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"title\": \"<string>\",\n \"payload\": {}\n },\n \"defaultValue\": \"<unknown>\"\n }\n ]\n },\n \"selfEmailBody\": {\n \"html\": \"<string>\",\n \"mentions\": [\n {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"field\": {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"blockGroupUuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"title\": \"<string>\",\n \"payload\": {}\n },\n \"defaultValue\": \"<unknown>\"\n }\n ]\n },\n \"hasRespondentEmailNotifications\": false,\n \"respondentEmailTo\": {\n \"html\": \"<string>\",\n \"mentions\": [\n {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"field\": {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"blockGroupUuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"title\": \"<string>\",\n \"payload\": {}\n },\n \"defaultValue\": \"<unknown>\"\n }\n ]\n },\n \"respondentEmailReplyTo\": {\n \"html\": \"<string>\",\n \"mentions\": [\n {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"field\": {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"blockGroupUuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"title\": \"<string>\",\n \"payload\": {}\n },\n \"defaultValue\": \"<unknown>\"\n }\n ]\n },\n \"respondentEmailSubject\": {\n \"html\": \"<string>\",\n \"mentions\": [\n {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"field\": {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"blockGroupUuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"title\": \"<string>\",\n \"payload\": {}\n },\n \"defaultValue\": \"<unknown>\"\n }\n ]\n },\n \"respondentEmailFromName\": {\n \"html\": \"<string>\",\n \"mentions\": [\n {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"field\": {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"blockGroupUuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"title\": \"<string>\",\n \"payload\": {}\n },\n \"defaultValue\": \"<unknown>\"\n }\n ]\n },\n \"respondentEmailBody\": {\n \"html\": \"<string>\",\n \"mentions\": [\n {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"field\": {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"blockGroupUuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"title\": \"<string>\",\n \"payload\": {}\n },\n \"defaultValue\": \"<unknown>\"\n }\n ]\n },\n \"hasProgressBar\": false,\n \"hasPartialSubmissions\": false,\n \"pageAutoJump\": false,\n \"saveForLater\": true,\n \"styles\": \"<string>\",\n \"password\": \"<string>\",\n \"submissionsDataRetentionDuration\": 1,\n \"submissionsDataRetentionUnit\": \"<string>\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.tally.so/forms")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"blocks\": [\n {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"type\": \"FORM_TITLE\",\n \"groupUuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"payload\": {\n \"html\": \"<string>\",\n \"title\": \"<string>\",\n \"logo\": \"<string>\",\n \"cover\": \"<string>\",\n \"coverSettings\": {\n \"objectPositionYPercent\": 50\n },\n \"mentions\": [\n {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"field\": {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"blockGroupUuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"title\": \"<string>\",\n \"payload\": {}\n },\n \"defaultValue\": \"<unknown>\"\n }\n ],\n \"button\": {\n \"label\": \"<string>\"\n }\n }\n }\n ],\n \"workspaceId\": \"<string>\",\n \"templateId\": \"<string>\",\n \"folderId\": \"<string>\",\n \"settings\": {\n \"language\": \"<string>\",\n \"isClosed\": false,\n \"closeMessageTitle\": \"<string>\",\n \"closeMessageDescription\": \"<string>\",\n \"closeTimezone\": \"<string>\",\n \"closeDate\": \"<string>\",\n \"closeTime\": \"<string>\",\n \"submissionsLimit\": 1,\n \"uniqueSubmissionKey\": {\n \"html\": \"<string>\",\n \"mentions\": [\n {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"field\": {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"blockGroupUuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"title\": \"<string>\",\n \"payload\": {}\n },\n \"defaultValue\": \"<unknown>\"\n }\n ]\n },\n \"redirectOnCompletion\": {\n \"html\": \"<string>\",\n \"mentions\": [\n {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"field\": {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"blockGroupUuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"title\": \"<string>\",\n \"payload\": {}\n },\n \"defaultValue\": \"<unknown>\"\n }\n ]\n },\n \"hasSelfEmailNotifications\": false,\n \"selfEmailTo\": {\n \"html\": \"<string>\",\n \"mentions\": [\n {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"field\": {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"blockGroupUuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"title\": \"<string>\",\n \"payload\": {}\n },\n \"defaultValue\": \"<unknown>\"\n }\n ]\n },\n \"selfEmailReplyTo\": {\n \"html\": \"<string>\",\n \"mentions\": [\n {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"field\": {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"blockGroupUuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"title\": \"<string>\",\n \"payload\": {}\n },\n \"defaultValue\": \"<unknown>\"\n }\n ]\n },\n \"selfEmailSubject\": {\n \"html\": \"<string>\",\n \"mentions\": [\n {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"field\": {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"blockGroupUuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"title\": \"<string>\",\n \"payload\": {}\n },\n \"defaultValue\": \"<unknown>\"\n }\n ]\n },\n \"selfEmailFromName\": {\n \"html\": \"<string>\",\n \"mentions\": [\n {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"field\": {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"blockGroupUuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"title\": \"<string>\",\n \"payload\": {}\n },\n \"defaultValue\": \"<unknown>\"\n }\n ]\n },\n \"selfEmailBody\": {\n \"html\": \"<string>\",\n \"mentions\": [\n {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"field\": {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"blockGroupUuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"title\": \"<string>\",\n \"payload\": {}\n },\n \"defaultValue\": \"<unknown>\"\n }\n ]\n },\n \"hasRespondentEmailNotifications\": false,\n \"respondentEmailTo\": {\n \"html\": \"<string>\",\n \"mentions\": [\n {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"field\": {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"blockGroupUuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"title\": \"<string>\",\n \"payload\": {}\n },\n \"defaultValue\": \"<unknown>\"\n }\n ]\n },\n \"respondentEmailReplyTo\": {\n \"html\": \"<string>\",\n \"mentions\": [\n {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"field\": {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"blockGroupUuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"title\": \"<string>\",\n \"payload\": {}\n },\n \"defaultValue\": \"<unknown>\"\n }\n ]\n },\n \"respondentEmailSubject\": {\n \"html\": \"<string>\",\n \"mentions\": [\n {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"field\": {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"blockGroupUuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"title\": \"<string>\",\n \"payload\": {}\n },\n \"defaultValue\": \"<unknown>\"\n }\n ]\n },\n \"respondentEmailFromName\": {\n \"html\": \"<string>\",\n \"mentions\": [\n {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"field\": {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"blockGroupUuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"title\": \"<string>\",\n \"payload\": {}\n },\n \"defaultValue\": \"<unknown>\"\n }\n ]\n },\n \"respondentEmailBody\": {\n \"html\": \"<string>\",\n \"mentions\": [\n {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"field\": {\n \"uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"blockGroupUuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"title\": \"<string>\",\n \"payload\": {}\n },\n \"defaultValue\": \"<unknown>\"\n }\n ]\n },\n \"hasProgressBar\": false,\n \"hasPartialSubmissions\": false,\n \"pageAutoJump\": false,\n \"saveForLater\": true,\n \"styles\": \"<string>\",\n \"password\": \"<string>\",\n \"submissionsDataRetentionDuration\": 1,\n \"submissionsDataRetentionUnit\": \"<string>\"\n }\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"name": "<string>",
"workspaceId": "<string>",
"numberOfSubmissions": 123,
"isClosed": true,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"payments": [
{
"amount": 123,
"currency": "<string>"
}
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
Initial status of the form
Available options:
BLANK, DRAFT, PUBLISHED, DELETED blocks
(FormTitleBlock · object | TitleBlock · object | TextBlock · object | LabelBlock · object | Heading1Block · object | Heading2Block · object | Heading3Block · object | ImageBlock · object | EmbedBlock · object | EmbedVideoBlock · object | EmbedAudioBlock · object | DividerBlock · object | PageBreakBlock · object | InputTextBlock · object | TextareaBlock · object | InputNumberBlock · object | InputEmailBlock · object | InputLinkBlock · object | InputPhoneNumberBlock · object | InputDateBlock · object | InputTimeBlock · object | MultipleChoiceOptionBlock · object | CheckboxBlock · object | DropdownOptionBlock · object | RankingOptionBlock · object | MultiSelectOptionBlock · object | LinearScaleBlock · object | RatingBlock · object | MatrixBlock · object | MatrixRowBlock · object | MatrixColumnBlock · object | FileUploadBlock · object | SignatureBlock · object | PaymentBlock · object | HiddenFieldsBlock · object | ConditionalLogicBlock · object | CalculatedFieldsBlock · object | CaptchaBlock · object | RespondentCountryBlock · object)[]
required
A block with type FORM_TITLE. Used for the main form title with optional logo and cover image.
- FormTitleBlock
- TitleBlock
- TextBlock
- LabelBlock
- Heading1Block
- Heading2Block
- Heading3Block
- ImageBlock
- EmbedBlock
- EmbedVideoBlock
- EmbedAudioBlock
- DividerBlock
- PageBreakBlock
- InputTextBlock
- TextareaBlock
- InputNumberBlock
- InputEmailBlock
- InputLinkBlock
- InputPhoneNumberBlock
- InputDateBlock
- InputTimeBlock
- MultipleChoiceOptionBlock
- CheckboxBlock
- DropdownOptionBlock
- RankingOptionBlock
- MultiSelectOptionBlock
- LinearScaleBlock
- RatingBlock
- MatrixBlock
- MatrixRowBlock
- MatrixColumnBlock
- FileUploadBlock
- SignatureBlock
- PaymentBlock
- HiddenFieldsBlock
- ConditionalLogicBlock
- CalculatedFieldsBlock
- CaptchaBlock
- RespondentCountryBlock
Show child attributes
Show child attributes
ID of the workspace to create the form in. If not provided, uses the user's default workspace
ID of the template to base the form on
ID of the folder to place the form in. Must belong to the target workspace.
Show child attributes
Show child attributes
Response
Form created successfully
Available options:
BLANK, DRAFT, PUBLISHED, DELETED Show child attributes
Show child attributes
⌘I