{"operation":"messages/list","version":"1.1.0","status":"pilot","title":"List a Marketplace conversation's messages","summary":"The messages of one of a connected Facebook account's Marketplace conversations, the latest first and page after page back to the first: who wrote, what, when, with the photos, cards and reactions, and whether the other side read it.","use_when":"You sell (or buy) on Facebook Marketplace with a connected account and need what was said in a conversation, not only its last message: each message's text as written, who sent it (the account, or the person on the other side, with their name), when, its photos and files, shared cards, reactions, the message it replies to, and whether the other side has read the account's messages. Give the conversation's id or its link, as facebook_marketplace/conversations/list returns them; `next` goes back in time, about 20 messages a page, to the conversation's first. Reading sends nothing back: no read receipt, nothing the other person sees.","categories":["E-commerce","Lead generation"],"icon":"comments","source":"facebook_marketplace","input":{"type":"object","additionalProperties":false,"required":["conversation"],"properties":{"conversation":{"type":"string","maxLength":2000,"description":"The conversation: its id, or its link in Messenger (facebook.com/messages/t/<id>), as facebook_marketplace/conversations/list gives them (`id`, `url`).","examples":["3023645970986157","https://www.facebook.com/messages/t/3023645970986157/"]},"account":{"type":"string","description":"The connected Facebook account the conversation is in (GET /v2/accounts). Left out, the platform takes the first of your Facebook 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":"facebook"},"limits":{"per_account":{"calls":1,"per_s":4,"jitter_s":[0,3]},"daily_per_account":1000,"when_busy":{"error":"account_rate_limited","retry_after":true}},"pagination":{"style":"cursor","page_size":20,"next":{"cursor":"<opaque>"}},"record":{"type":"object","additionalProperties":false,"required":["object","id","position","conversation_id","text","sent_at","sender","is_admin_message","attachments","sticker_id","reactions","reply_to","mentions","read_by_other","is_forwarded","is_unsent","unsent_at","edit_count","url","source_url","observed_at"],"properties":{"object":{"const":"message"},"id":{"type":"string","description":"The message's id on Facebook (mid.$...)."},"position":{"type":"integer","minimum":1,"description":"Its rank from the latest: 1 is the last message written."},"conversation_id":{"type":"string","description":"The conversation's id, as conversations/list's `id`."},"text":{"type":["string","null"],"description":"As written; Facebook's own line for an event (Daniel sold 1 Bed 1 Bath Apartment/condo.) when `is_admin_message`; null for a message of photos or a sticker only."},"sent_at":{"type":["string","null"],"format":"date-time"},"sender":{"type":"object","properties":{"id":{"type":["string","null"],"description":"Their Facebook id: facebook_marketplace/sellers/get reads a seller by it."},"name":{"type":["string","null"]},"photo_url":{"type":["string","null"]},"is_account":{"type":["boolean","null"],"description":"Whether the connected account wrote it."}}},"is_admin_message":{"type":"boolean","description":"Facebook's own line (a listing sold, a name changed), not a person's."},"attachments":{"type":"array","description":"Its photos, videos, voice messages and files (`kind: file`), and shared cards (`kind: card`), in order.","items":{"type":"object","additionalProperties":false,"required":["kind","id","index","type","filename","size","url","mime_type","preview_url","width","height","duration_ms","title","subtitle","description","action_url"],"properties":{"kind":{"enum":["file","card"]},"id":{"type":["string","null"]},"index":{"type":["integer","null"]},"type":{"type":["integer","null"],"description":"Messenger's code for it (2: a photo, 7: a card...)."},"filename":{"type":["string","null"]},"size":{"type":["integer","null"],"description":"In bytes."},"url":{"type":["string","null"],"description":"The file itself; Facebook signs the link for a few days."},"mime_type":{"type":["string","null"]},"preview_url":{"type":["string","null"]},"width":{"type":["integer","null"]},"height":{"type":["integer","null"]},"duration_ms":{"type":["integer","null"],"description":"A video or a voice message."},"title":{"type":["string","null"],"description":"A card's title (Facebook's own line when it is gone)."},"subtitle":{"type":["string","null"]},"description":{"type":["string","null"]},"action_url":{"type":["string","null"],"description":"Where a card leads."}}}},"sticker_id":{"type":["string","null"]},"reactions":{"type":"array","items":{"type":"object","properties":{"reaction":{"type":["string","null"],"description":"The emoji."},"by_id":{"type":["string","null"]},"at":{"type":["string","null"],"format":"date-time"}}}},"reply_to":{"type":["object","null"],"description":"The message it answers, when it is a reply.","properties":{"message_id":{"type":["string","null"]},"text":{"type":["string","null"]},"sender_id":{"type":["string","null"]},"media_url":{"type":["string","null"]},"sent_at":{"type":["string","null"],"format":"date-time"}}},"mentions":{"type":"array","items":{"type":"object","properties":{"offset":{"type":["integer","null"]},"length":{"type":["integer","null"]},"id":{"type":["string","null"]},"type":{"type":["string","null"]}}}},"read_by_other":{"type":["boolean","null"],"description":"For the account's own messages: whether the person on the other side has read it (how far they read, as Messenger says). Null for their messages, or when Facebook does not say."},"is_forwarded":{"type":"boolean"},"is_unsent":{"type":"boolean","description":"Taken back by its sender: its text is gone."},"unsent_at":{"type":["string","null"],"format":"date-time"},"edit_count":{"type":"integer","minimum":0},"url":{"type":"string","format":"uri","description":"The conversation in Messenger."},"source_url":{"type":"string","format":"uri"},"observed_at":{"type":"string","format":"date-time"}}},"price":{"credits_per_call":1,"description":"1 credit a page of about 20 messages. An empty page, a busy account and a failed call are free.","free":["empty","failed","account_rate_limited"]},"deadline":{"default_s":30,"max_s":60},"errors":[{"code":"invalid_options","status":422,"detail":true,"message":"`conversation` is a conversation's id or its link (facebook.com/messages/t/<id>), as facebook_marketplace/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":"not_found","status":404,"message":"The account has no Marketplace conversation with this id: list its conversations with facebook_marketplace/conversations/list, with the same account."},{"code":"account_required","status":422,"message":"You have no connected Facebook account. Connect one with POST /v2/accounts {\"site\": \"facebook\", \"cookies\": ...}: the cookies of a browser where you are logged in to facebook.com (https://docs.lobstr.io/accounts)."},{"code":"account_rate_limited","status":429,"retryable":true,"detail":true,"message":"This Facebook account cannot read right now: it pauses a few seconds between two calls, makes 1,000 a day, and Facebook 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_unusable","status":409,"message":"Facebook logged this account out or asks it a security check. Open facebook.com in the browser the account comes from, then connect it again with POST /v2/accounts and fresh cookies (the same account keeps its id)."},{"code":"site_unavailable","status":503,"retryable":true,"message":"Facebook did not answer properly; retry later (not charged)."},{"code":"unexpected_answer","status":424,"retryable":false,"message":"Facebook answered in a shape we do not read yet; we are told and fix it (not charged)."}],"examples":[{"request":{"conversation":"3023645970986157"},"records":[{"object":"message","id":"mid.$gAAq9_XAG9K1xJgcJZ1q9MG-zBTSr","position":1,"conversation_id":"3023645970986157","text":"Thanks!","sent_at":"2019-05-26T15:28:19Z","sender":{"id":"1095825462","name":"Alex Morgan","photo_url":"https://scontent.xx.fbcdn.net/v/t1.30497-1/84628273_176159830277856_972693363922829312_n.jpg","is_account":true},"is_admin_message":false,"attachments":[],"sticker_id":null,"reactions":[],"reply_to":null,"mentions":[],"read_by_other":false,"is_forwarded":false,"is_unsent":false,"unsent_at":null,"edit_count":0,"url":"https://www.facebook.com/messages/t/3023645970986157/","source_url":"https://www.facebook.com/messages/t/3023645970986157/","observed_at":"2026-11-29T16:00:00Z"},{"object":"message","id":"mid.$gAAq9_XAG9K1xJfqYUFq9LhJu-3X8","position":2,"conversation_id":"3023645970986157","text":"Good luck with your search","sent_at":"2019-05-26T15:04:25Z","sender":{"id":"533826471","name":"Sam Rivers","photo_url":"https://scontent.xx.fbcdn.net/v/t1.30497-1/143086968_2856368904622192_1959732218791162459_n.jpg","is_account":false},"is_admin_message":false,"attachments":[],"sticker_id":null,"reactions":[],"reply_to":null,"mentions":[],"read_by_other":null,"is_forwarded":false,"is_unsent":false,"unsent_at":null,"edit_count":0,"url":"https://www.facebook.com/messages/t/3023645970986157/","source_url":"https://www.facebook.com/messages/t/3023645970986157/","observed_at":"2026-11-29T16:00:00Z"}]}],"health":{"every_h":3,"canaries":[{"from":"facebook_marketplace/conversations/list","into":"conversation","account":"monitoring","min_records":1},{"from":"facebook_marketplace/conversations/list","from_field":"url","into":"conversation","account":"monitoring","min_records":1}],"required_fields":["id","sent_at","sender.id"]},"changelog":[{"version":"1.1.0","date":"2026-11-29","notes":"The whole conversation: `next` goes back in time, about 20 messages a page, to its first message, asked as Messenger's page asks them when it is scrolled up."},{"version":"1.0.0","date":"2026-11-29","notes":"First version: a Marketplace conversation's latest messages (about 20), each with its text, its sender and their name, when, its photos, files and cards, reactions, the message it replies to, and whether the other side read the account's messages. Older messages come with 1.1.0."}],"object":"operation","id":"facebook_marketplace/messages/list","site":{"title":"Facebook Marketplace","domain":"facebook.com/marketplace","color":"#6C8CFF"}}