ListBridge

Docs · API reference

Listings

Create, list, update and delete listings for a connected Leboncoin account.

Category catalog

GET /api/v1/marketplaces/leboncoin/categories

Returns all category ids, labels, parent ids and available account_types. Grouping nodes have an empty account-types list. Fetch the complete writable schema with GET /api/v1/marketplaces/leboncoin/categories/{id}?account_type=particulier|pro (default: particulier). Both reads are signed, cached and network-free in sandbox and live mode, and use the same schemas as publication validation.

200 · category list excerpt
{
  "data": [
    {"id": "22", "label": "Vêtements", "parent": "72", "account_types": ["particulier", "pro"]}
  ]
}

Category details return id, label, parent, account_type and attributes. Every field has a key, label, type, required flag and request path; choices with labels use options. Conditions use conditional_required (OR groups, AND requirements), dependent choices use depends_on and conditional_options, and defaults use default or conditional_default. Reevaluate conditional requirements with the form context; the required flag is evaluated for an empty form. All choices are returned, without a size cap.

Root fields and hidden internal ids are excluded. The shipping descriptor is retained at the top-level request path shipping, not attributes.shipping; rental categories omit it. Unsupported category/type combinations return 404 category_not_found.

Clothing and shoes · choose the seller account type
GET /api/v1/marketplaces/leboncoin/categories/22?account_type=pro
GET /api/v1/marketplaces/leboncoin/categories/53?account_type=particulier

Both categories support account_type=pro or particulier. Current code-to-label examples below are excerpts of attributes[].options; fetch the full schema for the chosen account type and send the string value, never its label.

Current options excerpts · categories 22 and 53
{
  "clothing_type": [
    {"value": "1", "label": "Femme"},
    {"value": "2", "label": "Maternité"},
    {"value": "3", "label": "Homme"},
    {"value": "4", "label": "Enfant"}
  ],
  "shoe_type": [
    {"value": "1", "label": "Femme"},
    {"value": "2", "label": "Homme"},
    {"value": "3", "label": "Enfant"}
  ]
}

For example, category 22 with attributes.clothing_type="3" means Homme, whereas category 53 uses attributes.shoe_type="2" for Homme. These are attribute excerpts, not complete publish payloads.

Credit cost

Default live Leboncoin pricing: publish 1 credit, update 0.5 credit, delete 0 credits, all reads 0 credits. Sandbox actions are always free. Publish/update usage is recorded only after confirmation and deduplicated across exact retries; failed or still-unconfirmed actions are not charged. A workspace contract price overrides the marketplace price, which overrides the default grid. Free reads still count toward the global rate limit.

Create a listing

POST /api/v1/accounts/{account_id}/listings

Required fields: title (≤255 chars), description (≤5000 chars), price (decimal, > 0), category_id (opaque Leboncoin category id), location.city, location.zipcode and photo_urls (1 to 10 public image URLs, max 10 MiB = 10,485,760 bytes per photo, JPEG/PNG/WEBP). location.lat and location.lng are optional but must be supplied together. attributes carries category-specific fields (brand, condition, size, …) validated against the Leboncoin category schema — unknown keys are dropped, missing required fields and out-of-vocabulary values fail with 422 validation_failed.

Leboncoin Pro and particulier accounts are supported. Publication uses the connected seller's account type; querying a Pro catalog does not convert an account. The 10-photo / 10 MiB limits are ListBridge API limits, identical for Pro and particulier, including replacement photos on PATCH. They are not a claim about the native allowance of any Leboncoin Pro plan. Observed Leboncoin listings, both Pro and private, expire about 60 days after first publication. This is an observation, not a contractual guarantee for every category or pack; rely on expires_at when present.

request body
{
  "title": "Nike Air Max 90",
  "description": "Original pair in very good condition",
  "price": 89,
  "currency": "EUR",
  "category_id": "22",
  "location": {
    "city": "Paris",
    "zipcode": "75011"
  },
  "attributes": {
    "clothing_type": "1",
    "clothing_condition": "3",
    "clothing_color": "bleu"
  },
  "photo_urls": [
    "https://cdn.example.com/photo-1.jpg"
  ]
}

Requires an Idempotency-Key header. Returns 201 Created once the marketplace confirms the ad is live.

201 · published
{
  "id": "c1b2a3d4-0000-4000-8000-000000000000",
  "marketplace": "leboncoin",
  "marketplace_listing_id": "2938",
  "status": "published",
  "external_url": "https://www.leboncoin.fr/mode/2938.htm",
  "job_id": "35aa25e4-..."
}
422 · validation failed
{
  "error": {
    "code": "validation_failed",
    "message": "The given data was invalid.",
    "details": {
      "photo_urls": ["The photo urls field must not have more than 10 items."]
    }
  },
  "job_id": "35aa25e4-..."
}

A submit can be accepted while the marketplace confirmation is still in progress. This returns 503 with error.code: "publication_pending" and retryable: true — do not resubmit; either poll GET /api/v1/jobs/{job_id} or wait for listing.published once confirmation lands.

503 · confirmation in progress
{
  "id": "c1b2a3d4-0000-4000-8000-000000000000",
  "marketplace": "leboncoin",
  "marketplace_listing_id": "2938",
  "status": "publishing",
  "step": "submit",
  "retryable": true,
  "upstream_status": null,
  "error": {
    "code": "publication_pending",
    "message": "The listing was submitted and is awaiting marketplace confirmation."
  },
  "job_id": "35aa25e4-..."
}

If a known remote ad remains unconfirmed, an operator can make an audited account-release decision. The running job closes with publication_released, but the listing remains tracked as publishing with its remote id. Other content may then be published; exact-content retries cannot create a replacement. Reconciliation still confirms it if it later appears active. This is never automatic and is not a declaration that the remote ad is absent.

List account listings

GET /api/v1/accounts/{account_id}/listings

Accepts limit (positive integer, capped at 100, default 20), status and an opaque cursor from the previous response. Sandbox reads page local listings newest first; live reads page the authenticated marketplace dashboard beyond 100 results, including ads created outside ListBridge. Keep the same account and status filter when using a cursor. Live dashboard pagination is not a frozen snapshot. id is the local UUID or null for a remote-only ad; price is decimal euros or null and photos is a URL list.

200 · listings
{
  "data": [
    {
      "id": "c1b2a3d4-0000-4000-8000-000000000000",
      "marketplace_listing_id": "2938",
      "title": "Nike Air Max 90",
      "status": "published",
      "price": 89,
      "currency": "EUR",
      "photos": ["https://img.leboncoin.fr/photo.jpg"],
      "expires_at": "2026-11-30T12:50:48+00:00",
      "external_url": "https://www.leboncoin.fr/mode/2938.htm"
    }
  ],
  "next_cursor": null
}

Nullable expires_at is the observed Leboncoin expiration_date normalized to UTC, not a calculated publication lifetime. In a corpus of 12,358 Pro and private listings, including 425 snapshots from October–November 2026, expiration_date minus first_publication_date was about 60 days (within one hour). This observation is not a contract for every category or pack: rely on expires_at when present. Missing/invalid dates remain unknown; no 60-day default, published_at or lifetime_days is added. The connector interprets the native offset-free date as Europe/Paris wall-clock time [INFERENCE]; invalid calendar values and ambiguous/nonexistent DST times return null. An omitted later field preserves a known local date; an explicitly null/invalid value clears it. Remote-only ads expose their date without creating a local listing.

Existing live dashboard reads can emit listing.expired once per known local listing when its observed/stored date has passed and a successful observation sees paused/inactive, or a complete dashboard enumeration sees it absent. A date alone, active/unknown status, partial page or failed read is insufficient. This is a derived signal, not proof of a native expired status or removal motive; no native expired status has been observed so far. Raw listing statuses observed in our corpus are active, paused and inactive; the dashboard has not been re-checked live. Ordinary listing status is unchanged. There is no new poller, scheduled expiry or extra marketplace request. Reappearance does not reset the notification. See webhook payload.

Only locally published listings with no deletion timestamp qualify. Deleted, failed/rejected, sold or unpublished local listings never emit an expiry event, even if their old deadline later passes.

A later dashboard-page failure discards that read's buffered date/event observations; earlier pages do not partially persist them. Malformed rows cannot prove absence. Dashboard-level 404/410 means the account/read failed, not that an individual ad is absent.

Get one listing

GET /api/v1/accounts/{account_id}/listings/{listing_id}

Use a ListBridge UUID or Leboncoin listing id. Returns the same item object as the list, without a data wrapper. Workspace, account and test/live key mode are enforced. Live ownership is verified against that account's dashboard, never inferred from an ad's public visibility; an absent ad returns 404 listing_not_found. Reads create no job.

Update a listing

PATCH /api/v1/accounts/{account_id}/listings/{listing_id}

title, description, price, photo_urls, attributes and shipping are mutable — only the fields you send are changed. category_id is immutable on a live ad: send it only to confirm the current category, a mismatch returns 422 validation_failed steering you to delist and republish. Requires an Idempotency-Key header.

200 · updated
{
  "id": "c1b2a3d4-0000-4000-8000-000000000000",
  "marketplace": "leboncoin",
  "marketplace_listing_id": "2938",
  "status": "published",
  "external_url": "https://www.leboncoin.fr/mode/2938.htm",
  "job_id": "35aa25e4-..."
}
422 · category changed
{
  "error": {
    "code": "validation_failed",
    "message": "The given data was invalid.",
    "details": {
      "category_id": ["The listing category cannot be changed. Delist and republish to change the category."]
    }
  },
  "job_id": "35aa25e4-..."
}

A paid edit returns 422 paid_edit_required, with retryable: false; ListBridge does not complete the paid operation. When a positive fee was observed at the pricing step, error.details contains the known tax-inclusive amount in euro cents, currency and listing category:

Known paid-edit pricing · error.details
{
  "price_cents_tax_incl": 350,
  "currency": "EUR",
  "category_id": "22"
}

The same details are retained in the failed job's result.details and terminal listing.failed webhook's data.details. The amount above is illustrative, not a category tariff. A submit response with an order id can also trigger paid_edit_required without a known price: no price details are supplied in that case. Do not interpret an absent price as zero. No list of affected categories has been identified; Leboncoin evaluates the price per listing and ListBridge exposes it when returned. The full Leboncoin edit-pricing response has not been observed.

Delete a listing

DELETE /api/v1/accounts/{account_id}/listings/{listing_id}

Idempotent — repeating the same request after a confirmed delete returns the same deleted result. Requires an Idempotency-Key header and emits listing.deleted.

200 · deleted
{
  "id": "c1b2a3d4-0000-4000-8000-000000000000",
  "marketplace": "leboncoin",
  "marketplace_listing_id": "2938",
  "status": "deleted",
  "job_id": "35aa25e4-..."
}

For Leboncoin, the webhook's data.reason is client_request for a confirmed client-requested deletion or already_absent when the delete found the ad already absent. This is a technical ListBridge outcome, not a Leboncoin removal motive, a sale or an expiry signal. The separate derived listing.expired signal requires a known passed date and a qualifying dashboard observation; it is not inferred from this deletion reason.

Listing-specific errors

validation_failed 422 · payload or category attributes rejected, see `details`
publication_pending 503 · submit accepted, confirmation in progress — retryable, do not resubmit
location_unavailable 503 · the seller city/zipcode could not be resolved — retryable
upstream_error 502/503 · transient upstream failure — retryable when `retryable: true`
delist_failed 422 · the delete could not be confirmed
paid_edit_required 422 · paid operation refused; known pricing details only when observed
listing_not_found 404 · no matching listing for this account
publication_released closed job · operator released the account while the known ad remains tracked
category_not_found 404 · no supported category schema for this account type

See Errors for the shared envelope shape.

In test mode every listing action runs entirely against ListBridge's sandbox — nothing is submitted to Leboncoin. See Sandbox for the full test-mode contract.