Skip to content

Host the four endpoints (optional)

These endpoints are optional. You do not need to host any of them to go live. You rely on the answer to each send, on the status read that MarsX hosts, and on sending every withdrawal and deletion at once. A 202 means MarsX has the event, whether it says accepted or duplicate. Retry 429, 5xx and timeouts, and fix any other error before you send again, as on Responses and retries. If you do host four endpoints on your own server (an OAuth token URL and three read-only endpoints), MarsX reads them every 15 minutes once they are live, as an extra safety net. This page lists what you build and the rules each endpoint must meet. Each endpoint has its own page.

A send can fail without anyone noticing. A queue can lose a message, a deployment can drop a request, or a withdrawal can wait behind a bug. MarsX reads your side to find what it did not receive.

This is a safety net. It is not a second way to deliver leads. Keep sending every event as it happens. MarsX only reads. It never writes to your system, and it never sends a status back.

Endpoint What it gives MarsX When MarsX reads it
Token URL A short-lived, read-only access token Before each read, and once after a 401
GET /v1/changes Lead revisions that changed, oldest first Every 15 minutes, once your endpoints are live
GET /v1/privacy-events Every withdrawal, erasure and restriction, oldest first Every 15 minutes, once your endpoints are live
GET /v1/leads/{partner_lead_id} The latest state of one lead When MarsX finds a lead it lacks or holds at an older revision

The two feeds are on Changes and privacy events. The single-lead read is on Lead lookup.

You choose the host name and any path prefix. The method, query parameters and response shapes stay as in the API reference.

Requirement Detail
Transport HTTPS with TLS 1.2 or higher. No redirects: a 3xx counts as a failure
Address A public address on port 443, with a publicly trusted TLS certificate
Identity The OAuth client. MarsX has no fixed egress addresses, so an IP allow-list does not work
Request headers Every call carries User-Agent: MarsX-Reconciler/1, Accept: application/json and Authorization: Bearer <access_token>
Pace MarsX waits up to 10 seconds for an answer and sends at most 1 request a second
Capacity At least 60 requests per minute for each client on each endpoint
Replay window Both feeds reach back at least 90 days
Page size Default at least 100. Maximum at least 500. MarsX requests 500
Errors application/problem+json, as in the API reference

Publish one OpenAPI 3.1 document for your side, so MarsX and your own team read the same contract. The contract file is a ready base. Keep webhooks and the three read paths: GET /v1/changes, GET /v1/privacy-events and GET /v1/leads/{partner_lead_id}. Remove the two paths that MarsX hosts: the event status read and the privacy list PUT.

Also run a sandbox with made-up data only. MarsX runs its tests against it. See Test your endpoints.

Your sandbox must document one cursor value for each feed that always answers 410. MarsX uses them for test R4. Email both to support@marsx.media, with a technical contact. Never email a secret.

Your developer enters the details of the sandbox endpoints in Concour: Developers, then Your endpoints. The fields are Base URL (the address of your 4 endpoints, https only), Token URL, Client ID (of the read-only OAuth client you issue to MarsX, with the scope leads:read) and Client secret. Choose Save and check. The secret is saved and never shown again. MarsX sets the live details: use Ask MarsX to change it if one is wrong.

The check asks your token URL for a token and reads GET /v1/changes with limit=1. Both calls must finish within 5 seconds, over a public https address on the usual port, with no redirect. If MarsX reads your changes list, the step MarsX can read your changes list (optional) is done. If not, the step shows Needs a fix and says why, for example that your server answered with a status code when MarsX asked for a token. Fix it, then choose Check again. MarsX checks once a minute, so wait a moment between tries. After that, MarsX reads your changes list every 15 minutes, read-only.

Dealers work leads only in Concour. If the same leads also appear in a dashboard of your own, show them read-only or leave out the status fields. Otherwise dealers work two statuses and do the work twice. A status in your dashboard never feeds MarsX.