---
title: "Analyses an uploaded letter (multipart/form-data, one file in the field \"file\": PDF, PNG, JPEG or WebP)."
method: POST
path: "/api/lei-complaint/analyze"
tags: ["LeiComplaint"]
---

# Analyses an uploaded letter (multipart/form-data, one file in the field "file": PDF, PNG, JPEG or WebP).

`POST /api/lei-complaint/analyze`

## Request

- Base URL: `https://api2.globalfinreg.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api2.globalfinreg.com/api/lei-complaint/analyze`
- Auth: API key in header `Authorization`

## Headers

- `x-imp-userid` string

## Response `200`

The analysis, or that the letter is Global FinReg's own or may impersonate Global FinReg.

## Other responses

- `400`: No file, an empty file, or a file that isn't a PDF, PNG, JPEG or WebP.
- `413`: The file is larger than the upload limit.
- `422`: The document couldn't be read or analysed.
- `429`: Too many analyses; try again later.
- `502`: The analysis service failed.

---

[API](https://skmtc.dev/globalfinreg/apis/registration-agents-api-documentation.md) · [All operations](https://skmtc.dev/globalfinreg/apis/registration-agents-api-documentation/llms.txt) · [OpenAPI document](https://skmtc.dev/globalfinreg/apis/registration-agents-api-documentation/revisions/97e306fd0c82?raw)
