---
title: "Get entry access activity"
method: GET
path: "/orgs/{orgId}/reports/activity"
tags: ["orgs/reports"]
---

# Get entry access activity

`GET /orgs/{orgId}/reports/activity`

Note: Please use `/org/{orgId}/reports/activity/events` API when possible as it replaces this API and is faster.<br/><br/>Returns activity events for the `time` specified date range. This API does not handle large date range requests. If not specified, the default search time span is 24 hours ago to now.<br/><br/>This API can return 422 Unprocessable Entity status code. A 422 is returned when the `time` filter specified a date range with more data than can be retrieved within the 55 second API timeout period. Please try narrowing the query date range or use the `/org/{orgId}/reports/activity/events` API as an alternative. The `/org/{orgId}/reports/activity/events` API does not have the 422 status code problem.<br/><br/>The difference between entryName, zoneName, and siteName vs. entryName2, zoneName2, and siteName2 is that the `*Name2` fields can potentially return "Multiple" as the name. This occurs when the entries array indicates multiple unique ids for that resource type. Whereas the entryId, entryName, zoneId, zoneName, siteId, and siteName values always equal their entries[0] (the first one) equivalent values.<br/><br/>__JWT is required for this endpoint with at least one of the following scopes__: o{params.orgId}-dash:w,o{params.orgId}-dash:r,o{params.orgId}-dashActivity:w,o{params.orgId}-dashActivity:r,o{params.orgId}-rpt:w,o{params.orgId}-rpt:r,o{params.orgId}-rptGeneral:w,o{params.orgId}-rptGeneral:r,o:w,o:r,s-o:w,s-o:r<br/><br/>__Endpoint name__: getActivity

## Path parameters

- `orgId` integer, required

## Query parameters

- `limit` integer
- `offset` integer
- `sort` string
- `order` string
- `filter` string
- `options` string
- `customFieldIds` integer[]

## Headers

- `x-op-debug` string

## Response `200`

Successful

- object
  - `totalCount` integer
  - `filteredCount` integer
  - `cursors` object
    - `nextCursor` integer, nullable
    - `hasNextPage` boolean
  - `data` object[]
    - `time` number, required
    - `timeIsoString` string
    - `userId` number, nullable
    - `userFirstName` string, nullable
    - `userMiddleName` string, nullable
    - `userLastName` string, nullable
    - `userName` string, nullable
    - `userEmail` string
    - `userMobilePhone` string, nullable
    - `userOrgId` number, nullable
    - `userOrgName` string, nullable
    - `userExternalId` string, nullable
    - `userIdpName` string, nullable
    - `userGroups` object[]
      - `id` integer, required
      - `name` string
    - `userSites` object[]
      - `id` integer, required
      - `name` string
    - `sourceName` string, required
    - `category` string, nullable
    - `subCategory` string, nullable
    - `credentialSubtype` string
    - `credentialTypeModelName` string, nullable
    - `credentialTypeName` string, nullable
    - `credentialDetail` string, nullable
    - `cardFields` object, nullable
      - `rcm` string
      - `facilityCode` string
      - `issueLevel` string
      - `cardId` string
      - `companyId` string
      - `companyCode` string
      - `siteCode` string
      - `oem` string
    - `acuId` number, nullable
    - `acuName` string
    - `entryId` number, nullable
    - `entryName` string
    - `entryName2` string
    - `zoneId` number, nullable
    - `zoneName` string, nullable
    - `zoneName2` string, nullable
    - `siteId` number, nullable
    - `siteName` string, nullable
    - `siteName2` string, nullable
    - `entries` object[]
      - `id` integer, required
      - `name` string
      - `zone` object
        - `id` integer, required
        - `name` string
      - `site` object
        - `id` integer, required
        - `name` string
    - `lockdownPlanId` number, nullable
    - `lockdownPlanName` string
    - `gatewayDevice` object, nullable
      - `type` string, nullable, required
      - `uid` string, nullable
      - `opal` string
      - `name` string, nullable
    - `sourceDevice` object, nullable
      - `type` string, nullable, required
      - `uid` string, nullable
      - `opal` string
      - `name` string, nullable
    - `deviceDetail` string
    - `deviceDetailName` string
    - `deviceTimezone` string, nullable
    - `readerId` number, nullable
    - `readerName` string
    - `readerPortNumber` number, nullable
    - `portNumber` object
      - `modelName` 'contactSensor' | 'genericInput' | 'reader' | 'rex'
      - `raw` integer
      - `acuId` integer
      - `expansionBoardNum` integer
      - `virtualPortNum` integer
    - `targetType` string, nullable
    - `targetName` string, nullable
    - `requestType` string
    - `requestId` string
    - `result` string
    - `resultDescription` string
    - `deniedReason` string, nullable
    - `connectionType` string, nullable
    - `location` string
    - `userCustomFields` object[]
      - `id` number, required
      - `value` string, nullable
      - `customField` object
        - `id` number, required
        - `name` string
        - `customFieldType` object
          - `id` number, required
          - `name` string
    - `userCustomFieldsData` object
    - `firstAuthInfos` object[]
      - `connectionType` string, nullable
      - `requestType` string
      - `credentialSubtype` string
      - `credentialTypeModelName` string, nullable
      - `credentialDetail` string, nullable
      - `credentialTypeName` string, nullable
      - `cardFields` object, nullable
        - `rcm` string
        - `facilityCode` string
        - `issueLevel` string
        - `cardId` string
        - `companyId` string
        - `companyCode` string
        - `siteCode` string
        - `oem` string
      - `readerId` number, nullable
      - `readerName` string
      - `userId` number, nullable
      - `userFirstName` string, nullable
      - `userMiddleName` string, nullable
      - `userLastName` string, nullable
      - `userName` string, nullable
      - `userEmail` string
      - `userOrgId` number, nullable
      - `userOrgName` string, nullable
      - `userExternalId` string, nullable
      - `userIdpName` string, nullable
  - `meta` object
    - `accessToken` object, nullable
      - `scopeUpdatedAt` string, date
    - `siteSpecificAccess` object, nullable
      - `isSiteSpecific` boolean
      - `siteIds` integer[], nullable
      - `siteIdsByScope` object, nullable
        - `string` integer[], nullable

---

[API](https://skmtc.net/openpath/apis/openpath-api-documentation.md) · [All operations](https://skmtc.net/openpath/apis/openpath-api-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/openpath/openpath-api-documentation/revisions/d8a888c114fa/schema)
