ListBridge

Docs · API reference

Webhooks

Signed payloads, idempotent events, exponential retries.

Events v1

  • listing.published
  • listing.updated
  • listing.failed
  • listing.deleted
  • listing.expired · derived passed-date plus inactive/absence observation, not proof of a native marketplace status
  • account.connected
  • account.verification_required
  • account.connection_failed
  • account.disconnected
  • account.reauthenticated
  • message.received · incoming message observed
  • message.accepted · outgoing send accepted by Leboncoin, not an offer acceptance
  • message.confirmed · outgoing message matched by later synchronization
  • message.failed · definite terminal send failure, not an uncertain outcome

Every envelope contains exactly the top-level id, event, created_at, mode (test or live) and data, so you can route sandbox and production deliveries without inspecting the payload.

POST /api/v1/accounts also returns the current state immediately. Persist its job_id and poll GET /api/v1/jobs/{job_id} as a fallback when webhook delivery is delayed.

Account connection states

EventMeaningNext action
account.connectedCredentials are valid and the account is active.Listing actions can start.
account.verification_requiredThe marketplace requires an email/SMS code or mobile approval.Follow verification.type, verification.channel, and next_action.
account.connection_failedThe attempt failed with a client-safe error code.Follow next_action or inspect the job.

For security, an unknown marketplace account and a wrong password can both be reported as credentials_invalid; this prevents account enumeration.

Message payloads

All four message.* events use the exact data keys below. account_id, conversation_id and message_id are ListBridge public UUIDs; marketplace_conversation_id is the opaque Leboncoin conversation ID, not an API path identifier or a guaranteed permalink.

Complete message.accepted envelope
{
  "id": "550e8400-e29b-41d4-a716-446655440000",
  "event": "message.accepted",
  "created_at": "2026-11-06T10:00:00+00:00",
  "mode": "live",
  "data": {
    "account_id": "d4f87a80-3f10-4a72-b0fd-5ae82be4e3a1",
    "conversation_id": "bf2fd4ab-423f-4c35-a620-f9ef5a713bb8",
    "marketplace_conversation_id": "opaque-leboncoin-conversation-id",
    "message_id": "2250c168-0d28-4e4c-b783-e16d2012516c",
    "status": "accepted",
    "direction": "outgoing",
    "type": "text",
    "error_code": null,
    "event": null
  }
}

Direction is incoming|outgoing, not buyer/seller role; legacy type remains text|image|mixed|unsupported. Nested data.event is null without a structured event; otherwise it contains kind and nullable amount_cents/list_price_cents, separate from the top-level webhook name. Raw header, scope, integration ID, subtype, content, title, photo bytes, participant metadata and sent_at are excluded. Neither accepted nor confirmed means delivered/read. Fetch signed messages API state; deduplicate delivery IDs and never downgrade confirmed because an older accepted event arrived later.

In retained GET events, negotiation integration_id identifies the negotiation, not an individual offer: the same value was observed across eight messages with successive offer amounts. It is not a unique offer or message deduplication key.

Conversation fields, retained content and synchronization

Leboncoin listing outcomes

listing.deleted data contains job_id, nullable listing_id, marketplace, marketplace_listing_id, account_id, status: "deleted" and reason. Reason is client_request for a confirmed requested delete, or already_absent when already absent at deletion. It is a technical ListBridge outcome, not a Leboncoin removal motive, sale or expiry.

listing.expired is derived once per known local listing: a stored/observed expires_at must have passed, plus a successful existing dashboard read must show paused/inactive or a complete enumeration must show absence. Date alone, active/unknown status, partial reads and failures never qualify. No native expired status has been observed so far: raw listing statuses in our corpus are active, paused and inactive; the dashboard has not been re-checked live. Remote-only ads are not imported for notifications. There is no expiry scheduler or additional marketplace request, and reappearance does not reset the notification. Native/local listing status is otherwise unchanged; this signal does not prove Leboncoin's removal motive.

Expiry derivation is restricted to local status published without a deletion timestamp; deleted, failed/rejected, sold and unpublished local listings are excluded.

listing.expired · data
{
  "job_id": null,
  "listing_id": "c1b2a3d4-0000-4000-8000-000000000000",
  "marketplace": "leboncoin",
  "marketplace_listing_id": "2938",
  "account_id": "d4f87a80-3f10-4a72-b0fd-5ae82be4e3a1",
  "status": "expired",
  "expires_at": "2026-11-05T12:50:48+00:00",
  "reason": "expiration_date_passed",
  "derived": true
}

For a terminal listing.failed with reason: "paid_edit_required", known positive pricing is reported in data.details as price_cents_tax_incl (integer euro cents), currency: "EUR" and category_id. This matches the response's error.details and job's result.details. A submit order id alone does not establish a price; that refusal has no price details. 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. ListBridge does not complete paid edits. See listing updates for an example.

Verifying signatures

verify HMAC
BODY=$(cat request_body)
SIGNED="$X_LISTBRIDGE_TIMESTAMP.$BODY"
SIG=$(printf '%s' "$SIGNED" | openssl dgst -sha256 -hmac "$WEBHOOK_SECRET" | awk '{print $2}')
test "sha256=$SIG" = "$X_LISTBRIDGE_SIGNATURE" || exit 1

Retry schedule

On non-2xx response, we retry at 3, 10, 30, 60, 360 and 1440 minutes. After the initial attempt and configured retries, the delivery is marked exhausted and can be replayed from the console.