List a conversation's messages
The messages of one of a connected Leboncoin account's conversations, oldest first, page after page: who wrote, what, when, whether each side has read it, and Leboncoin's ready-made messages told apart.
leboncoin/messages/list3 credits a callv1.0.0When to use it
You buy or sell on Leboncoin with a connected account and need what was said in a conversation, not only its last message: each message's text as written, whether the account or the person on the other side wrote it, when, whether the account has read it and whether the other side has read the account's, its attachments, and whether it is one of Leboncoin's ready-made messages (kind: template, with its template's id: "Is it still available?" and its answers). Give the conversation's id or its link, as leboncoin/conversations/list returns them. Reading leaves the conversation as it was: its messages stay unseen for the account's owner.
Try it
The options on the left write the call; the answer on the right is the contract's example. With your API key, the same call returns live data.
curl https://api.lobstr.io/v2/run \ -H "Authorization: Bearer $LOBSTR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "source": "leboncoin", "operation": "messages/list", "options": { "conversation": "0a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d" } }'
An example answer. Run it on your own input.
{ "object": "run", "id": "run_nupgxmwjymlxdmpvye6m2cjaki", "livemode": true, "source": "leboncoin", "operation": "messages/list", "version": "1.0.0", "schema_url": "https://api.lobstr.io/v2/catalog/leboncoin/messages/list", "options": { "conversation": "0a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d" }, "fields": null, "status": "succeeded", "count": 2, "has_more": false, "next": null, "cost": { "credits": 3 }, "results": [ { "object": "message", "id": "ac4b8090-ed4d-11f1-8080-808080808080", "position": 1, "conversation_id": "0a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d", "text": "Bonjour GARAGE DU CENTRE,\n\nVotre annonce « Renault Clio V 1.0 TCe 90 Evolution » m'intéresse. Est-elle toujours disponible ?\n\nMerci d'avance !", "kind": "template", "template": { "id": "vehicles_availability", "modified": true }, "sent_at": "2026-11-30T07:08:48Z", "from_account": true, "read": true, "read_by_other": true, "attachments": [], "source_url": "https://www.leboncoin.fr/messages/id/0a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d", "observed_at": "2026-12-01T12:00:00Z" }, { "object": "message", "id": "d186d460-dda6-11f1-8080-808080808080", "position": 2, "conversation_id": "0a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d", "text": "Bonjour, oui le véhicule est toujours disponible", "kind": "text", "template": null, "sent_at": "2026-11-30T10:56:52Z", "from_account": false, "read": false, "read_by_other": true, "attachments": [], "source_url": "https://www.leboncoin.fr/messages/id/0a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d", "observed_at": "2026-12-01T12:00:00Z" } ] }
Options
conversationstringrequiredid, url).accountstringcursorstringnext in an answer, as it is: opaque, and only for the conversation it was given with (otherwise invalid_cursor).Record
Each record of results, in the envelope every call returns (Run an operation).
objectstringidstringpositionintegerconversation_idstringid.textstringkindstringtemplate.idstringtemplate.modifiedbooleansent_atdatefrom_accountbooleanreadbooleanread_by_otherbooleanattachmentslistsource_urlstringobserved_atdateErrors
Its own, besides those of every call (Errors). A failed call is free.
| Code | Status | What it means |
|---|---|---|
invalid_options | 422 | Pass conversation: a conversation's id or its link (https://www.leboncoin.fr/messages/id/ |
invalid_cursor | 422 | This cursor was not given by an answer; send next from the last answer as it is. |
conversation_not_found | 404 | This account has no such conversation: it is another account's, or it was deleted. List the account's own with leboncoin/conversations/list (not charged). |
account_required | 422 | You have no connected Leboncoin account. Connect one with POST /v2/accounts {"site": "leboncoin", "cookies": ...}, the cookies of a browser where you are logged in to Leboncoin (https://docs.lobstr.io/accounts). |
account_rate_limited | 429 | This Leboncoin account cannot read right now: it pauses a few seconds between two calls, makes 600 a day across the messaging operations, and Leboncoin can slow it down. retry_after says when it can again, in seconds. Retrying before then gets this same answer: nothing is queued. Retryable. |
account_quota_exceeded | 429 | This Leboncoin account reached its calls for today; retry_after says when the day starts over (midnight UTC). Retryable. |
account_unusable | 409 | Leboncoin logged this account out. Connect it again with POST /v2/accounts and fresh cookies from a browser where you are logged in (the same login keeps its id). |
site_challenge | 503 | Leboncoin asked this account to prove it is a person. Open leboncoin.fr in the browser the account syncs from, then retry (not charged). Retryable. |
site_unavailable | 503 | Leboncoin did not answer properly; retry later (not charged). Retryable. |
unexpected_answer | 424 | Leboncoin answered in a shape we do not read yet; we are told and fix it (not charged). |
Price
3 credits a page of up to 50 messages. An empty page, a busy account and a failed call are free. What a credit costs on each plan: Credits and pricing.
Each connected account makes one call every 5 seconds, plus 0 to 3 seconds and 600 a day; a busy account answers at once with account_rate_limited and retry_after.
Changelog
1.0.02026-12-01