---
title: "Generates the report identified by the provided report type"
method: POST
path: "/v1.0/mireports"
tags: ["MiReports"]
---

# Generates the report identified by the provided report type

`POST /v1.0/mireports`

## Request body

- union — The parameters based on which the report will be generated
  - CustomMiReportParams
    - `reportType` 'LIST_OF_ACCOUNTS_USERS_CONTACTS' | 'COMPLETED_WORK' | 'REGULATOR_OUTSTANDING_REQUEST_TASKS' | 'LIST_OF_ACCOUNTS_ASSIGNED_REGULATOR_SITE_CONTACTS' | 'LIST_OF_VERIFICATION_BODY_USERS' | 'CUSTOM'
    - `sqlQuery` string, required
  - EmptyMiReportParams
    - `reportType` 'LIST_OF_ACCOUNTS_USERS_CONTACTS' | 'COMPLETED_WORK' | 'REGULATOR_OUTSTANDING_REQUEST_TASKS' | 'LIST_OF_ACCOUNTS_ASSIGNED_REGULATOR_SITE_CONTACTS' | 'LIST_OF_VERIFICATION_BODY_USERS' | 'CUSTOM'
  - ExecutedRequestActionsMiReportParams
    - `reportType` 'LIST_OF_ACCOUNTS_USERS_CONTACTS' | 'COMPLETED_WORK' | 'REGULATOR_OUTSTANDING_REQUEST_TASKS' | 'LIST_OF_ACCOUNTS_ASSIGNED_REGULATOR_SITE_CONTACTS' | 'LIST_OF_VERIFICATION_BODY_USERS' | 'CUSTOM'
    - `fromDate` string, date, required
    - `toDate` string, date
  - OutstandingRegulatorRequestTasksMiReportParams
    - `reportType` 'LIST_OF_ACCOUNTS_USERS_CONTACTS' | 'COMPLETED_WORK' | 'REGULATOR_OUTSTANDING_REQUEST_TASKS' | 'LIST_OF_ACCOUNTS_ASSIGNED_REGULATOR_SITE_CONTACTS' | 'LIST_OF_VERIFICATION_BODY_USERS' | 'CUSTOM'
    - `requestTaskTypes` string[]
    - `userIds` string[]

## Response `200`

OK

- MiReportResult
  - `reportType` 'LIST_OF_ACCOUNTS_USERS_CONTACTS' | 'COMPLETED_WORK' | 'REGULATOR_OUTSTANDING_REQUEST_TASKS' | 'LIST_OF_ACCOUNTS_ASSIGNED_REGULATOR_SITE_CONTACTS' | 'LIST_OF_VERIFICATION_BODY_USERS' | 'CUSTOM', required
  - `columnNames` string[], required

## Other responses

- `400` — Bad Request Error Code | Description MIREPORT1000 | Invalid MI Report type
- `500` — Internal Server Error

---

[API](https://skmtc.dev/beis/apis/api-documentation.md) · [All operations](https://skmtc.dev/beis/apis/api-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/beis/api-documentation/revisions/ba0dc929313e/schema)
