---
title: "Retrieve login activity"
method: GET
path: "/account-info/2026-03/activity/login"
tags: ["Basic"]
---

# Retrieve login activity

`GET /account-info/2026-03/activity/login`

## Request

- Base URL: `https://api.hubapi.com`
- URL: `https://api.hubapi.com/account-info/2026-03/activity/login`
- Auth: one of:
  - HTTP bearer
  - API key in query parameter `hapikey`
  - none

Retrieve logs of user actions related to [login activity](https://knowledge.hubspot.com/account-management/view-and-export-account-activity-history#account-login-history).

## Query parameters

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

## Response `200`

successful operation

- AccountActivityCollectionResponsePublicLoginAuditForwardPaging
  - `paging` ForwardPaging
    - `next` NextPage: Specifies the paging information needed to retrieve the next set of results in a paginated API response
      - `after` string, required: A paging cursor token for retrieving subsequent pages.
      - `link` string: A URL that can be used to retrieve the next page results.
  - `results` AccountActivityPublicLoginAudit[], required
    - `countryCode` string: The approximate country code of the login
    - `email` string: Email address of the user associated with the login.
    - `id` string, required: The login activity's unique ID.
    - `ipAddress` string: IP address where the activity originated.
    - `location` string: The approximate location where the login activity originated.
    - `loginAt` string, date-time, required: The time the login took place.
    - `loginSucceeded` boolean, required: Whether the login was successful or not.
    - `regionCode` string: The approximate region code of the login
    - `userAgent` string: Information about the device used for logging in.
    - `userId` integer: The user's unique ID.

## Other responses

- `default`: An error occurred.

## Changes

> 14 revisions in range; 1 not diffed, 2 could not be searched.

- **2026-03-30** `dc2fdad57f7f`: 1 info
  - api operation id `get-/account-info/2026-03/activity/login_/account-info/2026-03/activity/login` removed and replaced with `get-/account-info/2026-03/activity/login`
- **2026-03-20** `e68736346c92`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/hubspot/apis/hubspot-api-specification/changes/account-info/2026-03/activity/login/get.md)

---

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