---
title: "Add new visit"
method: POST
path: "/api/v2/organizations/{orgSlug}/visits"
tags: ["Visits"]
---

# Add new visit

`POST /api/v2/organizations/{orgSlug}/visits`

## Request

- Base URL: `https://app.officernd.com`
- URL: `https://app.officernd.com/api/v2/organizations/{orgSlug}/visits`
- Auth: OAuth 2
  - Authorization code: `https://identity.officernd.com/auth/authorize`
  - Client credentials
  - Token URL: `https://identity.officernd.com/auth/token` scopes: `flex.community.visits.create`

Add new visit 

 Required scopes: `flex.community.visits.create`

## Path parameters

- `orgSlug` string, required

## Request body

- AddVisitDto
  - `visitor` string, required: The _id of the visitor for which the visit is being recorded.
  - `location` string, required: The _id of the location for which the visit is being recorded.
  - `start` string, date-time, required: The start date and time of the visit.
  - `end` string, date-time, required: The end date and time of the visit.
  - `flowId` string: The _id of the reception flow for which the visit is being recorded.
  - `member` string: The _id of the member for which the visit is being recorded.

## Response `201`

- VisitResultDto
  - `properties` object: An object that contains all custom properties that can be applied to the item.
  - `_id` string: The _id of the visit.
  - `member` string: The _id of the member for which the visit is being recorded.
  - `visitor` string: The _id of the visitor for which the visit is being recorded.
  - `location` string: The _id of the location for which the visit is being recorded.
  - `start` string, date-time: The start date and time of the visit.
  - `end` string, date-time: The end date and time of the visit.
  - `receptionFlow` string: The _id of the reception flow for which the visit is being recorded.

---

[API](https://skmtc.dev/officernd/apis/community-api.md) - [All operations](https://skmtc.dev/officernd/apis/community-api/llms.txt) - [OpenAPI document](https://skmtc.dev/officernd/apis/community-api/revisions/dad1b7912165?raw)
