{"operation":"conversations/list","version":"1.0.0","status":"pilot","title":"List conversations","summary":"A connected Leboncoin account's inbox, page after page: each conversation with its listing, the person on the other side, the last message and its date, and its count of unseen messages.","use_when":"You buy or sell on Leboncoin with a connected account and need its inbox: the conversations about the listings you wrote to (`role: buyer`) and about your own listings (`role: seller`), or both (the default), the most recent first, each with its listing (id, title, status, category, photo, its seller's id and whether a pro), the person on the other side (name, id), the last message as written and when, its count of messages not seen, and its link. Keep only the conversations with unseen messages (`unread`), like Leboncoin's Non lus tab. A conversation's messages are leboncoin/messages/list's: give it the conversation's `id`. Private and pro accounts alike.","categories":["Cars","Real estate","E-commerce"],"icon":"inbox","source":"leboncoin","input":{"type":"object","additionalProperties":false,"properties":{"role":{"enum":["all","buyer","seller"],"default":"all","description":"Which conversations: `buyer`, those about listings the account wrote to (Leboncoin's Achats tab); `seller`, those about the account's own listings (Ventes); `all`, both."},"unread":{"type":"boolean","default":false,"description":"Only the conversations with messages the account has not seen (Leboncoin's Non lus tab)."},"account":{"type":"string","pattern":"^acc_[A-Za-z0-9]+$","description":"The connected Leboncoin account whose inbox to read (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 inbox and filters 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":{"role":"<as written>","unread":"<as written>","cursor":"<opaque>"}},"record":{"type":"object","additionalProperties":false,"required":["object","id","position","role","url","listing","other","last_message","unread_count","account","source_url","observed_at"],"properties":{"object":{"const":"conversation"},"id":{"type":"string","description":"The conversation's id on Leboncoin: leboncoin/messages/list reads its messages."},"position":{"type":"integer","minimum":1,"description":"Its rank in the inbox, across pages (51 is the first of page 2); a filter leaves gaps."},"role":{"enum":["buyer","seller"],"description":"buyer: the account wrote about someone else's listing; seller: about the account's own."},"url":{"type":"string","format":"uri","description":"The conversation on leboncoin.fr (www.leboncoin.fr/messages/id/<id>)."},"listing":{"type":["object","null"],"description":"The listing the conversation is about.","properties":{"id":{"type":["string","null"],"description":"leboncoin/listings/get reads it whole."},"title":{"type":["string","null"]},"status":{"type":["string","null"],"description":"As Leboncoin says it: active, deleted (no longer online)."},"category_id":{"type":["string","null"],"description":"Leboncoin's category number: 2 for cars, 9 for flats and houses for sale."},"photo_url":{"type":["string","null"]},"owner_id":{"type":["string","null"],"description":"Its seller's id: the account's own when `role` is seller."},"owner_type":{"type":["string","null"],"description":"professional or private; null once the listing is deleted."}}},"other":{"type":["object","null"],"description":"The person on the other side: the seller when the account buys, the buyer when it sells.","properties":{"id":{"type":["string","null"]},"name":{"type":["string","null"],"description":"As Leboncoin shows it: a pseudonym, or a pro store name (RENAULT ETAMPES)."}}},"last_message":{"type":["object","null"],"properties":{"text":{"type":["string","null"],"description":"Its preview, as written."},"sent_at":{"type":["string","null"],"format":"date-time"},"attachments_count":{"type":["integer","null"],"description":"How many photos or files it carries."}}},"unread_count":{"type":["integer","null"],"description":"How many messages the account has not seen."},"account":{"type":["string","null"],"description":"The connected account it was read with, when one was named."},"source_url":{"type":"string","format":"uri","description":"The inbox on leboncoin.fr."},"observed_at":{"type":"string","format":"date-time"}}},"price":{"credits_per_call":1,"description":"1 credit a page of up to 50 conversations. An empty page, a busy account and a failed call are free.","free":["empty","failed","account_rate_limited","account_quota_exceeded","site_challenge"]},"deadline":{"default_s":30,"max_s":60},"errors":[{"code":"invalid_options","status":422,"detail":true,"message":"`role` is all, buyer or seller; `unread` is true or false."},{"code":"invalid_cursor","status":422,"message":"This cursor was not given by an answer; send `next` from the last answer as it is."},{"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":{"unread":true},"records":[{"object":"conversation","id":"0a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d","position":1,"role":"buyer","url":"https://www.leboncoin.fr/messages/id/0a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d","listing":{"id":"3000000001","title":"Renault Clio V 1.0 TCe 90 Evolution","status":"active","category_id":"2","photo_url":"https://img.leboncoin.fr/api/v1/lbcpb1/images/00/00/00/0000000000000000000000000000000000000000.jpg?rule=ad-thumb","owner_id":"11111111-2222-4333-8444-555555555555","owner_type":"professional"},"other":{"id":"11111111-2222-4333-8444-555555555555","name":"GARAGE DU CENTRE"},"last_message":{"text":"Bonjour, oui le véhicule est toujours disponible","sent_at":"2026-11-30T10:56:52Z","attachments_count":0},"unread_count":1,"account":null,"source_url":"https://www.leboncoin.fr/messages","observed_at":"2026-12-01T12:00:00Z"}]}],"health":{"every_h":3,"canaries":[{"account":"monitoring"},{"account":"monitoring","unread":true}],"required_fields":["id","url"]},"changelog":[{"version":"1.0.0","date":"2026-12-01","notes":"First version: a connected Leboncoin account's inbox, private or pro, 50 conversations a page, each with its listing, the person on the other side, the last message, its unseen count and its link; as a buyer, a seller or both, and only the unread ones."}],"object":"operation","id":"leboncoin/conversations/list","site":{"title":"Leboncoin","domain":"leboncoin.fr","color":"#FF7A3D"}}