Documentation Mercado Libre
Check out all the necessary information about APIs Mercado Libre.
Documentation
Last update 27/11/2026
Picture diagnostic
When and how to use it
Diagnose an image when it is uploaded, before associating it with a listing. Send either picture_url or picture_id, never both.
curl -X POST -H 'Authorization: Bearer $ACCESS_TOKEN' \
-H 'Content-Type: application/json' \
'https://api.mercadolibre.com/moderations/pictures/diagnostic' \
-d '{
"picture_url": "https://example.com/image.jpg",
"context": {
"category_id": "MLB135384",
"title": "Huawei Watch Gt 2 46 Mm",
"picture_type": "thumbnail"
}
}'
Request fields
| Field | Required | Description |
|---|---|---|
picture_url | One of these fields is required | Public, static image URL or a base64 data URL. |
picture_id | One of these fields is required | ID of an image already uploaded to Mercado Libre CDN. |
context.category_id | Either this or domain_id | Category where the image will be used; determines applicable rules. |
context.domain_id | No; can be used instead of category_id | Domain used directly to determine image rules. |
context.title | No | Listing title. Recommended to provide context. |
context.picture_type | No | Use thumbnail or other when known. Without it, the API returns diagnostics for all three image types. |
Category and domain behavior
- If neither category_id nor domain_id is sent, the API returns HTTP 400 before analyzing the image.
- If only category_id is sent, the domain is resolved from the category. If the category does not exist, a generic domain is used.
- If domain_id is sent, it is used directly without validating the category.
- If the domain has no image quality configuration, only minimum_size is evaluated using rules for other.
Detections by picture type
| Detection | Thumbnail | Other |
|---|---|---|
minimum_size | Detected | Not detected |
text_logo | Detected | Not detected |
watermark | Detected | Detected |
Response
{
"id": "",
"picture_hash": "06a4afe417c0d750b08fcad464126101",
"diagnostics": [
{
"picture_type": "thumbnail",
"action": "diagnostic",
"detections": [
{ "name": "text_logo",
"wordings": [ { "kind": "REMEDY_SHORT", "value": "Contains logos and/or text" } ] }
]
}
]
}
Response fields
- id: Diagnostic identifier. The CBT example returns an empty string when the request does not send an ID.
- picture_hash: Image hash; the same image returns the same hash.
- diagnostics: Results for the evaluated image type or types.
- picture_type: Type of image evaluated.
- action: diagnostic indicates issues were found; empty indicates no issue was returned for the evaluated rules.
- detections[].name: Detected issue: minimum_size, text_logo, or watermark.
- wordings[].kind: Always REMEDY_SHORT.
- wordings[].value: Short message to show to the seller. The CBT definition says messages currently arrive in English.
REMEDY_SHORT messages
| Detection | Message |
|---|---|
minimum_size | Doesn’t meet the minimum size, product positioning, or proportion requirements |
text_logo | Contains logos and/or text |
watermark | Contains watermarks |
Errors
| HTTP | When it occurs |
|---|---|
| 400 | Neither category_id nor domain_id was sent. |
| 401 | The access token is invalid or expired. |
Best practices
- Diagnose each image during upload, before associating it with the listing.
- Send picture_type when you know where the image will be used.
- Show the returned messages to the seller.
- If the API fails, do not block the listing flow; inform the seller that the image could not be validated.