Create Conversation
curl --request POST \
--url https://geniusforms.ai/api/v1/forms/{id}/chat \
--header 'X-API-Key: <api-key>'import requests
url = "https://geniusforms.ai/api/v1/forms/{id}/chat"
headers = {"X-API-Key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'X-API-Key': '<api-key>'}};
fetch('https://geniusforms.ai/api/v1/forms/{id}/chat', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": 5,
"formId": 208,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}{
"error": "validation_error",
"message": "Invalid request"
}Chat
Create Conversation
Create a new chat conversation for a form. Use conversations to ask questions about form response data using AI.
POST
/
forms
/
{id}
/
chat
Create Conversation
curl --request POST \
--url https://geniusforms.ai/api/v1/forms/{id}/chat \
--header 'X-API-Key: <api-key>'import requests
url = "https://geniusforms.ai/api/v1/forms/{id}/chat"
headers = {"X-API-Key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'X-API-Key': '<api-key>'}};
fetch('https://geniusforms.ai/api/v1/forms/{id}/chat', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": 5,
"formId": 208,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}{
"error": "validation_error",
"message": "Invalid request"
}