curl --request POST \
--url https://api.vizito.eu/api/knownvisitors/sendinvite/{language_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"_id": "5f2a1b9c4d3e2f0011223344",
"company_id": "5f2a1b9c4d3e2f0011223344",
"email": "jsmith@example.com"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
_id: '5f2a1b9c4d3e2f0011223344',
company_id: '5f2a1b9c4d3e2f0011223344',
email: 'jsmith@example.com'
})
};
fetch('https://api.vizito.eu/api/knownvisitors/sendinvite/{language_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.vizito.eu/api/knownvisitors/sendinvite/{language_id}"
payload = {
"_id": "5f2a1b9c4d3e2f0011223344",
"company_id": "5f2a1b9c4d3e2f0011223344",
"email": "jsmith@example.com"
}
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/knownvisitors/sendinvite/{language_id}",
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([
'_id' => '5f2a1b9c4d3e2f0011223344',
'company_id' => '5f2a1b9c4d3e2f0011223344',
'email' => 'jsmith@example.com'
]),
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": "<string>"
}{
"error": "Invalid API key"
}Sending an invitation
Sends the invitation email: the QR code that signs them in on arrival, the calendar item, the wallet pass and the pre-registration link — whichever the visit type is configured to include.
Send the object you got back when you created the record. _id is
required: the QR code and the pre-registration link are derived from it,
so an invitation for an id that does not exist produces a mail whose QR
code signs nobody in.
Locations on a trial are capped at 10 invitations.
curl --request POST \
--url https://api.vizito.eu/api/knownvisitors/sendinvite/{language_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"_id": "5f2a1b9c4d3e2f0011223344",
"company_id": "5f2a1b9c4d3e2f0011223344",
"email": "jsmith@example.com"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
_id: '5f2a1b9c4d3e2f0011223344',
company_id: '5f2a1b9c4d3e2f0011223344',
email: 'jsmith@example.com'
})
};
fetch('https://api.vizito.eu/api/knownvisitors/sendinvite/{language_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.vizito.eu/api/knownvisitors/sendinvite/{language_id}"
payload = {
"_id": "5f2a1b9c4d3e2f0011223344",
"company_id": "5f2a1b9c4d3e2f0011223344",
"email": "jsmith@example.com"
}
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/knownvisitors/sendinvite/{language_id}",
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([
'_id' => '5f2a1b9c4d3e2f0011223344',
'company_id' => '5f2a1b9c4d3e2f0011223344',
'email' => 'jsmith@example.com'
]),
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": "<string>"
}{
"error": "Invalid API key"
}Authorizations
An API key issued in the Backoffice, sent as Authorization: Bearer vzk_<key id>_<secret>.
A Microsoft Entra ID access token obtained with the client credentials
grant is accepted on the same header. The same value is also accepted in
an X-API-Key header.
Path Parameters
Language of the email: en, nl, fr, de, … Falls back to en.
"en"
Body
Response
The invitation was queued. Empty body.

