---
title: "Get Max Approved End Time"
method: POST
path: "/approvalflowrequest/max-approved-end-time"
tags: ["Access Requests"]
---

# Get Max Approved End Time

`POST /approvalflowrequest/max-approved-end-time`

## Request

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

Returns the maximum (latest) approved end date across active approved access requests matching the user and any of the provided group IDs. found=false means no matching AR (not an access denial).

## Request body

- JumpcloudIngressoGetMaxApprovedEndTimeRequest: GetMaxApprovedEndTimeRequest looks up the latest approved AR end time for a user across group IDs.
  - `groupIds` string[]: Eligible JC user group IDs from Step 1 (union of resource + credential policies). Min 1.
  - `organizationObjectId` string, byte
  - `userId` string: JumpCloud user ID (requestor) — hex ObjectId string.

## Response `200`

A successful response.

- JumpcloudIngressoGetMaxApprovedEndTimeResponse: GetMaxApprovedEndTimeResponse returns found=false when no matching active approved AR exists.
  - `approvedEndTime` string: RFC3339 timestamp of the maximum (latest) expiration_date across matching ARs.
  - `approvedStartTime` string: RFC3339 session_start_date from the AR that owns approved_end_time (empty if unset).
  - `found` boolean

---

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