Create a form
curl --request POST \
--url https://{your-subdomain}.neetoform.com/api/external/v2/forms \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <x-api-key>' \
--data '
{
"form": {
"title": "Customer Feedback Form",
"created_by_email": "oliver@example.com"
}
}
'const options = {
method: 'POST',
headers: {'X-Api-Key': '<x-api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
form: {title: 'Customer Feedback Form', created_by_email: 'oliver@example.com'}
})
};
fetch('https://{your-subdomain}.neetoform.com/api/external/v2/forms', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{your-subdomain}.neetoform.com/api/external/v2/forms"
payload = { "form": {
"title": "Customer Feedback Form",
"created_by_email": "oliver@example.com"
} }
headers = {
"X-Api-Key": "<x-api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"form": {
"id": "<string>",
"title": "<string>",
"is_published": true,
"state": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"submissions_count": 123,
"attempt_url": "<string>",
"is_archived": true,
"is_disabled": true,
"is_suspended": true,
"created_by": "<string>"
}
}Forms
Create form
Create a form.
POST
/
forms
Create a form
curl --request POST \
--url https://{your-subdomain}.neetoform.com/api/external/v2/forms \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <x-api-key>' \
--data '
{
"form": {
"title": "Customer Feedback Form",
"created_by_email": "oliver@example.com"
}
}
'const options = {
method: 'POST',
headers: {'X-Api-Key': '<x-api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
form: {title: 'Customer Feedback Form', created_by_email: 'oliver@example.com'}
})
};
fetch('https://{your-subdomain}.neetoform.com/api/external/v2/forms', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{your-subdomain}.neetoform.com/api/external/v2/forms"
payload = { "form": {
"title": "Customer Feedback Form",
"created_by_email": "oliver@example.com"
} }
headers = {
"X-Api-Key": "<x-api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"form": {
"id": "<string>",
"title": "<string>",
"is_published": true,
"state": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"submissions_count": 123,
"attempt_url": "<string>",
"is_archived": true,
"is_disabled": true,
"is_suspended": true,
"created_by": "<string>"
}
}Replace
Learn how to find your subdomain in Workspace subdomain.
{your-subdomain} with your workspace’s subdomain. Learn how to find your subdomain in Workspace subdomain.
Headers
Use the X-Api-Key header to provide your workspace API key. Refer to Authentication for more information.
Body
application/json
Response
201 - application/json
Created - Form created successfully
Hide child attributes
Hide child attributes