---
title: "Get security activity for a HubSpot account"
method: GET
path: "/account-info/v3/activity/security"
tags: ["Activity"]
---

# Get security activity for a HubSpot account

`GET /account-info/v3/activity/security`

## Request

- Base URL: `https://api.hubapi.com`
- URL: `https://api.hubapi.com/account-info/v3/activity/security`
- Auth: one of:
  - OAuth 2
    - Authorization code: `https://app.hubspot.com/oauth/authorize`
    - Token URL: `https://api.hubapi.com/oauth/v1/token` scopes: `account-info.security.read`
  - API key in header `private-app-legacy`
- TypeScript: <https://skmtc.dev/hubspot/apis/account-test-child-api/docs/account-info/v3/activity/security/get.ts> (a function with typed inputs; its response is checked against the schema)

Get security activity

## Query parameters

- `after` string
- `limit` integer
- `userId` integer
- `fromTimestamp` integer

## Response `200`

successful operation

- CollectionResponseHydratedCriticalActionForwardPaging
  - `paging` ForwardPaging
    - `next` NextPage
      - `link` string
      - `after` string, required
  - `results` HydratedCriticalAction[], required
    - `createdAt` string, date-time, required: The time the activity took place.
    - `actingUser` string: Email address of the user associated with the activity.
    - `regionCode` string: The approximate region code
    - `infoUrl` string: A link to the URL where the action was taken in the account.
    - `countryCode` string: The approximate country code
    - `ipAddress` string: IP address where the activity originated.
    - `location` string
    - `id` string, required: The activity's unique ID.
    - `type` string, required: The type of activity.
    - `userId` integer, required: The user's unique ID.
    - `objectId` string: The ID of the affected object.

## Other responses

- `default`: An error occurred.

---

[API](https://skmtc.dev/hubspot/apis/account-test-child-api.md) - [All operations](https://skmtc.dev/hubspot/apis/account-test-child-api/llms.txt) - [OpenAPI document](https://skmtc.dev/hubspot/apis/account-test-child-api/revisions/8a3904f324f5?raw)
