Listing fields
curl --request GET \
--url https://api.vizito.eu/api/companies/{company_id}/fields \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.vizito.eu/api/companies/{company_id}/fields', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.vizito.eu/api/companies/{company_id}/fields"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.vizito.eu/api/companies/{company_id}/fields",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}[
{
"field_name": "badgenumber",
"field_description": "<string>",
"column_title": "<string>",
"field_content_type": "text",
"field_status": "required",
"visit_type_id": "5f2a1b9c4d3e2f0011223344",
"list_values": [
{
"value_name": "<string>",
"value_description": "<string>",
"is_default": true
}
],
"field_validation": {
"regex": "<string>",
"message": "<string>"
}
}
]{
"error": "Invalid API key"
}Visit types
Listing fields
Every question asked at a location, merged across its visit types. This is what tells you which keys a visitor or registered visitor accepts.
A custom field’s value is stored under its field_name, so two visit
types defining the same name share one key on the visit.
split_by_visit_type=true gives each its own column instead.
GET
/
companies
/
{company_id}
/
fields
Listing fields
curl --request GET \
--url https://api.vizito.eu/api/companies/{company_id}/fields \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.vizito.eu/api/companies/{company_id}/fields', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.vizito.eu/api/companies/{company_id}/fields"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.vizito.eu/api/companies/{company_id}/fields",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}[
{
"field_name": "badgenumber",
"field_description": "<string>",
"column_title": "<string>",
"field_content_type": "text",
"field_status": "required",
"visit_type_id": "5f2a1b9c4d3e2f0011223344",
"list_values": [
{
"value_name": "<string>",
"value_description": "<string>",
"is_default": true
}
],
"field_validation": {
"regex": "<string>",
"message": "<string>"
}
}
]{
"error": "Invalid API key"
}Authorizations
Path Parameters
Query Parameters
Response
The fields.

