Questionnaires
List questionnaires
Returns all questionnaires for the authenticated tenant. Questionnaires define the questions asked to leads during voice calls or form intake.
Authorization
ApiKeyAuth X-API-Key<token>
API key generated from your Vayaflow dashboard Settings page
In: header
Response Body
application/json
application/json
package mainimport ( "fmt" "net/http" "io/ioutil")func main() { url := "https://api.leadsail.app/api/v1/questionnaires" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body))}{
"success": true,
"data": {
"questionnaires": [
{
"questionnaireId": "qst_abc123",
"name": "string",
"description": "string",
"active": true,
"questions": [
{
"key": "filing_for",
"question": "Are you filing on behalf of yourself or someone else?",
"instructions": "string",
"options": [
"Self",
"Someone else"
]
}
],
"createdAt": "string",
"updatedAt": "string"
}
],
"pagination": {
"total": 0,
"page": 0,
"limit": 0
}
}
}{
"success": false,
"error": {
"code": "UNAUTHORIZED",
"message": "Authentication required"
}
}