# Downloading a blank PDF Source: https://developers.vizito.eu/api-reference/agreements/downloading-a-blank-pdf https://vizito.eu/openapi.yaml get /companies/{company_id}/agreements/{agreement_id}/pdf The agreement as a PDF with no visitor data in it — the version to send in advance. # Downloading a signed PDF Source: https://developers.vizito.eu/api-reference/agreements/downloading-a-signed-pdf https://vizito.eu/openapi.yaml get /companies/{company_id}/agreements/{agreement_id}/signedpdf The same document rendered with one visit's details and the visitor's signature in it — the copy you archive. Which agreements a visit actually signed is on the visit itself, in its `agreements` array. Fetch the visitor first, then request a PDF per agreement it lists. # Fetching an agreement Source: https://developers.vizito.eu/api-reference/agreements/fetching-an-agreement https://vizito.eu/openapi.yaml get /companies/{company_id}/agreements/{agreement_id} One agreement in full, including its text in every configured language. # Listing agreements Source: https://developers.vizito.eu/api-reference/agreements/listing-agreements https://vizito.eu/openapi.yaml get /companies/{company_id}/agreements The documents visitors sign, in presentation order. Deleted and archived agreements are left out. # Listing agreements of a visit type Source: https://developers.vizito.eu/api-reference/agreements/listing-agreements-of-a-visit-type https://vizito.eu/openapi.yaml get /companies/{company_id}/visittypes/{visit_type_id}/agreements The active agreements a visitor of that visit type has to sign. # Authentication Source: https://developers.vizito.eu/api-reference/authentication API keys, what they can reach, and how to keep them safe. Vizito accepts three credentials on the same API, side by side. Which one you use is entirely your choice. | Method | Header | Secret lives | | - | - | - | | **API key** *(recommended)* | `Authorization: Bearer vzk_...` | With Vizito, hashed | | **Microsoft Entra ID** | `Authorization: Bearer ` | In your own directory | | Username and password | `Authorization: Basic ...` | With Vizito | > [!NOTE] > > Basic authentication with a Backoffice login still works and existing integrations keep running. It is no longer the recommended way: it hands out a person's password, it cannot be rotated without locking that person out, and it dies with their account. Use an API key instead. ## Creating an API key **1. Open the Integrations page as a global admin** [backoffice.vizito.be → Integrations](https://backoffice.vizito.be/#/app/integrations). Only global admins can manage keys - a key can span several locations and outlives whoever created it, so issuing one is an account-wide decision. **2. Fill in the form** * **Name** - say which integration it is for. It is what you will read on the "last used" list a year from now. * **Locations** - tick every location this integration needs. It gets nothing outside them. * **Expiry** - never, 30 days, 90 days or a year. * **IP addresses** *(optional)* - single addresses or CIDR ranges the key may be used from. **3. Copy the key** It is shown once. Vizito stores only a SHA-256 hash and cannot show it again - lose it and you create a new one. > **[Manage your API keys](https://backoffice.vizito.be/#/app/integrations)** > > Create, revoke and delete keys on the Backoffice Integrations page. ## Using the key A key looks like `vzk__`. Send it as a bearer token: ```bash cURL theme={null} curl https://api.vizito.eu/api/companiesList \ -H "Authorization: Bearer vzk_1a2b3c4d5e6f7890_..." ``` ```javascript Node.js theme={null} const response = await fetch('https://api.vizito.eu/api/companiesList', { headers: { Authorization: `Bearer ${process.env.VIZITO_API_KEY}` } }); const locations = await response.json(); ``` ```python Python theme={null} import os, requests response = requests.get( "https://api.vizito.eu/api/companiesList", headers={"Authorization": f"Bearer {os.environ['VIZITO_API_KEY']}"}, ) locations = response.json() ``` ```php PHP theme={null} $ch = curl_init('https://api.vizito.eu/api/companiesList'); curl_setopt($ch, CURLOPT_HTTPHEADER, ['Authorization: Bearer ' . getenv('VIZITO_API_KEY')]); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $locations = json_decode(curl_exec($ch), true); ``` If a bearer token is awkward in your tooling, the same value is accepted in an `X-API-Key` header. ## What a key may do A key is **its own principal**, not a stand-in for the admin who created it. On the locations it was granted it has full administrator access; outside them it has none at all. It keeps working when that admin is demoted, moved or leaves - an integration should not break because somebody changed jobs. There are three things a key deliberately cannot do, so that a leaked key cannot escalate into an account: > **Create locations** > > It works inside the locations it was given; it does not hand out new ones. > **Manage users** > > No creating Backoffice logins, changing roles or resetting passwords. > **Manage API keys** > > No minting replacements, so revoking one actually means something. Those endpoints answer `403` for a key, whatever it covers. Do them in the Backoffice. ## Every restriction is checked per request Revoking a key, letting it expire, narrowing its locations or changing its IP list takes effect on the very next call. There is no cache to wait out. > [!WARNING] > > **Every refusal answers the same way**: `403` with `{"error": "Invalid API key"}` - whether the key is unknown, revoked, expired, used from the wrong IP address or aimed at a location it does not cover. That is deliberate: a more specific message would tell whoever holds a stolen key exactly what to try next. The real reason is in the Vizito server log; if you are stuck, [support](mailto:support@vizito.eu) can read it back to you. When debugging a `403`, work down this list: 1. Is the header exactly `Authorization: Bearer `, one space, nothing truncated? 2. Is the key still active and not past its expiry date? Both are visible in the Backoffice. 3. Is the calling server's IP address in the key's whitelist - including the new one you deployed to last week? 4. Does the key cover the location you are addressing? Check against `GET /companiesList`. Thirty refused attempts from one IP address in fifteen minutes gets you `429` for the rest of the window. Successful requests never count towards it. ## Microsoft Entra ID If you would rather not store a Vizito secret at all, register your application in your own Entra ID directory and let Vizito trust tokens it issues. **1. Register the application in Azure** Add a client secret or a certificate, and note the **Directory (tenant) ID** and the **Application (client) ID**. **2. Register it in Vizito** On the Integrations page, create a credential with authentication type **Microsoft Entra ID** and enter both ids. Pick its locations exactly as you would for an API key. **3. Get a token** ```http theme={null} POST https://login.microsoftonline.com//oauth2/v2.0/token Content-Type: application/x-www-form-urlencoded grant_type=client_credentials &client_id= &client_secret= &scope=/.default ``` **4. Call the API with it** `Authorization: Bearer `. Tokens are valid for about an hour; ask for a fresh one when it expires. Vizito verifies the signature against Microsoft's published keys, that the token comes from the registered tenant, that its audience is the registered application, and that it was issued through the client credentials grant rather than delegated from a user. From there on it behaves exactly like an API key: same locations, same permissions, same restrictions. ## Keeping keys healthy > **One key per integration** > > Sharing a key across two systems means revoking it breaks both, and "last used" tells you nothing. Keys are free - make one each. > **Give it only the locations it needs** > > A key for a badge printer at one site has no business reading the visitor log of another. > **Restrict by IP where you can** > > A server integration calls from a known address. Whitelisting it makes a leaked key useless anywhere else - just remember to update the list when you move servers. > **Check 'last used' before revoking** > > The Integrations page shows when each key was last seen. It is the quickest way to tell a live integration from a forgotten experiment. # Fetching a device Source: https://developers.vizito.eu/api-reference/devices/fetching-a-device https://vizito.eu/openapi.yaml get /companies/{company_id}/devices/{device_id} One kiosk. Adding, renaming, moving and removing kiosks is Backoffice work — a mistake takes a tablet out of service at an entrance. # Listing devices Source: https://developers.vizito.eu/api-reference/devices/listing-devices https://vizito.eu/openapi.yaml get /companies/{company_id}/devices Every kiosk registered at the location. Rather than polling this on a timer, subscribe to the `device_online` and `device_offline` webhook events — they arrive the moment the state changes. # Listing visit types of a device Source: https://developers.vizito.eu/api-reference/devices/listing-visit-types-of-a-device https://vizito.eu/openapi.yaml get /companies/{company_id}/devices/{device_uuid}/visittypes The visit types this kiosk shows, which can be a subset of the location's. A kiosk with no explicit selection returns the full list. # Creating an entry point Source: https://developers.vizito.eu/api-reference/entry-points/creating-an-entry-point https://vizito.eu/openapi.yaml post /companies/{company_id}/entrypoints Assigning a kiosk to an entry point is done on the device, in the Backoffice. # Deleting an entry point Source: https://developers.vizito.eu/api-reference/entry-points/deleting-an-entry-point https://vizito.eu/openapi.yaml delete /companies/{company_id}/entrypoints/{entrypoint_id} Marks the entry point deleted. Visits that came through it keep their `entrypoint_id`, so reporting per entrance stays intact. # Fetching an entry point Source: https://developers.vizito.eu/api-reference/entry-points/fetching-an-entry-point https://vizito.eu/openapi.yaml get /companies/{company_id}/entrypoints/{entrypoint_id} One entry point. Deleted ones are not returned — the body is `null`. # Listing entry points Source: https://developers.vizito.eu/api-reference/entry-points/listing-entry-points https://vizito.eu/openapi.yaml get /companies/{company_id}/entrypoints The entrances within a location. Deleted entry points are included — check `deleted` if you only want the live ones. # Updating an entry point Source: https://developers.vizito.eu/api-reference/entry-points/updating-an-entry-point https://vizito.eu/openapi.yaml put /companies/{company_id}/entrypoints/{entrypoint_id} Visits point at the entry point by id, so a rename applies to history as well as to new visits. # Errors Source: https://developers.vizito.eu/api-reference/errors What each status means, and what to do about it. Errors are returned as an HTTP status with a short JSON body, usually `{ "message": "..." }` or `{ "error": "..." }`. Some endpoints answer with a bare status and no body at all, so **read the status first** and treat the body as a hint. | Status | Meaning | What to do | | - | - | - | | `200` | Success | - | | `400` | The request was understood but could not be carried out | Read the message: a malformed id, a missing required parameter, or an object that does not exist | | `401` | The location could not be resolved for your credential | Check the `company_id`, and that your key covers it | | `403` | The credential was refused, or the endpoint is off limits to API keys | See [Authentication](/api-reference/authentication) | | `404` | No such route, or no such object | Check the path and the id | | `429` | Too many refused credentials from this IP | Wait out the 15-minute window; fix the key first | | `500` | Something went wrong on our side | Retry; if it persists, [contact support](mailto:support@vizito.eu) | > [!NOTE] > > Failing to resolve a location is reported as `400`, `401` or `404` depending on the endpoint. Treat all three the same way: the location id is wrong, or your key does not cover it. ## Messages worth recognising > **403 \{ "error": "Invalid API key" }** > > Every credential refusal answers identically: unknown key, revoked key, expired key, wrong IP address, or a location the key does not cover. Work down the checklist in [Authentication](/api-reference/authentication#every-restriction-is-checked-per-request). > **400 "Please include count, page and sorting query parameters."** > > The visitor and registered-visitor lists require paging parameters. Add `count` and `page` - and, on registered visitors, at least one `sorting[field]`. > **400 \{ "message": "TRIAL\_EXPIRED" }** > > The location is on an expired trial. Data endpoints stay closed until it is on a paid plan. > **400 \{ "message": "Dataset too large." }** > > The visitor export is capped at 200 rows per call. Pass `count=200` with a `page`, or narrow the export with filters. > **400 \{ "message": "No data." }** > > The export matched no visitors. Not a failure - there was simply nothing to write. > **429 "Too many invalid API key attempts from this IP"** > > Thirty refused credentials from one address inside fifteen minutes. Stop retrying, fix the key, and wait out the window - retrying with the same broken key only extends it. ## A note on 200s A handful of older endpoints answer `200` with a message body instead of an error status - for example `{ "message": "company not found" }` or `{ "message": "No Known Visitor found!" }`. When you expect an object and get a body with only a `message` key, treat it as "not found". ## Retrying * `500` is worth one or two retries with a short backoff. * `400`, `401`, `403` and `404` never become successful on retry. Fix the request. * `429` needs you to stop entirely for the window - further attempts keep it open. # Creating a host Source: https://developers.vizito.eu/api-reference/hosts/creating-a-host https://vizito.eu/openapi.yaml post /visitees Adds a managed host. There is no duplicate check on `cn` — if your directory is the source of truth, replace the whole list instead. # Deleting a host Source: https://developers.vizito.eu/api-reference/hosts/deleting-a-host https://vizito.eu/openapi.yaml delete /visitees/{visitee_id} Removes a managed host. Visits that named them keep their `recipient`, so history is unaffected. # Fetching a host Source: https://developers.vizito.eu/api-reference/hosts/fetching-a-host https://vizito.eu/openapi.yaml get /visitees/{visitee_id} One managed host. A host that does not exist answers `200` with `{ "message": "no visitee found" }`, not a `404`. # Listing hosts Source: https://developers.vizito.eu/api-reference/hosts/listing-hosts https://vizito.eu/openapi.yaml get /visitees/bycompany/{company_id} Every managed host at a location, sorted by name. Hosts pushed through the bulk upload carry `external: true` and are deliberately not in this list. There is no endpoint that reads the external list back — keep your own copy of what you pushed. # Listing hosts, paged Source: https://developers.vizito.eu/api-reference/hosts/listing-hosts-paged https://vizito.eu/openapi.yaml get /visitees/bycompany/paged/{company_id} The same list, paged and filterable. # Replacing the host list Source: https://developers.vizito.eu/api-reference/hosts/replacing-the-host-list https://vizito.eu/openapi.yaml post /visitees/external/upload/{company_id} Replaces the location's **external** host list with what you send. The previous external set is deleted first, so this is a full sync rather than a merge. An empty array clears the list. **One upload per location per 24 hours.** A second call inside that window answers `200` with `hosts_imported: 0` and changes nothing — it does not report an error. Schedule it as a nightly job. # Updating a host Source: https://developers.vizito.eu/api-reference/hosts/updating-a-host https://vizito.eu/openapi.yaml put /visitees/{visitee_id} Only the fields you send are touched; sending one as an empty string clears it. Renaming `cn` does not rewrite past visits: their `recipient` keeps the old spelling. # Introduction Source: https://developers.vizito.eu/api-reference/introduction Base URL, conventions and everything that is true of every endpoint. The Vizito API is a JSON API over HTTPS. Every endpoint lives under one base URL, takes and returns JSON, and is authenticated with an API key. > **Base URL** > > ```text theme={null} > https://api.vizito.eu/api > ``` Every path in this reference is relative to that base URL. `GET /companiesList` means `GET https://api.vizito.eu/api/companiesList`. ## Authentication Send your API key as a bearer token on every request: ```bash theme={null} curl https://api.vizito.eu/api/companiesList \ -H "Authorization: Bearer vzk_1a2b3c4d5e6f7890_..." ``` Keys are created by a global admin on the [Integrations page](https://backoffice.vizito.be/#/app/integrations) of the Backoffice. See [Authentication](/api-reference/authentication) for expiry, IP restrictions, Microsoft Entra ID and what a key is not allowed to do. ## Everything hangs off a location Almost every endpoint names a location, either in the path (`/companies/{company_id}/...`) or in the body (`company_id`). Your key is pinned to a set of locations, and naming one outside that set is refused with `403`. Start with [`GET /companiesList`](/api-reference/locations/listing-locations): it is the only endpoint that needs no location id, and it returns the ones your key covers. ## Conventions > **Ids** > > Every id is a 24-character hexadecimal string, e.g. `5f2a1b9c4d3e2f0011223344`. Objects carry theirs as `_id`. Ids are stable: store them rather than re-resolving objects by name. > **Dates and times** > > Timestamps are ISO 8601 in UTC - `2026-08-29T07:58:11.000Z` - both in and out. Where an endpoint takes a date in the path it also accepts a plain `YYYY-MM-DD`, which is read in the location's own timezone. > **Request bodies** > > Send `Content-Type: application/json`. Form-encoded bodies are accepted too, for the sake of older integrations, but JSON is what you want. > **Custom fields** > > A visit type can define its own questions. Their answers are stored on the visitor or registered visitor under the field's `field_name`, alongside the built-in fields - so you send and read them as ordinary top-level keys. `GET /companies/{company_id}/fields` lists what a location has. > **Extra fields are kept** > > Visitors, registered visitors and hosts accept keys beyond the documented ones and store them as-is. Handy for carrying your own reference (`"crm_id": "..."`), but be deliberate: a typo in a field name creates a new field rather than failing. > **Language** > > Endpoints that return configured text - visit types, agreements, fields - take a `language_id` query parameter (`en`, `nl`, `fr`, `de`, …) and answer in that language, falling back to English. ## Listing endpoints The two big lists - visitors and registered visitors - are the ones the Backoffice grids are built on, so they take the grid's parameters: | Parameter | Example | Notes | | - | - | - | | `count` | `count=50` | Rows to return. **Required.** | | `page` | `page=1` | 1-based. **Required.** | | `sorting[field]` | `sorting[signed_in]=desc` | `asc` or `desc`. Required on registered visitors. | | `filter[field]` | `filter[company]=Acme` | Case-insensitive substring match | | `filter[field]` (dates) | `filter[signed_in][startDate]=...&filter[signed_in][endDate]=...` | Half-open range | They answer with the page and the unfiltered-by-page total: ```json theme={null} { "total": 128, "visitors": [ ... ] } ``` Every other list endpoint returns a plain array. ## Rate limits There is no general request quota. Two things are limited: * **Failed key presentations** - 30 refused credentials from one IP address in 15 minutes gets you `429` for the rest of the window. Valid requests never count towards it. * **Bulk invitations** - capped per location, so a loop cannot mail your whole address book. Over the cap, the extra recipients are reported as `skippedRateLimited` rather than sent. Still, be reasonable: prefer one call with a page of 100 over a hundred calls, and use [webhooks](/documentation/webhooks) instead of polling every few seconds. ## Errors Failures come back as an HTTP status with a short JSON body. See [Errors](/api-reference/errors) for what each status means and how to react to it. ## The OpenAPI description Every endpoint in this reference is described by an OpenAPI 3.1 document, and these pages are generated from it: ```text theme={null} https://vizito.eu/openapi.yaml ``` Point your own tooling at it - a client generator, Postman, Insomnia, an HTTP client - instead of copying endpoints out of these pages by hand. It is the same document we generate the reference from, so the two cannot drift apart. # Fetching a location Source: https://developers.vizito.eu/api-reference/locations/fetching-a-location https://vizito.eu/openapi.yaml get /companies/{company_id} The full configuration of one location: address, timezone, languages and the `app_settings` block that drives the kiosk. For backwards compatibility `app_settings` also carries a copy of the location's first visit type. Read the settings you need rather than diffing the whole object. # Listing locations Source: https://developers.vizito.eu/api-reference/locations/listing-locations https://vizito.eu/openapi.yaml get /companiesList Every location your credential covers. The one endpoint that needs no location id — start here, and keep the ids it hands back. # Creating a registered visitor Source: https://developers.vizito.eu/api-reference/registered-visitors/creating-a-registered-visitor https://vizito.eu/openapi.yaml post /knownvisitors Creates a registered visitor: somebody you expect. When they arrive and sign in, a visit is created from this record and the record itself stays as it is. Creating the record does not mail anybody — send the invitation as a separate step. # Deleting a registered visitor Source: https://developers.vizito.eu/api-reference/registered-visitors/deleting-a-registered-visitor https://vizito.eu/openapi.yaml delete /knownvisitors/{knownvisitor_id} Removes a registered visitor — a cancelled meeting, a contractor who is no longer coming. Visits already created from the record are untouched. Routine cleanup is automatic: records that are not `persistent` are deleted once their visit date has passed by the retention period. # Deleting registered visitors in bulk Source: https://developers.vizito.eu/api-reference/registered-visitors/deleting-registered-visitors-in-bulk https://vizito.eu/openapi.yaml post /companies/{company_id}/knownvisitors/delete Removes several registered visitors at once. A `POST` because the ids travel in the body. A record whose visitor is currently signed in is skipped. # Fetching a registered visitor Source: https://developers.vizito.eu/api-reference/registered-visitors/fetching-a-registered-visitor https://vizito.eu/openapi.yaml get /knownvisitors/{knownvisitor_id} One registered visitor in full, including any photo and signature stored for prefilling their sign-in. A record that does not exist answers `200` with `{ "message": "No Known Visitor found!" }`, not a `404`. # Fetching the current visit Source: https://developers.vizito.eu/api-reference/registered-visitors/fetching-the-current-visit https://vizito.eu/openapi.yaml get /companies/{company_id}/knownvisitors/{known_visitor_id}/visits/current The open visit created from a registered visitor, or `null` when they are not inside. Useful for an access control system deciding whether to open a door. # Listing expected visitors Source: https://developers.vizito.eu/api-reference/registered-visitors/listing-expected-visitors https://vizito.eu/openapi.yaml get /knownvisitors/visitingon/{company_id}/{visiting_on} Everyone expected at a location on one day — the list a kiosk offers when a visitor says they are expected. Records without a `visiting_on`, the persistent ones, are always included. # Listing registered visitors Source: https://developers.vizito.eu/api-reference/registered-visitors/listing-registered-visitors https://vizito.eu/openapi.yaml get /knownvisitors/bycompany/{company_id} Every registered visitor at a location. Unlike the visitor log this endpoint also requires `sorting`; without it you get `400 Please include count, page and sorting query parameters.` # Reprinting a badge for a registered visitor Source: https://developers.vizito.eu/api-reference/registered-visitors/reprinting-a-badge-for-a-registered-visitor https://vizito.eu/openapi.yaml post /companies/{company_id}/knownvisitors/{known_visitor_id}/reprint Prints the badge for a registered visitor without waiting for them to sign in — for reception preparing badges for a group in the morning. # Sending an invitation Source: https://developers.vizito.eu/api-reference/registered-visitors/sending-an-invitation https://vizito.eu/openapi.yaml post /knownvisitors/sendinvite/{language_id} 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. # Sending invitations in bulk Source: https://developers.vizito.eu/api-reference/registered-visitors/sending-invitations-in-bulk https://vizito.eu/openapi.yaml post /companies/{company_id}/knownvisitors/sendinvites Sends the invitation to a list of registered visitors at once. Records without a usable email address are skipped rather than failing the call, and bulk invitations are rate-limited per location — check `queued` against `requested` rather than assuming a `200` means everybody was mailed. # Signing in registered visitors Source: https://developers.vizito.eu/api-reference/registered-visitors/signing-in-registered-visitors https://vizito.eu/openapi.yaml post /companies/{company_id}/knownvisitors/signin Creates a visit from each registered visitor, exactly as scanning their QR code at the kiosk would. Somebody already inside is skipped, not signed in twice, so the call is safe to repeat. # Updating a registered visitor Source: https://developers.vizito.eu/api-reference/registered-visitors/updating-a-registered-visitor https://vizito.eu/openapi.yaml put /knownvisitors/{knownvisitor_id} Only the fields you send are touched. Sending a field as an empty string removes it. `_id`, `create_date`, `mod_date` and `pre_registration_by_visitor` are ignored. Moving the date does not re-send the invitation. # Counting visitors inside Source: https://developers.vizito.eu/api-reference/reporting/counting-visitors-inside https://vizito.eu/openapi.yaml get /visitors/signed_current/total/{company_id}/{datetimestamp} # Counting visitors signed in Source: https://developers.vizito.eu/api-reference/reporting/counting-visitors-signed-in https://vizito.eu/openapi.yaml get /visitors/signed_in/total/{company_id}/{datetimestamp} # Counting visitors signed out Source: https://developers.vizito.eu/api-reference/reporting/counting-visitors-signed-out https://vizito.eu/openapi.yaml get /visitors/signed_out/total/{company_id}/{datetimestamp} # Counting visitors that month Source: https://developers.vizito.eu/api-reference/reporting/counting-visitors-that-month https://vizito.eu/openapi.yaml get /visitors/monthly/total/{company_id}/{datetimestamp} # Exporting the visitor log Source: https://developers.vizito.eu/api-reference/reporting/exporting-the-visitor-log https://vizito.eu/openapi.yaml get /visitors/export/bycompany/{company_id} The visitor log as an XLSX file, with the same columns and translated headers as the Backoffice export. Capped at **200 rows per call**. For a bulk pull, page through the visitor log instead: it returns JSON and has no such ceiling. Exporting requires an administrator. An API key is a global admin on its locations, so it qualifies. # Fetching statistics Source: https://developers.vizito.eu/api-reference/reporting/fetching-statistics https://vizito.eu/openapi.yaml get /companies/{company_id}/statistics/{datetimestamp} The five numbers behind the Backoffice dashboard, counted server-side. One call instead of four — prefer it over the individual counters. # Fetching the dashboard Source: https://developers.vizito.eu/api-reference/reporting/fetching-the-dashboard https://vizito.eu/openapi.yaml get /companies/{company_id}/dashboard The ten-day graph and the 30 most recently changed visits together. # Fetching visits per day Source: https://developers.vizito.eu/api-reference/reporting/fetching-visits-per-day https://vizito.eu/openapi.yaml get /visitors/graph/{company_id} Visit counts for the last ten days, one entry per day, oldest first. Days with no visits are included with `count: 0`. The window is fixed: for any other range, page through the visitor log with a date filter. # Fetching a visit type Source: https://developers.vizito.eu/api-reference/visit-types/fetching-a-visit-type https://vizito.eu/openapi.yaml get /companies/{company_id}/visittypes/{visit_type_id} The complete configuration of one visit type, including its `fields` array, its notification settings and its email templates. Visit types can be changed over the API, but their configuration is broad, deeply nested and translated into every language the location offers. Read them here; edit them in the Backoffice. # Listing fields Source: https://developers.vizito.eu/api-reference/visit-types/listing-fields https://vizito.eu/openapi.yaml get /companies/{company_id}/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. # Listing visit types Source: https://developers.vizito.eu/api-reference/visit-types/listing-visit-types https://vizito.eu/openapi.yaml get /companies/{company_id}/visittypes The sign-in flows a location offers — ids and names, in the order the kiosk shows them. Visit type ids never change: resolve them once at setup and store them rather than matching on the name. # Anonymising a visit Source: https://developers.vizito.eu/api-reference/visitors/anonymising-a-visit https://vizito.eu/openapi.yaml put /visitors/{visitor_id}/anonymize Strips every personal detail from a visit, irreversibly. What remains is the shape of the visit — id, visit type, entry point, host, sign-in and sign-out times, and `erased: true`. The photo and signature are deleted outright and the first name becomes `Anonimized`. There is no undo. Routine cleanup does not need this endpoint: data retention deletes old visits on its own schedule. # Fetching a visitor Source: https://developers.vizito.eu/api-reference/visitors/fetching-a-visitor https://vizito.eu/openapi.yaml get /visitors/{visitor_id} One visit in full, including the `photo` and `signature` that the list endpoints leave out. Both are base64-encoded images. # Listing recent visits Source: https://developers.vizito.eu/api-reference/visitors/listing-recent-visits https://vizito.eu/openapi.yaml get /visitors/recent/{company_id} The 30 most recently modified visits, newest first. A webhook tells you the same thing as it happens, and without the 30-row ceiling. # Listing visitors Source: https://developers.vizito.eu/api-reference/visitors/listing-visitors https://vizito.eu/openapi.yaml get /visitors/bycompany/{company_id} The visitor log — the same data the Backoffice grid shows. Photos and signatures are left out; fetch a single visitor for those. `count` and `page` are required: without them the endpoint answers `400 Please include count, page and sorting query parameters.` # Listing visitors inside Source: https://developers.vizito.eu/api-reference/visitors/listing-visitors-inside https://vizito.eu/openapi.yaml get /visitors/signed_current/{company_id} Everyone signed in and not yet signed out, honouring the location's multi-day sign-out interval. This is the list an evacuation report should be built on. # Listing visitors inside, paged Source: https://developers.vizito.eu/api-reference/visitors/listing-visitors-inside-paged https://vizito.eu/openapi.yaml get /visitors/signed_current/paged/{company_id} The same list as `/visitors/signed_current/{company_id}`, paged and filterable. # Marking a visitor not safe Source: https://developers.vizito.eu/api-reference/visitors/marking-a-visitor-not-safe https://vizito.eu/openapi.yaml put /companies/{company_id}/visitors/{visitor_id}/notsafe Clears the `safe` flag the emergency list reads. # Marking a visitor safe Source: https://developers.vizito.eu/api-reference/visitors/marking-a-visitor-safe https://vizito.eu/openapi.yaml put /companies/{company_id}/visitors/{visitor_id}/safe Sets the `safe` flag the emergency list reads. # Reprinting a badge Source: https://developers.vizito.eu/api-reference/visitors/reprinting-a-badge https://vizito.eu/openapi.yaml post /companies/{company_id}/visitors/{visitor_id}/reprint Sends the visit's badge to a kiosk printer. Vizito picks a kiosk serving the visit's entry point, preferring one that is online and has a printer configured; when none matches, any connected kiosk at the location is used. A `200` means the job reached the kiosk, not that paper came out. # Signing in a visitor Source: https://developers.vizito.eu/api-reference/visitors/signing-in-a-visitor https://vizito.eu/openapi.yaml post /visitors 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. # Signing out a visitor Source: https://developers.vizito.eu/api-reference/visitors/signing-out-a-visitor https://vizito.eu/openapi.yaml put /visitors/{visitor_id} Closes a visit. The sign-out email and any sign-out notification go out exactly as they would from a kiosk. # Signing out several visitors Source: https://developers.vizito.eu/api-reference/visitors/signing-out-several-visitors https://vizito.eu/openapi.yaml post /companies/{company_id}/visitors/signout Closes several visits at once. Answers per id, so a visit that was already closed is reported as `skipped` rather than failing the batch — which makes the call safe to repeat. # Updating a visit Source: https://developers.vizito.eu/api-reference/visitors/updating-a-visit https://vizito.eu/openapi.yaml put /visitors/{visitor_id}/details Changes an existing visit — a corrected name, a filled-in badge number, a screening decision. Despite the `PUT` this is a partial update: fields you leave out keep their value. Sending `signed_out` also closes the visit, unless it was already signed out, in which case the original time stands. # Configuring the webhook Source: https://developers.vizito.eu/api-reference/webhooks/configuring-the-webhook https://vizito.eu/openapi.yaml post /companies/{company_id}/webhooks Creates the webhook or replaces the existing one. Saving also clears the consecutive-failure counter, so this is how you re-enable a webhook that was switched off. Events carry `eventName` and `companyId` plus the ids of what changed: `visitor_signed_in`, `visitor_signed_out`, `visitor_updated`, `visitor_screening_approved`, `visitor_screening_rejected`, `registered_visitor_created`, `registered_visitor_updated`, `registered_visitor_deleted`, `registered_visitor_preregistered`, `device_added`, `device_online`, `device_offline`, `device_deleted`, `company_updated`. # Fetching the webhook Source: https://developers.vizito.eu/api-reference/webhooks/fetching-the-webhook https://vizito.eu/openapi.yaml get /companies/{company_id}/webhooks The webhook configured for the location — one per location. An empty object means no webhook is configured, **or** that yours was auto-disabled after five consecutive delivery failures. That makes this the quickest health check for your integration. Webhooks are part of the Enterprise plan; on Standard and Pro this answers `404`. # Core concepts Source: https://developers.vizito.eu/documentation/concepts The handful of objects the whole API is built on. Everything in Vizito hangs off a **location**. Get that one right and the rest of the API follows. ## Location A location is one reception: an office, a plant, a site. In the API it is called `company_id` and it is a 24-character id. Your API key is pinned to a set of locations. `GET /api/companiesList` lists them, and any request naming a location outside that set is refused with `403`. > [!NOTE] > > Historically a location is called a "company" in the API paths and payloads. Read `company_id` as "location id" everywhere. ## Visit type A visit type is the flow a visitor goes through: which questions are asked, which agreements have to be signed, whether a badge is printed, who gets notified and what the confirmation email says. Every location has at least one and one of them is the default. If you sign a visitor in without naming a visit type, the location's default is used. Visit types matter to you for one practical reason: **the questions asked, and therefore the fields you may send, are defined per visit type**. See [Visit types](/api-reference/visit-types/listing-visit-types). ## Visitor A visitor is one visit - a single sign-in event, not a person. Signing the same person in twice creates two visitors. A visitor is signed in when `signed_in` is set, and still inside as long as `signed_out` is absent. | Field | Meaning | | - | - | | `first_name`, `last_name`, `company` | Who is visiting | | `email`, `phone` | How they can be reached | | `recipient`, `recipient_mail` | The host they came to see | | `visit_type` | Id of the visit type used | | `signed_in`, `signed_out` | Timestamps of the visit | | `signed_in_source` | `0` Backoffice/API · `1` kiosk · `2` contactless | | `known_visitor_id` | Set when the visit came from a registered visitor | | `entrypoint_id` | Which entrance the visitor used | On top of that, every custom field the visit type defines is stored on the visitor under its own `field_name`. ## Registered visitor A registered visitor (`knownvisitor` in the API) is an **expected** visitor: someone you pre-register before they arrive. It carries the same personal details as a visitor, plus: | Field | Meaning | | - | - | | `visiting_on` | The day, or a `{ startDate, endDate }` range, the visit is expected | | `persistent` | Keep the record after the visit - a contractor who comes back every week | | `visit_type` | The flow they will go through when they arrive | | `language` | Language of the invitation email | When they arrive and sign in, a **visitor** is created from them and the registered visitor stays as it was. That is the link `known_visitor_id` records. ## Host A host (`visitee` in the API) is a person who can be visited: the list reception picks from, and the autocomplete a visitor types into on the kiosk. Hosts come in two flavours: * **Managed hosts** - created in the Backoffice or through `POST /api/visitees`, edited one by one. * **External hosts** - pushed in bulk from your directory with `POST /api/visitees/external/upload/{company_id}`. They are replaced as a set on every push and are deliberately kept out of the regular host list endpoint. ## Entry point An entry point is a door or a desk within a location - "Main entrance", "Loading bay". Kiosks are assigned to one, and every visit records the entry point it came through, so you can report per entrance. ## Agreement An agreement is a document a visitor has to read and sign: an NDA, a safety instruction, a video. Agreements are attached to visit types, and the signed result can be downloaded as a PDF per visit. ## How they fit together ```mermaid theme={null} flowchart LR L[Location] --> VT[Visit type] L --> H[Hosts] L --> EP[Entry points] VT --> A[Agreements] RV[Registered visitor] -->|arrives| V[Visitor] VT -.defines fields of.-> V H -.recipient of.-> V EP -.recorded on.-> V ``` # Pre-registering visitors Source: https://developers.vizito.eu/documentation/pre-registering-visitors Announce a visitor from your own system and send them an invitation with a QR code. Pre-registration is where the API earns its keep: your booking system, ERP or meeting-room tool knows who is coming long before reception does. Push that into Vizito and the visitor gets an invitation, arrives with a QR code, and signs in without typing a thing. **1. Create the registered visitor** `POST /api/knownvisitors` with the details you already have. **2. Send the invitation** `POST /api/knownvisitors/sendinvite/{language_id}` - the visitor gets the email with the QR code, the calendar item and the wallet pass. **3. They arrive** Scanning the QR at the kiosk creates the visit. Nothing more for you to do. ## Create the registered visitor ```bash cURL theme={null} curl -X POST https://api.vizito.eu/api/knownvisitors \ -H "Authorization: Bearer $VIZITO_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "company_id": "5f2a1b9c4d3e2f0011223344", "visit_type": "5f2a1b9c4d3e2f0011223399", "first_name": "Ada", "last_name": "Lovelace", "company": "Analytical Engines Ltd", "email": "ada@example.com", "phone": "+32470123456", "recipient": "Jane Doe", "language": "en", "visiting_on": { "startDate": "2026-09-03T08:00:00.000Z", "endDate": "2026-09-03T17:00:00.000Z" } }' ``` ```json Response theme={null} { "message": "Known Visitor added!", "data": { "_id": "66c1a2b3c4d5e6f700112233", "first_name": "Ada", "visiting_on": { "startDate": "2026-09-03T08:00:00.000Z", "endDate": "2026-09-03T17:00:00.000Z" }, "create_date": "2026-08-29T09:14:02.000Z" } } ``` ### Choosing `visiting_on` | What you want | What to send | | - | - | | A visit on one day | `{ "startDate": "2026-09-03T08:00:00.000Z", "endDate": "2026-09-03T17:00:00.000Z" }` | | A multi-day stay | The same shape, spanning several days | | A contractor with no fixed date | Leave `visiting_on` out and set `"persistent": true` | A registered visitor with no `visiting_on` is offered on the kiosk every day, which is exactly what you want for regulars and exactly what you do not want for a one-off meeting. > [!NOTE] > > Custom fields work here too: any field the visit type defines can be set on the registered visitor under its `field_name`, and it is carried onto the visit when they sign in - including fields that are hidden on the kiosk. ## Send the invitation The invitation is a separate call, so you decide whether and when it goes out. Send the object you got back, including its `_id`: ```bash cURL theme={null} curl -X POST https://api.vizito.eu/api/knownvisitors/sendinvite/en \ -H "Authorization: Bearer $VIZITO_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "_id": "66c1a2b3c4d5e6f700112233", "company_id": "5f2a1b9c4d3e2f0011223344", "first_name": "Ada", "last_name": "Lovelace", "email": "ada@example.com", "recipient": "Jane Doe", "visiting_on": { "startDate": "2026-09-03T08:00:00.000Z", "endDate": "2026-09-03T17:00:00.000Z" } }' ``` The path segment is the language of the email (`en`, `nl`, `fr`, `de`, …). The email itself - subject, blocks, colours, whether it carries a QR code, a calendar invite or a wallet pass - is what your visit type is configured to send. > [!WARNING] > > `_id` is required: the QR code and the pre-registration link are derived from it. Sending the invitation before creating the registered visitor produces a mail whose QR code signs nobody in. ### Inviting a whole list at once ```bash theme={null} curl -X POST https://api.vizito.eu/api/companies/{company_id}/knownvisitors/sendinvites \ -H "Authorization: Bearer $VIZITO_API_KEY" \ -H "Content-Type: application/json" \ -d '["66c1a2b3c4d5e6f700112233", "66c1a2b3c4d5e6f700112244"]' ``` ```json Response theme={null} { "requested": 2, "queued": 1, "skippedNoEmail": 1, "skippedRateLimited": 0 } ``` Registered visitors without a usable email address are skipped rather than failing the call. Bulk invitations are rate-limited per location to keep a runaway loop from mailing your whole address book. ## Look up who is expected ```bash theme={null} curl https://api.vizito.eu/api/knownvisitors/visitingon/{company_id}/2026-09-03 \ -H "Authorization: Bearer $VIZITO_API_KEY" ``` Returns everyone expected that day, including the persistent ones that carry no date. ## Sign them in on arrival Normally the visitor does this themselves by scanning their QR code. If reception - or your own system - needs to do it, one call turns registered visitors into visits: ```bash theme={null} curl -X POST https://api.vizito.eu/api/companies/{company_id}/knownvisitors/signin \ -H "Authorization: Bearer $VIZITO_API_KEY" \ -H "Content-Type: application/json" \ -d '["66c1a2b3c4d5e6f700112233"]' ``` ```json Response theme={null} [{ "id": "66c1a2b3c4d5e6f700112233", "status": "success", "visitorId": "66c1b0000000000000000001" }] ``` Somebody already inside is reported as `skipped`, not signed in twice. ## Cleaning up Registered visitors that are not `persistent` are removed automatically once their visit is behind them, following your location's data retention settings. You only need `DELETE /api/knownvisitors/{id}` when a meeting is cancelled. > **[All registered visitor endpoints](/api-reference/registered-visitors/creating-a-registered-visitor)** > > Listing, filtering, updating and deleting. # Quickstart Source: https://developers.vizito.eu/documentation/quickstart From no credential to your first visitor list in five minutes. ## 1. Create an API key API keys are managed in the Backoffice by a **global admin**. **1. Open the Integrations page** Go to [backoffice.vizito.be → Integrations](https://backoffice.vizito.be/#/app/integrations) and open the **API keys** section. **2. Create the key** Give it a name that says which integration it is for, tick the locations it may reach, and optionally set an expiry date and a list of IP addresses it may be used from. **3. Copy the key** The key is shown **once**. Store it in your secret manager right away — Vizito only keeps a hash of it and cannot show it again. > [!WARNING] > > A key looks like `vzk_1a2b3c4d5e6f7890_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx`. Treat it like a password: it is a global admin on the locations you picked. More detail — expiry, IP restrictions, Microsoft Entra ID — in [Authentication](/api-reference/authentication). ## 2. Check that it works ```bash theme={null} curl https://api.vizito.eu/api/companiesList \ -H "Authorization: Bearer $VIZITO_API_KEY" ``` ```json Response theme={null} [ { "_id": "5f2a1b9c4d3e2f0011223344", "name": "Head office", "location_code": "HQ", "tier": "Enterprise", "mod_date": "2026-08-01T09:12:44.000Z" } ] ``` This is the one endpoint that needs no location id, and it tells you exactly which locations your key covers. Keep the `_id` — it is the `company_id` every other endpoint asks for. > [!TIP] > > Nothing came back? An empty array means the key is valid but attached to no location you can see. A `403 Invalid API key` means the credential itself was refused — see [Errors](/api-reference/errors). ## 3. Read today's visitors ```bash theme={null} curl -G https://api.vizito.eu/api/visitors/bycompany/5f2a1b9c4d3e2f0011223344 \ -H "Authorization: Bearer $VIZITO_API_KEY" \ -d count=25 \ -d page=1 \ --data-urlencode "sorting[signed_in]=desc" ``` ```json Response theme={null} { "total": 128, "visitors": [ { "_id": "66b0f1a2c3d4e5f600112233", "first_name": "Ada", "last_name": "Lovelace", "company": "Analytical Engines Ltd", "email": "ada@example.com", "recipient": "Jane Doe", "visit_type": "5f2a1b9c4d3e2f0011223399", "signed_in": "2026-08-29T07:58:11.000Z", "signed_in_source": 1 } ] } ``` > [!NOTE] > > `count` and `page` are required on this endpoint. Pass `count=25&page=1` if you just want the most recent page. ## 4. Sign someone in ```bash theme={null} curl -X POST https://api.vizito.eu/api/visitors \ -H "Authorization: Bearer $VIZITO_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "company_id": "5f2a1b9c4d3e2f0011223344", "first_name": "Ada", "last_name": "Lovelace", "company": "Analytical Engines Ltd", "email": "ada@example.com", "recipient": "Jane Doe", "recipient_mail": "jane.doe@example.com" }' ``` The visit is created exactly as if it happened on a kiosk: the host is notified, the badge is printed if the visit type prints one, and the sign-in email goes out. ## Where to go next > **[Core concepts](/documentation/concepts)** > > What a visit type is, and why almost everything hangs off a location. > **[Sign in a visitor](/documentation/signing-in-a-visitor)** > > The full sign-in flow, custom fields included. > **[Pre-register visitors](/documentation/pre-registering-visitors)** > > Create the visit up front and send the invitation. > **[API reference](/api-reference/introduction)** > > Every endpoint in detail. # Signing a visitor in and out Source: https://developers.vizito.eu/documentation/signing-in-a-visitor Create a visit from your own system, custom fields included. A sign-in through the API is not a second-class visit. It goes through the same pipeline as a kiosk sign-in: the host is notified by email, SMS, Teams or Slack, the badge is printed if the visit type prints one, the confirmation email goes out and every integration and webhook fires. ## 1. Pick the visit type If you leave `visit_type` out, the location's default visit type is used. That is fine for a single-flow reception. If you have several - "Visitor", "Contractor", "Delivery" - fetch them once and cache the ids: ```bash theme={null} curl -G https://api.vizito.eu/api/companies/{company_id}/visittypes \ -H "Authorization: Bearer $VIZITO_API_KEY" \ -d active=true ``` ## 2. Find out which fields it asks for The questions a visitor answers are configured per visit type. `GET /api/companies/{company_id}/fields` returns them all, merged across visit types: ```json theme={null} [ { "field_name": "first_name", "field_description": "First name", "field_content_type": "text", "field_status": "required" }, { "field_name": "company", "field_description": "Company", "field_content_type": "text", "field_status": "optional" }, { "field_name": "badgenumber", "field_description": "Badge number", "field_content_type": "number", "field_status": "optional" } ] ``` A field's `field_name` is the key you send. Custom fields are no different from built-in ones - they are just extra keys in the body. > [!WARNING] > > The API does **not** enforce `field_status: "required"`. A visit created through the API with a required field missing is accepted, and shows up in the Backoffice with that column empty. Validate on your side if it matters to you. ## 3. Create the visit ```bash cURL theme={null} curl -X POST https://api.vizito.eu/api/visitors \ -H "Authorization: Bearer $VIZITO_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "company_id": "5f2a1b9c4d3e2f0011223344", "visit_type": "5f2a1b9c4d3e2f0011223399", "first_name": "Ada", "last_name": "Lovelace", "company": "Analytical Engines Ltd", "email": "ada@example.com", "phone": "+32470123456", "recipient": "Jane Doe", "recipient_mail": "jane.doe@example.com", "badgenumber": "A-1183", "signed_in_source": "0" }' ``` ```json Response theme={null} { "message": "Visitor added!", "data": { "_id": "66b0f1a2c3d4e5f600112233", "first_name": "Ada", "signed_in": "2026-08-29T07:58:11.000Z", "signed_in_source": 0, "visit_type": "5f2a1b9c4d3e2f0011223399" } } ``` Keep `data._id` - it is the visitor id you need to sign them out again. > [!TIP] > > Set `signed_in_source` to `"0"` so the visit is recorded as a Backoffice/API sign-in rather than a kiosk one. It shows up as such in the Backoffice and in exports. ### Notifying the right host `recipient` is the host's name as it should appear on the badge and in the notification. `recipient_mail` is where the notification goes. If you send a `recipient` that matches a [host](/api-reference/hosts/listing-hosts) you already maintain in Vizito, use that host's exact `cn` so reporting per host stays clean. ### Backdating a sign-in Send `signed_in_frombo` with an ISO 8601 timestamp to record a visit that happened earlier - useful when you are importing from another system: ```json theme={null} { "company_id": "...", "first_name": "Ada", "signed_in_frombo": "2026-08-28T14:03:00.000Z" } ``` ## 4. Sign them out ```bash theme={null} curl -X PUT https://api.vizito.eu/api/visitors/66b0f1a2c3d4e5f600112233 \ -H "Authorization: Bearer $VIZITO_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "company_id": "5f2a1b9c4d3e2f0011223344", "signed_out_source": "0" }' ``` Leave `signed_out` out and the visitor is signed out now; send an ISO 8601 timestamp to record a departure that already happened. To close several visits at once - an evacuation, an end-of-day sweep - use the bulk endpoint: ```bash theme={null} curl -X POST https://api.vizito.eu/api/companies/{company_id}/visitors/signout \ -H "Authorization: Bearer $VIZITO_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "ids": ["66b0f1a2c3d4e5f600112233", "66b0f1a2c3d4e5f600112244"] }' ``` It answers per id, so you can see exactly which ones were already signed out: ```json theme={null} [ { "id": "66b0f1a2c3d4e5f600112233", "status": "success", "message": "Visitor signed out" }, { "id": "66b0f1a2c3d4e5f600112244", "status": "skipped", "reason": "Visitor not found or already signed out" } ] ``` ## 5. See who is still inside ```bash theme={null} curl https://api.vizito.eu/api/visitors/signed_current/{company_id} \ -H "Authorization: Bearer $VIZITO_API_KEY" ``` Returns the full list of visitors that are signed in and not signed out, respecting the location's multi-day sign-out interval. This is the list an evacuation report should be built on. > **[All visitor endpoints](/api-reference/visitors/listing-visitors)** > > Filtering, updating, anonymising and exporting visits. # Keeping hosts in sync Source: https://developers.vizito.eu/documentation/syncing-hosts Push the people who can be visited straight from your directory. The host list is what a visitor types into on the kiosk and what reception picks from. It goes stale the moment somebody joins or leaves, so it is worth driving from the system that already knows: your HR tool, your directory, your CRM. There are two ways to do it, and they do not mix. > **One at a time** > > `POST`, `PUT` and `DELETE` on `/api/visitees`. You track which hosts exist and reconcile yourself. > **Replace the whole set** > > `POST /api/visitees/external/upload/{company_id}`. You send the full list; Vizito makes it so. ## Replacing the whole set This is the simpler model, and the right one when your directory is the source of truth. Send everybody who may be visited; the previous external list is discarded and replaced. ```bash cURL theme={null} curl -X POST https://api.vizito.eu/api/visitees/external/upload/{company_id} \ -H "Authorization: Bearer $VIZITO_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "data": [ { "cn": "Jane Doe", "mail": "jane.doe@example.com", "mobile": "+32470111222", "telephoneNumber": "+3211755092" }, { "cn": "John Roe", "mail": "john.roe@example.com" } ] }' ``` ```json Response theme={null} { "message": "visitees.SUCCESS", "hosts_imported": 2 } ``` > [!WARNING] > > **This endpoint accepts one upload per location per 24 hours.** A second call within that window is answered with `hosts_imported: 0` and changes nothing - it does not fail loudly. Schedule it as a nightly job, not as a per-change hook. A few things worth knowing: * Hosts uploaded this way are marked **external**. They are used on the kiosk exactly like managed hosts, but they do not appear in `GET /api/visitees/bycompany/{company_id}` - that endpoint returns the manually maintained list only. * Sending an empty `data` array clears the external host list. * Email addresses are lower-cased on the way in. ## Managing hosts one by one Use this when Vizito is the source of truth, or when only a handful of hosts come from elsewhere. ```bash Create theme={null} curl -X POST https://api.vizito.eu/api/visitees \ -H "Authorization: Bearer $VIZITO_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "company_id": "5f2a1b9c4d3e2f0011223344", "cn": "Jane Doe", "mail": "jane.doe@example.com", "mobile": "+32470111222" }' ``` ```bash Update theme={null} curl -X PUT https://api.vizito.eu/api/visitees/66c1a2b3c4d5e6f700112299 \ -H "Authorization: Bearer $VIZITO_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "company_id": "5f2a1b9c4d3e2f0011223344", "mobile": "+32470999888" }' ``` ```bash Delete theme={null} curl -X DELETE https://api.vizito.eu/api/visitees/66c1a2b3c4d5e6f700112299 \ -H "Authorization: Bearer $VIZITO_API_KEY" ``` ```bash List theme={null} curl https://api.vizito.eu/api/visitees/bycompany/5f2a1b9c4d3e2f0011223344 \ -H "Authorization: Bearer $VIZITO_API_KEY" ``` ## Why the contact details matter `mail`, `mobile` and `telephoneNumber` are not decoration. When a visitor picks a host on the kiosk, Vizito notifies that host on the details stored here - and when you pre-register a visitor with a `recipient` that matches a host's `cn`, the invitation and the notification pick up that host's email and mobile automatically. So the name you store in `cn` is the join key. Keep it identical to the `recipient` your other integrations send. > **[All host endpoints](/api-reference/hosts/listing-hosts)** > > Parameters and responses in detail. # Webhooks Source: https://developers.vizito.eu/documentation/webhooks Have Vizito call your endpoint the moment something happens. Polling the visitor list every minute works, but a webhook is better: Vizito calls your endpoint as the event happens, and you do nothing in between. > [!NOTE] > > Webhooks are part of the Enterprise plan. On Standard and Pro the configuration endpoints answer `404` and no events are delivered. ## Configure the endpoint One webhook per location, set either on the Integrations page in the Backoffice or through the API: ```bash cURL theme={null} curl -X POST https://api.vizito.eu/api/companies/{company_id}/webhooks \ -H "Authorization: Bearer $VIZITO_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "url": "https://example.com/hooks/vizito", "http_method": "POST", "auth_username": "vizito", "auth_password": "a-shared-secret", "enabled": true }' ``` ```json Response theme={null} { "message": "Webhook configured successfully", "webhook_id": "66c2b3c4d5e6f70011223344" } ``` `http_method` may be `POST`, `PUT`, `PATCH` or `GET`. With `POST`, `PUT` and `PATCH` the event is the JSON body; with `GET` it is the query string. If you set `auth_username` and `auth_password`, Vizito sends them as HTTP Basic credentials on every call - the simplest way to prove the call came from Vizito. ## What you receive ```json theme={null} { "eventName": "visitor_signed_in", "companyId": "5f2a1b9c4d3e2f0011223344", "visitorId": "66b0f1a2c3d4e5f600112233", "visitTypeId": "5f2a1b9c4d3e2f0011223399", "knownVisitorId": "66c1a2b3c4d5e6f700112233" } ``` The payload is deliberately thin: it names what happened and to which object, not the object itself. Fetch what you need with the ids - [`GET /visitors/{visitorId}`](/api-reference/visitors/fetching-a-visitor) gives you the whole visit, photo and signature included. ### Events | Event | Extra fields | Fires when | | - | - | - | | `visitor_signed_in` | `visitorId`, `visitTypeId`, `knownVisitorId` | A visit starts, from any source | | `visitor_signed_out` | `visitorId`, `visitTypeId`, `knownVisitorId` | A visit is closed | | `visitor_updated` | `visitorId`, `visitTypeId`, `knownVisitorId` | A visit's details change | | `visitor_screening_approved` | `visitorId`, `knownVisitorId`, `approvalStatus` | A host approves a screened visitor | | `visitor_screening_rejected` | `visitorId`, `knownVisitorId`, `approvalStatus` | A host rejects a screened visitor | | `registered_visitor_created` | `knownVisitorId`, `visitTypeId` | A registered visitor is added | | `registered_visitor_updated` | `knownVisitorId`, `visitTypeId` | A registered visitor changes | | `registered_visitor_deleted` | `knownVisitorId`, `visitTypeId` | A registered visitor is removed | | `registered_visitor_preregistered` | `knownVisitorId` | An invited visitor completes their pre-registration | | `device_added` | `deviceUuid` | A kiosk is activated | | `device_online` / `device_offline` | `deviceUuid` | A kiosk connects or drops off | | `device_deleted` | `deviceUuid` | A kiosk is removed | | `company_updated` | - | The location's configuration changes | ## Delivery rules > **Failures are counted, and five in a row disables the webhook** > > Every delivery error - a timeout, a non-2xx answer, an unreachable host, an invalid URL - increments a counter. At five consecutive failures the webhook is switched off and the location's global admins are emailed the last error, so a dead endpoint does not silently swallow events forever. One successful delivery resets the counter to zero. > > Re-enable it on the Integrations page or by posting the configuration again - saving it clears the failure count. > **There are no retries** > > A failed delivery is not retried. Answer quickly with a 2xx and do your work asynchronously; if your endpoint is down, reconcile afterwards by reading the visitor list. > **Answer fast** > > Events are delivered as they happen and your response time is on the critical path of somebody standing at a kiosk. Acknowledge first, process later. ## Reading the current configuration ```bash theme={null} curl https://api.vizito.eu/api/companies/{company_id}/webhooks \ -H "Authorization: Bearer $VIZITO_API_KEY" ``` Returns the enabled webhook, or `{}` when there is none. An auto-disabled webhook reads as `{}` too - which is the quickest way to check whether yours is still alive. # Welcome Source: https://developers.vizito.eu/index Read and write your Vizito visitor data over HTTPS. ## The Vizito API The Vizito API gives you programmatic access to everything your Backoffice shows: the visitors that signed in today, the registered visitors you expect tomorrow, the hosts they come to see, and the visit types and entry points that shape the sign-in flow. It is a plain HTTPS/JSON API. If you can send a request with a bearer token, you can use it - no SDK required. > **[Quickstart](/documentation/quickstart)** > > Create an API key and make your first call in five minutes. > **[API reference](/api-reference/introduction)** > > Every endpoint, parameter and response you can use. > **[Core concepts](/documentation/concepts)** > > Locations, visit types, visitors and registered visitors. > **[Webhooks](/documentation/webhooks)** > > Get pushed an event the moment a visitor signs in. ## What people build with it > **Pre-register visitors from another system** > > Your booking tool, ERP or meeting-room system creates the registered visitor in Vizito and sends the invitation email with the QR code. The visitor arrives, scans, and is signed in without typing anything. > > [Pre-register visitors →](/documentation/pre-registering-visitors) > **Keep the host list in sync with your directory** > > Push the list of people who can be visited straight from your HR system or directory, so reception never chases a leaver or a new hire. > > [Sync hosts →](/documentation/syncing-hosts) > **Feed visitor data into BI or an access control system** > > Read the visitor log, the live "currently inside" list and the daily counters, and hand them to your dashboard, badge printer or access control platform. > > [Visitors →](/api-reference/visitors/listing-visitors) > **React to sign-ins in real time** > > Configure a webhook and Vizito calls your endpoint on every sign-in, sign-out, screening decision or device state change. > > [Webhooks →](/documentation/webhooks) ## Before you start **1. Create an API key** A global admin creates one on the [Integrations page](https://backoffice.vizito.be/#/app/integrations) in the Backoffice and picks the locations it may reach. **2. Send it as a bearer token** `Authorization: Bearer vzk_…` on every request. See [Authentication](/api-reference/authentication). **3. Find your location id** `GET /api/companiesList` returns the locations your key covers. Almost every other endpoint takes one of those ids. > [!NOTE] > > The base URL is `https://api.vizito.eu/api`. Everything in this documentation is relative to it.