---
title: "Query for historic milestone instances"
method: POST
path: "/cmmn-query/historic-milestone-instances"
tags: ["History Milestone", "Query"]
---

# Query for historic milestone instances

`POST /cmmn-query/historic-milestone-instances`

## Request

- Base URL: `https://developer-docs.flowable.com/cmmn-api`
- URL: `https://developer-docs.flowable.com/cmmn-api/cmmn-query/historic-milestone-instances`
- Auth: HTTP basic
- TypeScript: <https://skmtc.dev/flowable/apis/flowable-cmmn-rest-api/docs/cmmn-query/historic-milestone-instances/post.ts> (a function with typed inputs; its response is checked against the schema)

All supported JSON parameter fields allowed are exactly the same as the parameters found for getting a collection of historic milestone instances, but passed in as JSON-body arguments rather than URL-parameters to allow for more advanced querying and preventing errors with request-uri’s that are too long.

## Request body

- HistoricMilestoneInstanceQueryRequest
  - `start` integer
  - `size` integer
  - `sort` string
  - `order` string
  - `id` string
  - `name` string
  - `caseInstanceId` string
  - `caseDefinitionId` string
  - `reachedBefore` string, date-time
  - `reachedAfter` string, date-time

## Response `200`

Indicates request was successful and the milestone instances are returned

- DataResponseHistoricMilestoneInstanceResponse
  - `data` HistoricMilestoneInstanceResponse[]
    - `id` string
    - `name` string
    - `elementId` string
    - `timestamp` string, date-time
    - `caseInstanceId` string
    - `caseDefinitionId` string
    - `url` string
    - `historicCaseInstanceUrl` string
    - `caseDefinitionUrl` string
  - `total` integer
  - `start` integer
  - `sort` string
  - `order` string
  - `size` integer

## Other responses

- `400`: Indicates an parameter was passed in the wrong format. The status-message contains additional information.

---

[API](https://skmtc.dev/flowable/apis/flowable-cmmn-rest-api.md) - [All operations](https://skmtc.dev/flowable/apis/flowable-cmmn-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/flowable/apis/flowable-cmmn-rest-api/revisions/afdfa1fcacd0?raw)
