---
title: "Analyze Logo"
method: POST
path: "/api/preferences/logo/analyze"
tags: ["Preferences"]
---

# Analyze Logo

`POST /api/preferences/logo/analyze`

## Request

- Base URL: `https://api.flagpost.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.flagpost.ai/api/preferences/logo/analyze`
- Auth: HTTP bearer

Analyze a logo image and return a suggested crop box.

Accepts JPEG, PNG, or WebP images up to 2MB. Returns the normalized
image as a base64 data URL along with suggested crop coordinates.

## Request body `multipart/form-data`

- BodyAnalyzeLogoApiPreferencesLogoAnalyzePost
  - `file` string, binary, required

## Response `200`

Successful Response

- LogoCropSuggestionResponse: Response from logo analysis for crop editor.
  - `image_data_url` string, required
  - `image_width` integer, required
  - `image_height` integer, required
  - `crop_x` integer, required
  - `crop_y` integer, required
  - `crop_width` integer, required
  - `crop_height` integer, required
  - `has_uniform_background` boolean, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/flagpost/apis/flagpost-api.md) - [All operations](https://skmtc.dev/flagpost/apis/flagpost-api/llms.txt) - [OpenAPI document](https://skmtc.dev/flagpost/apis/flagpost-api/revisions/0308cef485ca?raw)
