---
title: "Get identity risk trend by object_id."
method: GET
path: "/identityrisk/identities/{objectId}/trend"
tags: ["Identity Risk"]
---

# Get identity risk trend by object_id.

`GET /identityrisk/identities/{objectId}/trend`

## Request

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

This endpoint returns the risk trend for a specific identity over a given period.

**Example request:**
```
GET /api/v2/identityrisk/identities/{object_id}/trend?period=7d
```

## Path parameters

- `objectId` string, byte, required

## Query parameters

- `period` string

## Response `200`

A successful response.

- JumpcloudIdentityRiskTrend
  - `comparisonPeriod` string
  - `currentDetectionCount` integer
  - `previousDetectionCount` integer

---

[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)
