# Manage VisitReport meetings

Read an event calendar, find a host’s appointments, or check which meetings use a room. You can also create, update, and cancel bookings. Enable Meetings for the event first. Your event’s meeting access settings determine whether you can manage your own appointments or book for other hosts. [VisitReport Meetings](https://portal.snapaddy.com/knowledge/features-of-visitreport-meetings) · [Meeting access settings](https://portal.snapaddy.com/knowledge/configure-meetings-permissions)

## How the pieces fit together

| Term | Meaning | ID to use |
| --- | --- | --- |
| Event | The VisitReport event that owns the calendar. | `questionnaireId` |
| Meeting supply | The booking configuration for that event. It defines the time zone, when users can make bookings, when meetings can take place, and whether a resource is required. | `meetingSupplyId` |
| Meeting resource | A bookable room, piece of equipment, or other shared asset within the supply. | `resourceId` |
| Meeting demand | The appointment itself. It ties the supply to a time range, one or more hosts, attendee information, and any booked resources. | `appointmentId` in the appointment URL |
| Host | A snapAddy user who hosts the meeting. An attendee may instead be represented by contact details on the meeting. | A [snapAddy user ID](/platform/organization-users/) in `hostIds` |

- **Booking window** answers “Can I make the booking now?” Check `alwaysBookable`, `bookableStart`, and `bookableEnd`.
- **Meeting availability** answers “Can the appointment take place at the requested time?” Check `alwaysAvailable` and the supply’s available days and times. The server evaluates the slot in the event’s time zone.

## List meetings by event, host, or resource

For an existing event, get its `meetingSupplyId` from `GET /v1/{questionnaireId}/meeting-supply`. Choose the calendar you need. All paths below use `https://backend.snapaddy.com/questionnaire` and the `x-api-key` header.

- **Event calendar** — `GET /v1/{meetingSupplyId}/meeting-demands` lists appointments visible to your account.
- **Host’s calendar** — `GET /v1/{meetingSupplyId}/meeting-demands/user/{userId}` lists meetings hosted by that snapAddy user at the event. Use the host’s user ID.
- **Room or equipment calendar** — `GET /v1/meeting-demands/resources?resourceIds={resourceId}`. Find IDs with `GET /v1/{meetingSupplyId}/meeting-resources`. To include several resources, separate their IDs with commas. They must belong to the same event calendar.

Each request returns an array. To read the whole calendar, start at `offset=0` and advance by the number of appointments returned until a page is empty. The default page size is 50. Use `from` and `to` with ISO 8601 timestamps to select meetings that start and end within a time window. Set `sortDirection=ASC` for earliest first. Your role and the event’s meeting access settings determine which booking details you can read.

## 1. Create an event with Meetings enabled

1. In the dashboard, go to **VisitReport → Events → Create event → Custom event**.

   <img src="/images/visitreport-meetings/custom-event.png" alt="Create new event dialog with Custom event highlighted" width="1944" height="1371" />

2. Name the event **API Docs Demo — VisitReport Meetings**. Set the time zone to **Europe/Berlin**. If you're skipping a venue, choose **enter time zone manually**.
3. Under **Access & availability**, choose who can access the event. For a private test, select **Restrict access to yourself for now**.
4. Under **Additional features**, turn on **Meetings** and choose **Create**.

<img src="/images/visitreport-meetings/enable-meetings.png" alt="The Create custom event wizard with Meetings turned on" width="1944" height="1650" />

On the event's **Home** page, copy the segment after `/visitreport/events/` in the browser URL. For example, in `/visitreport/events/YourEventId00001/home` the event ID is `YourEventId00001`. The API calls it `questionnaireId`. You can also [find the event through the API](/visitreport/events/).

## 2. Configure hours and add resources

1. In the event sidebar, choose **Meetings → Settings**. Check **Meetings can only take place at specified times of the day**, choose **10:00** and **17:00**, and select **Save changes**. The demo leaves the dates unrestricted. Add an allowed date range if you want to restrict meetings to the days of your event.
2. Under **Meetings → Access**, leave **Users can always book meetings** selected for the demo. Review who can book for themselves or on behalf of others. Use a host who has access to this event.

<img src="/images/visitreport-meetings/meeting-settings.png" alt="Meeting Settings with an allowed meeting time of 10:00 to 17:00" width="1944" height="933" />

3. Go to **Meetings → Resources → Create resource**. Name it **Meeting Room A**, enable **Restrict maximum occupancy**, enter **4**, and select **Create**.
4. Repeat for **Meeting Room B** with a maximum occupancy of **6**. Both rooms now belong to this event's meeting supply.

<img src="/images/visitreport-meetings/meeting-resources.png" alt="The event’s Meetings Resources screen with Create resource and both saved rooms" width="1944" height="849" />

<img src="/images/visitreport-meetings/room-b.png" alt="Meeting Room B’s saved resource settings with a maximum occupancy of six" width="1944" height="1734" />

## 3. Find the IDs and check availability

Use a [personal API token](/authentication/) from an account with access to the event. Set `SNAPADDY_API_KEY` in your environment, replace the example IDs, and run the blocks for your language in order. The cURL blocks use Bash and `jq`. Put the TypeScript blocks in one `meetings.mts` file and run it with Node.js 24 or later. The Python blocks use the standard library.

```bash
BASE=https://backend.snapaddy.com/questionnaire
EVENT_ID='YourEventId00001'

SUPPLY=$(curl --fail-with-body --silent --show-error \
  "$BASE/v1/$EVENT_ID/meeting-supply" \
  -H "x-api-key: $SNAPADDY_API_KEY")
SUPPLY_ID=$(jq -er '.meetingSupplyId' <<< "$SUPPLY")

RESOURCES=$(curl --fail-with-body --silent --show-error \
  "$BASE/v1/$SUPPLY_ID/meeting-resources" \
  -H "x-api-key: $SNAPADDY_API_KEY")
ROOM_ID=$(jq -er '.[] | select(.resourceName == "Meeting Room A") | .resourceId' \
  <<< "$RESOURCES")
```

```typescript
const base = 'https://backend.snapaddy.com/questionnaire';
const eventId = 'YourEventId00001';
const apiKey = process.env.SNAPADDY_API_KEY;
if (!apiKey) throw new Error('Set SNAPADDY_API_KEY.');

async function call(path: string, method = 'GET', body?: object) {
  const response = await fetch(base + path, {
    method,
    headers: { 'x-api-key': apiKey!, ...(body && { 'Content-Type': 'application/json' }) },
    body: body && JSON.stringify(body),
  });
  const text = await response.text();
  if (!response.ok) throw new Error(`HTTP ${response.status}: ${text}`);
  return text ? JSON.parse(text) : undefined;
}

const { meetingSupplyId } = await call(`/v1/${eventId}/meeting-supply`);
const resources = await call(`/v1/${meetingSupplyId}/meeting-resources`);
const roomId = resources.find((room: { resourceName: string }) =>
  room.resourceName === 'Meeting Room A')?.resourceId;
if (!roomId) throw new Error('Meeting Room A was not found.');
```

```python
import json
import os
from urllib.error import HTTPError
from urllib.request import Request, urlopen

BASE = "https://backend.snapaddy.com/questionnaire"
EVENT_ID = "YourEventId00001"
API_KEY = os.environ["SNAPADDY_API_KEY"]


def call(path, method="GET", body=None):
    headers = {"x-api-key": API_KEY}
    data = None
    if body is not None:
        headers["Content-Type"] = "application/json"
        data = json.dumps(body).encode()
    try:
        with urlopen(Request(BASE + path, data=data, headers=headers, method=method), timeout=15) as response:
            text = response.read()
            return json.loads(text) if text else None
    except HTTPError as error:
        raise RuntimeError(f"HTTP {error.code}: {error.read().decode()}") from error


supply_id = call(f"/v1/{EVENT_ID}/meeting-supply")["meetingSupplyId"]
resources = call(f"/v1/{supply_id}/meeting-resources")
room_id = next((room["resourceId"] for room in resources if room["resourceName"] == "Meeting Room A"), None)
if not room_id:
    raise RuntimeError("Meeting Room A was not found.")
```

The supply response includes the event time zone and booking rules. If `requireResources` is true, include a resource in every booking. Resource IDs belong to the supply you listed them from. For `HOST_ID`, use a [snapAddy user ID](/platform/organization-users/) for a host allowed to book in this event.

Check Room A for a half-hour appointment. Change the sample date to a future day allowed by your event. The timestamps below are UTC and correspond to **11:00–11:30 Europe/Berlin** on the sample date. See the [API reference](/reference/visitreport-meetings/) for the full request schema.

```bash
START='2027-04-22T09:00:00Z'
END='2027-04-22T09:30:00Z'

AVAILABILITY=$(curl --fail-with-body --silent --show-error \
  "$BASE/v1/$SUPPLY_ID/meeting-resource-availability" \
  -H "x-api-key: $SNAPADDY_API_KEY" \
  -H 'Content-Type: application/json' \
  --data "$(jq -n --arg start "$START" --arg end "$END" '{start: $start, end: $end}')")
jq -e --arg room "$ROOM_ID" '.[] | select(.resourceId == $room and .availability == "AVAILABLE")' \
  <<< "$AVAILABILITY"
```

```typescript
const start = '2027-04-22T09:00:00Z';
const end = '2027-04-22T09:30:00Z';

const availability = await call(`/v1/${meetingSupplyId}/meeting-resource-availability`, 'POST', { start, end });
if (!availability.some((item: { resourceId: string; availability: string }) =>
  item.resourceId === roomId && item.availability === 'AVAILABLE')) {
  throw new Error('Meeting Room A is unavailable for this time.');
}
```

```python
start = "2027-04-22T09:00:00Z"
end = "2027-04-22T09:30:00Z"

availability = call(f"/v1/{supply_id}/meeting-resource-availability", "POST", {"start": start, "end": end})
if not any(item["resourceId"] == room_id and item["availability"] == "AVAILABLE" for item in availability):
    raise RuntimeError("Meeting Room A is unavailable for this time.")
```

Look for the entry where `resourceId` equals `ROOM_ID` and `availability` is `AVAILABLE`. This checks the room for that interval. The booking request still enforces access, time limits, and conflicts.

## 4. Book Room A

A meeting demand reserves the time and the resource. This request books Room A for two attendees and sets `sendMail` to `false` so the example does not send confirmation mail.

See the [API reference](/reference/visitreport-meetings/) for the full request schema.

```bash
HOST_ID='YourHostId000001'

BOOKING=$(curl --fail-with-body --silent --show-error \
  "$BASE/v1/meeting-demand" \
  -H "x-api-key: $SNAPADDY_API_KEY" \
  -H 'Content-Type: application/json' \
  --data "$(jq -n \
    --arg supply "$SUPPLY_ID" --arg host "$HOST_ID" --arg room "$ROOM_ID" \
    --arg start "$START" --arg end "$END" \
    '{
      meetingSupplyId: $supply,
      meetingName: "Partner introduction",
      meetingDate: {dateStart: $start, dateEnd: $end},
      hostIds: [$host],
      resourceIds: [$room],
      numberAttendees: 2,
      sendMail: false
    }')")
APPOINTMENT_ID=$(jq -er '.appointmentId' <<< "$BOOKING")
jq '{appointmentId, warnings}' <<< "$BOOKING"
```

```typescript
const hostId = 'YourHostId000001';
const booking = await call('/v1/meeting-demand', 'POST', {
  meetingSupplyId,
  meetingName: 'Partner introduction',
  meetingDate: { dateStart: start, dateEnd: end },
  hostIds: [hostId],
  resourceIds: [roomId],
  numberAttendees: 2,
  sendMail: false,
});
console.log(booking.appointmentId, booking.warnings);
```

```python
host_id = "YourHostId000001"
booking = call("/v1/meeting-demand", "POST", {
    "meetingSupplyId": supply_id,
    "meetingName": "Partner introduction",
    "meetingDate": {"dateStart": start, "dateEnd": end},
    "hostIds": [host_id],
    "resourceIds": [room_id],
    "numberAttendees": 2,
    "sendMail": False,
})
print(booking["appointmentId"], booking.get("warnings"))
```

Save `appointmentId` from the `201` response and review any `warnings`. If you receive `409`, refresh availability and pick another slot or resource. To correlate a booking with another system, pass an `externalId` that is unique within the supply.

## 5. Read, update, or cancel the booking

Open **Meetings → Calendar** in the dashboard to see bookings. To list bookings your account can see through the API, call `GET /v1/{meetingSupplyId}/meeting-demands`. Use `limit` and `offset` to page through results.

See the [API reference](/reference/visitreport-meetings/) for the full request schema.

```bash
APPOINTMENT="$BASE/v1/meeting-demand/$APPOINTMENT_ID"

# List the first page
curl --fail-with-body "$BASE/v1/$SUPPLY_ID/meeting-demands?limit=50&offset=0" \
  -H "x-api-key: $SNAPADDY_API_KEY"

# Read the booking
curl --fail-with-body "$APPOINTMENT" \
  -H "x-api-key: $SNAPADDY_API_KEY"

# Update the title
curl --fail-with-body -X PATCH "$APPOINTMENT" \
  -H "x-api-key: $SNAPADDY_API_KEY" \
  -H 'Content-Type: application/json' \
  --data '{"meetingName":"Partner introduction and demo"}'

# Cancel a test booking when you are done
curl --fail-with-body -X DELETE "$APPOINTMENT" \
  -H "x-api-key: $SNAPADDY_API_KEY"
```

```typescript
const appointment = `/v1/meeting-demand/${booking.appointmentId}`;
console.log(await call(`/v1/${meetingSupplyId}/meeting-demands?limit=50&offset=0`));
console.log(await call(appointment));
await call(appointment, 'PATCH', { meetingName: 'Partner introduction and demo' });
// Cancel the test booking when you are done.
await call(appointment, 'DELETE');
```

```python
appointment = f"/v1/meeting-demand/{booking['appointmentId']}"
print(call(f"/v1/{supply_id}/meeting-demands?limit=50&offset=0"))
print(call(appointment))
call(appointment, "PATCH", {"meetingName": "Partner introduction and demo"})
# Cancel the test booking when you are done.
call(appointment, "DELETE")
```

Keep the supply ID to list an event's appointments and the appointment ID to work with a single booking. In the VisitReport app, starting a [report](/visitreport/reports/) from a meeting carries its saved participants into the report.

## Try the booking form<span class="example-pill" aria-hidden="true"></span>

<a href="/examples/visitreport-meetings/booking-form.html" target="_blank" rel="noopener">Open the interactive booking form</a> to pick a day, time, group size, and room using sample data.

To book against your VisitReport event, save these four files in the same folder and use Node.js 24 or later.

- <a href="/examples/visitreport-meetings/booking-form.html" target="_blank" rel="noopener">booking-form.html</a>
- <a href="/examples/visitreport-meetings/booking.js" target="_blank" rel="noopener">booking.js</a>
- <a href="/examples/visitreport-meetings/slots.mjs" target="_blank" rel="noopener">slots.mjs</a>
- <a href="/examples/visitreport-meetings/server.mjs" target="_blank" rel="noopener">server.mjs</a>

With `SNAPADDY_API_KEY` already set in your terminal, supply your event and host IDs and start the example.

```bash
SNAPADDY_EVENT_ID='YourEventId00001' \
SNAPADDY_HOST_ID='YourHostId000001' \
node server.mjs
```

Open <a href="http://127.0.0.1:8787" target="_blank" rel="noopener">http://127.0.0.1:8787</a>. The server keeps your token in its environment, loads the event's booking rules, and shows rooms that are available and large enough for the group. Successful submissions create bookings in VisitReport with confirmation email disabled. Use the confirmation reference to cancel your test booking as shown above.

The server listens on the local computer. For a public booking page, add your own authentication or abuse protection and keep the API token on your server.

[Meetings API reference](/reference/visitreport-meetings/)
