---
title: "Get identity risk login type distribution"
method: GET
path: "/identityrisk/login-types"
tags: ["Identity Risk"]
---

# Get identity risk login type distribution

`GET /identityrisk/login-types`

## Request

- Base URL: `https://console.jumpcloud.com/api/v2`
- URL: `https://console.jumpcloud.com/api/v2/identityrisk/login-types`
- Auth: API key in header `x-api-key`
- TypeScript: <https://skmtc.dev/jumpcloud/apis/jumpcloud-api-2/docs/identityrisk/login-types/get.ts> (a function with typed inputs; its response is checked against the schema)

This endpoint gets the login type distribution for identity risk detections in an organization.

**Example request:**
```
GET /api/v2/identityrisk/logintypes?start_time=2024-01-01T00:00:00Z&end_time=2024-01-31T23:59:59Z
```

## Query parameters

- `startTime` string
- `endTime` string

## Response `200`

A successful response.

- JumpcloudIdentityRiskLoginTypeDistribution
  - `loginTypes` JumpcloudIdentityRiskLoginTypeItem[]
    - `count` integer
    - `loginResource` 'TARGET_RESOURCE_TYPE_UNSPECIFIED' | 'TARGET_RESOURCE_TYPE_USER_PORTAL' | 'TARGET_RESOURCE_TYPE_ADMIN_PORTAL' | 'TARGET_RESOURCE_TYPE_APPLICATION' | 'TARGET_RESOURCE_TYPE_DEVICE': TargetResourceType is the type of resource targeted by the event (e.g. Device for login_attempt).

---

[API](https://skmtc.dev/jumpcloud/apis/jumpcloud-api-2.md) - [All operations](https://skmtc.dev/jumpcloud/apis/jumpcloud-api-2/llms.txt) - [OpenAPI document](https://skmtc.dev/jumpcloud/apis/jumpcloud-api-2/revisions/3f09fe63caaa?raw)
