Facebook Marketplace: Send a Marketplace message
Sends a message with a connected Facebook account: the first one to a Marketplace listing's seller, or a reply in one of the account's Marketplace conversations. Answers the message as Facebook keeps it.
curl https://api.lobstr.io/v2/run \ -H "Authorization: Bearer $LOBSTR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "source": "facebook_marketplace", "operation": "messages/send", "options": { "text": "Hi! Is this still available? I can pick it up this week.", "listing": "1438514411597979" } }'
An example answer, from the contract. Run it on your own input with your API key.
{ "object": "run", "id": "run_tacrv64nwg3l6ajkspcewvmcty", "livemode": true, "source": "facebook_marketplace", "operation": "messages/send", "version": "1.0.0", "schema_url": "https://api.lobstr.io/v2/catalog/facebook_marketplace/messages/send", "options": { "listing": "1438514411597979", "text": "Hi! Is this still available? I can pick it up this week." }, "fields": null, "status": "succeeded", "count": 1, "has_more": false, "next": null, "cost": { "credits": 3 }, "results": [ { "object": "message", "id": "mid.$gAAXygFXndUuoYs0jrGiMYfZuPX9V", "position": 1, "conversation_id": "1674007894521163", "text": "Hi! Is this still available? I can pick it up this week.", "sent_at": "2026-12-01T12:14:59Z", "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/1674007894521163/", "source_url": "https://www.facebook.com/marketplace/item/1438514411597979/", "observed_at": "2026-12-01T12:15:00Z" } ] }
28 fields per message
Every call returns them for each record, in the results of its JSON answer.
Send a Marketplace message
28 fields- object
- text
- message
- id
- text
- The message's id on Facebook (mid.$...), as messages/list gives it; null when Facebook confirmed the message but its conversation did not show it yet.
- mid.$gAAXygFXndUuoYs0jrGiMYfZuPX9V
- position
- number
- Its rank from the latest: 1, the message just sent.
- 1
- conversation_id
- id
- The conversation's id, as conversations/list's `id`.
1674007894521163- text
- text
- 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.
- Hi! Is this still available? I can pick it up this week.
What it costs
Billed by the call: 3 credits. Pick how many calls a month.
3 credits a call
Calls a month
100
Built to run
Every call counts; a day is green at 99.5% successful.
- Successful calls
- 100.00%
- Median call
- 21.8 s
A call fails when the site does not answer or we cannot read its answer; a wrong input is not counted.
Frequently asked questions
What people ask before calling facebook_marketplace/messages/send.
Send a Marketplace message
When do I use it?
You buy or sell on Facebook Marketplace with a connected account and want to write to someone: give listing (a listing's id or link, as facebookmarketplace/listings/search and listings/get return them) to send its seller a first message, or conversation (as facebookmarketplace/conversations/list returns it) to reply in a conversation the account already has, never both. The answer is the message as messages/list reads it, with the conversation's id to reply in later. Each message is sent once and never retried by lobstr.io: a call that fails sent nothing, except send_unconfirmed, after which you check the conversation with facebook_marketplace/messages/list before sending again. An account sends at most 5 messages a day here, 20 to 40 seconds apart.
What do I give it?
text(required): The message, as the person reading it will see it: plain text, line breaks kept, 2,000 characters at most.listing: For a first message to its seller: the listing's id, or the link of its page (facebook.com/marketplace/item/), as facebook_marketplace/listings/search and listings/get give them. Give it or conversation, never both.conversation: For a reply: the conversation's id, or its link in Messenger (facebook.com/messages/t/), as facebookmarketplace/conversations/list gives them, or as a first message's answer says it (`conversationid ). Give it orlisting`, never both.account: The connected Facebook account that writes (GET /v2/accounts). Left out, the platform takes the first of your Facebook accounts with a message left today and a free slot.
What does it return?
Sends a message with a connected Facebook account: the first one to a Marketplace listing's seller, or a reply in one of the account's Marketplace conversations. Answers the message as Facebook keeps it. Every record has the same fields, empty ones included: they are all listed above.
How do I get the next page?
Each answer ends with next: the following call, whole. Send it as it is; it is null after the last page. A page holds 1 records at most.
Pricing
What does a call cost?
3 credits a message sent. A message Facebook refuses, a call your account's pace or daily count holds back, and a failed call are free.
When is a call free?
- a call that fails
- a call the account is too busy for (it answers with retry_after)
- a call past the account’s daily quota
Errors
What can go wrong?
invalid_options(422):textis the message, andlisting(a listing's id or link) orconversation(a conversation's id or link) says where it goes: one of the two, never both.not_found(404): Facebook shows no such listing (sold and removed, deleted, or never listed), or the account has no Marketplace conversation with this id (facebook_marketplace/conversations/list gives its conversations). Nothing was sent.cannot_message(409): Facebook does not let this account write to this listing's seller (the account's own listing, or one whose seller takes no messages). Nothing was sent.conversation_exists(409): The account already has a conversation with this seller about this listing: reply in it withconversation(facebook_marketplace/conversations/list gives it). Nothing was sent.message_refused(422): Facebook refused to send this message, in its own words below. It counts in the account's day, and the account sends nothing more here for 24 hours (retry_after), so that Facebook does not restrict it further.send_unconfirmed(502): The message left, but Facebook's confirmation did not come back. It may have been sent: check the conversation with facebook_marketplace/messages/list before sending it again. Not charged.account_required(422): 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).account_rate_limited(429, retry): This Facebook account cannot send right now: it waits 20 to 40 seconds between two messages, and Facebook can slow it down.retry_aftersays when it can again, in seconds. Retrying before then gets this same answer: nothing is queued, and nothing was sent.account_quota_exceeded(429, retry): Your Facebook accounts sent their 5 messages for today;retry_aftersays when the day starts over (midnight UTC). Nothing was sent.account_unusable(409): 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). Nothing was sent.site_unavailable(503, retry): Facebook did not answer properly before the message left; nothing was sent, retry later (not charged).unexpected_answer(424): Facebook answered in a shape we do not read yet, before the message left: nothing was sent; we are told and fix it (not charged).
How long can a call take?
60 seconds at most by default, up to 120 with timeout_s. A call past it answers timeout (408), is not charged, and can be sent again.
API and agents
Can my AI agent run it?
Yes: connect the lobstr.io MCP server (https://api.lobstr.io/v2/mcp, your API key as a Bearer token); its run_operation tool runs facebook_marketplace/messages/send. Its page for agents, in Markdown: facebook_marketplace/messages/send.md.
Where is its full description?
The contract, as JSON: https://api.lobstr.io/v2/catalog/facebook_marketplace/messages/send: every option, every field, the price and the errors. This page is drawn from it.
Ready to call it?
An API key in a minute, then the call above, from your code or your agent.