---
title: "Get control trend"
method: GET
path: "/compliance/api/v1/controls/{controlId}/trend"
tags: ["compliance"]
---

# Get control trend

`GET /compliance/api/v1/controls/{controlId}/trend`

## Request

- Base URL: `https://api.opengovernance.io`
- URL: `https://api.opengovernance.io/compliance/api/v1/controls/{controlId}/trend`
- Auth: API key in header `Authorization`

## Path parameters

- `controlId` string, required

## Query parameters

- `integrationId` string[]
- `connectionGroup` string[]
- `startTime` integer
- `endTime` integer
- `granularity` 'daily' | 'monthly'

## Response `200`

OK

- GithubComOpengovernOpengovernancePkgComplianceApiControlTrendDatapoint[]
  - `failedConnectionCount` integer
  - `failedResourcesCount` integer
  - `timestamp` integer: Time
  - `totalConnectionCount` integer
  - `totalResourcesCount` integer

---

[API](https://skmtc.dev/opengovern/apis/opengovernance-service-api.md) - [All operations](https://skmtc.dev/opengovern/apis/opengovernance-service-api/llms.txt) - [OpenAPI document](https://skmtc.dev/opengovern/apis/opengovernance-service-api/revisions/ab05295c4094?raw)
