Search + K

Command Palette

Search for a command to run...

Sign In

Retrieve login activity

GET /account-info/v3/activity/login
Copy endpoint
https://api.hubapi.com

Retrieve logs of user actions related to login activity.

Parameters

query Query Parameters

Name Type
after

The cursor token value to get the next set of results. You can get this from the paging.next.after JSON property of a paged response containing more results.

string
limit

The maximum number of results to display per page. Max value of limit is 200.

number
userId

The ID of a user, for retrieving user-specific logs.

number

Responses

200 application/json

successful operation

interface CollectionResponsePublicLoginAuditForwardPaging {
paging?: ForwardPaging
interface ForwardPaging {
next?: NextPage35;
}
;
results: PublicLoginAudit

Details about the a particular login activity for a HubSpot account.

interface PublicLoginAudit {
countryCode?: string;
email?: string;
id: string;
ipAddress?: string;
location?: string;
loginAt: string;
loginSucceeded: boolean;
regionCode?: string;
userAgent?: string;
userId?: number;
}
[]
;
}
default */*

An error occurred.

interface Error1 {
category: string;
context?: { };
correlationId: string;
errors?: ErrorDetail1
interface ErrorDetail1 {
code?: string;
context?: { };
in?: string;
message: string;
subCategory?: string;
}
[]
;
links?: { };
message: string;
subCategory?: string;
}