Parse a survey CSV without saving it
curl --request POST \
--url https://apiv2.vodex.ai/v1/console/assistants/{id}/survey.csv/preview \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: text/csv' \
--data '<string>'import requests
url = "https://apiv2.vodex.ai/v1/console/assistants/{id}/survey.csv/preview"
payload = "<string>"
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "text/csv"
}
response = requests.post(url, data=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'text/csv'},
body: '<string>'
};
fetch('https://apiv2.vodex.ai/v1/console/assistants/{id}/survey.csv/preview', 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://apiv2.vodex.ai/v1/console/assistants/{id}/survey.csv/preview",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "<string>",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: text/csv"
],
]);
$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://apiv2.vodex.ai/v1/console/assistants/{id}/survey.csv/preview"
payload := strings.NewReader("<string>")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "text/csv")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://apiv2.vodex.ai/v1/console/assistants/{id}/survey.csv/preview")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "text/csv")
.body("<string>")
.asString();require 'uri'
require 'net/http'
url = URI("https://apiv2.vodex.ai/v1/console/assistants/{id}/survey.csv/preview")
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"] = 'text/csv'
request.body = "<string>"
response = http.request(request)
puts response.read_body{
"survey": {
"questions": [
{}
],
"closingMessage": "<string>"
},
"errors": [
{
"line": 123,
"reason": "<string>"
}
]
}{
"error": "not found"
}Assistants
Parse a survey CSV without saving it
A raw text/csv body (design 0027 §4.1). Returns the parsed
questionnaire and every error, each with the FILE line number the
customer’s spreadsheet shows. Stores nothing — this exists precisely so
a customer can fix their file before committing it.
POST
/
console
/
assistants
/
{id}
/
survey.csv
/
preview
Parse a survey CSV without saving it
curl --request POST \
--url https://apiv2.vodex.ai/v1/console/assistants/{id}/survey.csv/preview \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: text/csv' \
--data '<string>'import requests
url = "https://apiv2.vodex.ai/v1/console/assistants/{id}/survey.csv/preview"
payload = "<string>"
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "text/csv"
}
response = requests.post(url, data=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'text/csv'},
body: '<string>'
};
fetch('https://apiv2.vodex.ai/v1/console/assistants/{id}/survey.csv/preview', 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://apiv2.vodex.ai/v1/console/assistants/{id}/survey.csv/preview",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "<string>",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: text/csv"
],
]);
$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://apiv2.vodex.ai/v1/console/assistants/{id}/survey.csv/preview"
payload := strings.NewReader("<string>")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "text/csv")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://apiv2.vodex.ai/v1/console/assistants/{id}/survey.csv/preview")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "text/csv")
.body("<string>")
.asString();require 'uri'
require 'net/http'
url = URI("https://apiv2.vodex.ai/v1/console/assistants/{id}/survey.csv/preview")
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"] = 'text/csv'
request.body = "<string>"
response = http.request(request)
puts response.read_body{
"survey": {
"questions": [
{}
],
"closingMessage": "<string>"
},
"errors": [
{
"line": 123,
"reason": "<string>"
}
]
}{
"error": "not found"
}Authorizations
Tenant API key (vdx_live_…) as Authorization: Bearer.
Path Parameters
Body
text/csv
The body is of type string.