{"operation":"messages/list","version":"1.0.0","status":"pilot","title":"List a conversation's messages","summary":"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.","use_when":"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.","categories":["Cars","Real estate","E-commerce"],"icon":"comments","source":"leboncoin","input":{"type":"object","additionalProperties":false,"required":["conversation"],"properties":{"conversation":{"type":"string","maxLength":2000,"description":"The conversation: its id, or its link (https://www.leboncoin.fr/messages/id/<id>), as leboncoin/conversations/list gives them (`id`, `url`).","examples":["0a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d","https://www.leboncoin.fr/messages/id/0a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d"]},"account":{"type":"string","pattern":"^acc_[A-Za-z0-9]+$","description":"The connected Leboncoin account the conversation is in (GET /v2/accounts). Left out, the platform takes the first of your Leboncoin accounts with a free slot.","examples":["acc_7Hq2Kd9mX4pL"]},"cursor":{"type":"string","pattern":"^[A-Za-z0-9_=-]{40,8000}$","description":"Where to continue, from `next` in an answer, as it is: opaque, and only for the conversation it was given with (otherwise `invalid_cursor`)."}}},"requires":{"account":"leboncoin"},"limits":{"per_account":{"calls":1,"per_s":5,"jitter_s":[0,3]},"daily_per_account":600,"when_busy":{"error":"account_rate_limited","retry_after":true}},"pagination":{"style":"cursor","page_size":50,"next":{"conversation":"<as written>","cursor":"<opaque>"}},"record":{"type":"object","additionalProperties":false,"required":["object","id","position","conversation_id","text","kind","template","sent_at","from_account","read","read_by_other","attachments","source_url","observed_at"],"properties":{"object":{"const":"message"},"id":{"type":"string","description":"The message's id on Leboncoin."},"position":{"type":"integer","minimum":1,"description":"Its rank from the first message written: 1 opened the conversation."},"conversation_id":{"type":"string","description":"The conversation's id, as conversations/list's `id`."},"text":{"type":["string","null"],"description":"As written, a ready-made message as its writer left it."},"kind":{"type":["string","null"],"description":"text, or template: one of the ready-made messages Leboncoin offers."},"template":{"type":["object","null"],"description":"A ready-made message: which one, and whether its writer changed its words.","properties":{"id":{"type":["string","null"],"description":"Leboncoin's name for it: vehicles_availability (is the car still available?), consumergoods_availability, seller_availability_1 (a seller's answer)."},"modified":{"type":["boolean","null"],"description":"Whether its writer changed its words before sending it."}}},"sent_at":{"type":["string","null"],"format":"date-time"},"from_account":{"type":["boolean","null"],"description":"Whether the connected account wrote it; false: the person on the other side did."},"read":{"type":["boolean","null"],"description":"Whether the account has read it."},"read_by_other":{"type":["boolean","null"],"description":"Whether the person on the other side has read the account's messages up to this one."},"attachments":{"type":"array","description":"Its photos and files, as Leboncoin gives them.","items":{"type":"object"}},"source_url":{"type":"string","format":"uri","description":"The conversation on leboncoin.fr."},"observed_at":{"type":"string","format":"date-time"}}},"price":{"credits_per_call":3,"description":"3 credits a page of up to 50 messages. An empty page, a busy account and a failed call are free.","free":["empty","failed","account_rate_limited","account_quota_exceeded","site_challenge","conversation_not_found"]},"deadline":{"default_s":30,"max_s":60},"errors":[{"code":"invalid_options","status":422,"detail":true,"message":"Pass `conversation`: a conversation's id or its link (https://www.leboncoin.fr/messages/id/<id>), as leboncoin/conversations/list gives them."},{"code":"invalid_cursor","status":422,"message":"This cursor was not given by an answer; send `next` from the last answer as it is."},{"code":"conversation_not_found","status":404,"message":"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)."},{"code":"account_required","status":422,"message":"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)."},{"code":"account_rate_limited","status":429,"retryable":true,"detail":true,"message":"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."},{"code":"account_quota_exceeded","status":429,"retryable":true,"message":"This Leboncoin account reached its calls for today; `retry_after` says when the day starts over (midnight UTC)."},{"code":"account_unusable","status":409,"message":"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)."},{"code":"site_challenge","status":503,"retryable":true,"message":"Leboncoin asked this account to prove it is a person. Open leboncoin.fr in the browser the account syncs from, then retry (not charged)."},{"code":"site_unavailable","status":503,"retryable":true,"message":"Leboncoin did not answer properly; retry later (not charged)."},{"code":"unexpected_answer","status":424,"retryable":false,"message":"Leboncoin answered in a shape we do not read yet; we are told and fix it (not charged)."}],"examples":[{"request":{"conversation":"0a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d"},"records":[{"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"}]}],"health":{"every_h":3,"canaries":[{"from":"leboncoin/conversations/list","into":"conversation","account":"monitoring"},{"from":"leboncoin/conversations/list","from_field":"url","into":"conversation","account":"monitoring"}],"required_fields":["id","sent_at"]},"changelog":[{"version":"1.0.0","date":"2026-12-01","notes":"First version: the messages of a connected Leboncoin account's conversation, private or pro, oldest first, 50 a page, each with its text, its writer, its date, its read marks, its attachments and Leboncoin's ready-made messages told apart; read without marking them read."}],"object":"operation","id":"leboncoin/messages/list","site":{"title":"Leboncoin","domain":"leboncoin.fr","color":"#FF7A3D"}}