---
title: "List latest client portal logins for the firm"
method: GET
path: "/firm/crm/portal-logins"
tags: ["CRM"]
---

# List latest client portal logins for the firm

`GET /firm/crm/portal-logins`

## Request

- Base URL: `https://ledgerhq.pro/api/v1`
- URL: `https://ledgerhq.pro/api/v1/firm/crm/portal-logins`
- Auth: one of:
  - HTTP bearer and API key in header `x-organization-id`
  - HTTP bearer and API key in header `x-organization-id`

Returns client contacts whose latest successful portal login falls in a lookback window (2d, 7d, or 6m) or an explicit from/to range as YYYY-MM-DD. This is latest state, not login-event history. Last login before this capability shipped is empty.

## Query parameters

- `window` '2d' | '7d' | '6m'
- `from` string, date
- `to` string, date
- `companyOrganizationId` string, uuid
- `page` integer
- `pageSize` 25 | 50 | 100

## Response `200`

Latest portal-login stamps in the selected window

## Other responses

- `default`: Error response

---

[API](https://skmtc.dev/ledgerhq-pro/apis/ledgerhq-bookkeeping-api.md) · [All operations](https://skmtc.dev/ledgerhq-pro/apis/ledgerhq-bookkeeping-api/llms.txt) · [OpenAPI document](https://skmtc.dev/ledgerhq-pro/apis/ledgerhq-bookkeeping-api/revisions/9a8269f0a586?raw)
