Documentation Mercado Libre

Check out all the necessary information about APIs Mercado Libre.
circulos azuis em degrade

Documentation

Last update 27/11/2026

Picture diagnostic

The picture diagnostic API checks an image before you associate it with a Global Selling listing. It returns detected issues and a short message (REMEDY_SHORT) that you can show to the seller.

Global Selling behavior
Use the global user's access token. The seller and site are derived from the token and are not sent in the request body. CBT diagnostics include minimum_size, text_logo, and watermark; they do not include white_background.

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

FieldRequiredDescription
picture_urlOne of these fields is requiredPublic, static image URL or a base64 data URL.
picture_idOne of these fields is requiredID of an image already uploaded to Mercado Libre CDN.
context.category_idEither this or domain_idCategory where the image will be used; determines applicable rules.
context.domain_idNo; can be used instead of category_idDomain used directly to determine image rules.
context.titleNoListing title. Recommended to provide context.
context.picture_typeNoUse 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

DetectionThumbnailOther
minimum_sizeDetectedNot detected
text_logoDetectedNot detected
watermarkDetectedDetected

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

DetectionMessage
minimum_sizeDoesn’t meet the minimum size, product positioning, or proportion requirements
text_logoContains logos and/or text
watermarkContains watermarks

Errors

HTTPWhen it occurs
400Neither category_id nor domain_id was sent.
401The 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.