Signing in a visitor
curl --request POST \
--url https://api.vizito.eu/api/visitors \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"company_id": "5f2a1b9c4d3e2f0011223344"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({company_id: '5f2a1b9c4d3e2f0011223344'})
};
fetch('https://api.vizito.eu/api/visitors', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.vizito.eu/api/visitors"
payload = { "company_id": "5f2a1b9c4d3e2f0011223344" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.vizito.eu/api/visitors",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'company_id' => '5f2a1b9c4d3e2f0011223344'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}{
"message": "Visitor added!",
"data": {
"_id": "5f2a1b9c4d3e2f0011223344",
"company_id": "5f2a1b9c4d3e2f0011223344",
"first_name": "Ada",
"last_name": "Lovelace",
"company": "<string>",
"email": "jsmith@example.com",
"phone": "<string>",
"recipient": "<string>",
"recipient_mail": "jsmith@example.com",
"visit_type": "5f2a1b9c4d3e2f0011223344",
"entrypoint_id": "5f2a1b9c4d3e2f0011223344",
"known_visitor_id": "5f2a1b9c4d3e2f0011223344",
"signed_in": "2023-11-07T05:31:56Z",
"signed_out": "2023-11-07T05:31:56Z",
"signed_in_source": 0,
"signed_out_source": 0,
"approval": "pending",
"safe": true,
"agreements": [
"5f2a1b9c4d3e2f0011223344"
],
"photo": "<string>",
"signature": "<string>",
"mod_date": "2023-11-07T05:31:56Z"
}
}{
"message": "<string>"
}{
"error": "Invalid API key"
}Visitors
Signing in a visitor
Creates a visit, running the complete sign-in flow: the host is notified, the badge is printed if the visit type prints one, the confirmation email goes out, and every integration and webhook fires.
Required fields and validation rules are enforced in the front office, not here — a visit created through the API with a required field missing is accepted as-is. There is no idempotency key yet: a retried request creates a second visit.
POST
/
visitors
Signing in a visitor
curl --request POST \
--url https://api.vizito.eu/api/visitors \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"company_id": "5f2a1b9c4d3e2f0011223344"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({company_id: '5f2a1b9c4d3e2f0011223344'})
};
fetch('https://api.vizito.eu/api/visitors', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.vizito.eu/api/visitors"
payload = { "company_id": "5f2a1b9c4d3e2f0011223344" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.vizito.eu/api/visitors",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'company_id' => '5f2a1b9c4d3e2f0011223344'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}{
"message": "Visitor added!",
"data": {
"_id": "5f2a1b9c4d3e2f0011223344",
"company_id": "5f2a1b9c4d3e2f0011223344",
"first_name": "Ada",
"last_name": "Lovelace",
"company": "<string>",
"email": "jsmith@example.com",
"phone": "<string>",
"recipient": "<string>",
"recipient_mail": "jsmith@example.com",
"visit_type": "5f2a1b9c4d3e2f0011223344",
"entrypoint_id": "5f2a1b9c4d3e2f0011223344",
"known_visitor_id": "5f2a1b9c4d3e2f0011223344",
"signed_in": "2023-11-07T05:31:56Z",
"signed_out": "2023-11-07T05:31:56Z",
"signed_in_source": 0,
"signed_out_source": 0,
"approval": "pending",
"safe": true,
"agreements": [
"5f2a1b9c4d3e2f0011223344"
],
"photo": "<string>",
"signature": "<string>",
"mod_date": "2023-11-07T05:31:56Z"
}
}{
"message": "<string>"
}{
"error": "Invalid API key"
}Authorizations
Body
application/json

