List Forms
curl --request GET \
--url https://geniusforms.ai/api/v1/forms \
--header 'X-API-Key: <api-key>'import requests
url = "https://geniusforms.ai/api/v1/forms"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://geniusforms.ai/api/v1/forms', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"forms": [
{
"id": 208,
"title": "Customer Feedback",
"description": "Help us improve our service",
"isPublished": false,
"shareUrl": "abc123xyz",
"url": "https://geniusforms.ai/f/abc123xyz",
"displayMode": "single-page",
"createdAt": "2023-11-07T05:31:56Z",
"publishedAt": "2023-11-07T05:31:56Z",
"webhook": {
"enabled": false,
"url": "https://example.com/webhook"
}
}
],
"total": 123
}{
"error": "validation_error",
"message": "Invalid request"
}Forms
List Forms
Get all forms for the authenticated user.
GET
/
forms
List Forms
curl --request GET \
--url https://geniusforms.ai/api/v1/forms \
--header 'X-API-Key: <api-key>'import requests
url = "https://geniusforms.ai/api/v1/forms"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://geniusforms.ai/api/v1/forms', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"forms": [
{
"id": 208,
"title": "Customer Feedback",
"description": "Help us improve our service",
"isPublished": false,
"shareUrl": "abc123xyz",
"url": "https://geniusforms.ai/f/abc123xyz",
"displayMode": "single-page",
"createdAt": "2023-11-07T05:31:56Z",
"publishedAt": "2023-11-07T05:31:56Z",
"webhook": {
"enabled": false,
"url": "https://example.com/webhook"
}
}
],
"total": 123
}{
"error": "validation_error",
"message": "Invalid request"
}⌘I