E-commerce
Mercado Livre in your product and your AI agents, through one API
The Mercado Livre toolkit covers the seller account, listing search and details, category prediction and attributes, creating and updating listings and their descriptions, orders, and buyer questions. Your customer connects their seller account once with OAuth, and your product or AI agent runs each operation through Connect, which stores and renews the credentials and logs every execution.
15 days to try it. No credit card.
POST https://connect.reportei.com/api/tools/mercado_livre_create_item/execute
Authorization: Bearer <merchant token>
x-customer-token: <customer token>
Content-Type: application/json
Accept: application/json
{
"customer_toolkit": "<connection UUID>",
"arguments": {
"family_name": "<family_name>",
"category_id": "<category_id>",
"price": 1,
"currency_id": "<currency_id>",
"available_quantity": 1,
"buying_mode": "buy_it_now",
"listing_type_id": "<listing_type_id>"
}
}How it works
From a connected customer to the first Mercado Livre call.
- 1
Your customer connects the account
Your system opens a Connect session for the toolkit and your customer connects their Mercado Livre account. You get the connection id.
- 2
Your product calls the tool
A POST to /api/tools/{tool}/execute with the connection id and arguments. On success, Connect preserves the app's response status and body.
- 3
Connect handles the rest
It stores the credential encrypted, renews tokens for OAuth connections that support renewal and records executions in an audit trail available through the API.
Use cases
What your product does with Mercado Livre.
Publish listings from your catalog
Predict the category from a title, read its required attributes and create the item and its description from your own product data.
Order and stock sync
Search the seller's orders and read each sale with items, payments and shipping id to feed your ERP or fulfilment flow.
Agent answers buyer questions
An AI agent lists unanswered questions on the seller's listings and publishes the answer through Answer question.
Tools
14 Mercado Livre tools
- Get current userGETReturns the connected seller account: id, nickname, email, site_id and seller reputation. The id is the user_id, seller and seller_id of the other tools, and site_id (MLB in Brazil) goes in Search categories.
- Search itemsGETLists the ids of the listings of the seller, 50 per page by default. results has only item ids: List items returns their details. Page with offset and limit; past 1000 results use search_type scan and the scroll_id of each response.
- List itemsGETReturns up to 20 listings by id in one call: title, price, available_quantity, sold_quantity, status, permalink, pictures and attributes. Each element has status_code, id and the listing in body.
- Search categoriesGETPredicts the category of a product from its title, with the domain and the attributes recognized in the text. The first result is the most likely. Its category_id goes in Create item and in List category attributes.
- List category attributesGETLists the attributes of a category with their id, value_type, accepted values and tags. Attributes tagged required must be sent in Create item, and new_required ones when the item is new.
- Create itemPOSTPublishes a listing and returns it with its id. Under the User Products model, active for every seller, send family_name and no title: Mercado Livre builds the title. The description is added afterwards with Create item description.
- Update itemPUTChanges a listing and returns it. Only the fields sent change. status paused hides it, active brings it back and closed ends it for good. title and family_name only change while the listing has no sales.
- Get item descriptionGETReturns the description of a listing in plain_text, with date_created and last_updated.
- Create item descriptionPOSTAdds the description to a listing that has none, such as one just made with Create item. Fails with 400 when a description already exists: use Update item description.
- Update item descriptionPUTReplaces the description of a listing that already has one.
OAuth with your product's app
You register your product's OAuth app once, with POST /api/merchants/credentials/mercado_livre, and your customer authorizes the account on a consent screen. Connect renews the token when it is about to expire.
Questions about the Mercado Livre toolkit
Do I need to build against the Mercado Livre API?
No. Connect ships 14 Mercado Livre tools, described and ready. Your customer connects the account and your system calls every tool through the same endpoint, with the same request format.
How does my customer connect their Mercado Livre account?
With the mode the toolkit accepts: OAuth with your product's app. Connect stores the credential encrypted and never returns it to your system.
Does it work with AI agents?
Yes. Each tool's input is described in JSON Schema, which your agent uses directly as a tool definition. The agent picks the tool and the arguments, and your system makes the call to Connect.
Does my customer need a Reportei account?
No. Your customer connects the account on a Connect screen, or your system sends the credential through the API, and they keep using only your product.
See Connect applied to your product.
Try it for 15 days with no card, or walk our team through your use case.
