Romb Ads API

Romb Ads API

Find listings without an account

Agents can search public listings and read advert details without a key. See public search and MCP documentation and the OpenAPI specification. The member tools below still require your own key.

Post and manage adverts on Romb from your own system. Everything below needs a key, which you create in your Members Area.

Want an AI assistant to do this for you rather than writing code? Using Romb with an AI agent explains it without the detail. Agents themselves can start from /llms.txt.


Business identity and storefronts

List your businesses with GET /api/v1/businesses. Send an owned active business_id when creating or updating an advert or a sync item, or 0 to select your personal username. Switching identity clears the previous phone and website display permissions. Omit the field to keep an existing identity. Manage a business storefront with GET / PATCH /api/v1/businesses/{id}/storefront; PATCH requires its current version and defaults to a private draft. See the page and storefront guide.

Drafts and publication

Send publication: draft to keep an advert private, or publication: live to submit it for normal moderation. This works on advert creation, updates and individual sync items. The existing creation API defaults to submission; the new romb_create_ad MCP tool defaults to a draft. List drafts with GET /api/v1/ads?state=draft. Member pages also support immediate publication when complete; see the page guide.

Authenticating

Send your key in the X-API-KEY header on every request. The key identifies your account, so adverts you create through the API belong to you exactly as if you had posted them on the site.

curl https://www.romb.co.uk/api/v1/me \
  -H "X-API-KEY: romb_live_your_key_here"

Use /api/v1/me to check a key is working. It returns your account and how many requests the key has made.

Keep your key secret. It can post adverts as you. We store only an hashed fingerprint of it, so we cannot show it to you again — if it is lost or exposed, revoke it in your Members Area and create another. Revoking takes effect immediately.

Posting an advert

POST /api/v1/ads — JSON body.

FieldRequiredNotes
headingYesThe advert title. At least 3 characters.
descriptionYesAt least 10 characters.
place_idYesFrom /api/v1/locations.
category_idNoFrom /api/v1/categories. If you leave it out we will suggest one from your wording — see below.
priceNoNumber. Ignored when price_free is 1.
price_freeNo1 to advertise the item as free.
price_periodNoWhat the price is for: Per Hour, Per Day, Per Night, Per Week, Per Month, Per Year or Per sqm (pcm, pw and pa are understood). Omit it for a one-off price.
curl -X POST https://www.romb.co.uk/api/v1/ads \
  -H "X-API-KEY: romb_live_your_key_here" \
  -H "Content-Type: application/json" \
  -d '{
        "heading": "2015 Kia Sportage 2.0 CRDi",
        "description": "MOT 11 months. Drives very well, no knocks or bangs.",
        "category_id": 195,
        "place_id": 2292,
        "price": 4500
      }'

A successful call returns 201:

{
  "status": true,
  "ad": {
    "id": 41075,
    "heading": "2015 Kia Sportage 2.0 CRDi",
    "category_id": 195,
    "url": "https://www.romb.co.uk/ad/2015-kia-sportage-20-crdi/41075"
  },
  "review": {
    "held": false,
    "reason": null,
    "note": "New adverts are checked before they appear on the site."
  },
  "category_suggested": null
}

Letting us choose the category

Leave category_id out and we will read your title and description and pick the closest category. The one we chose comes back in category_suggested, so you can record it or correct it:

"category_suggested": { "id": 195, "name": "Cars", "url": "cars-motor-vehicles/cars" }

If we cannot work out a category you get a 400 with CATEGORY_REQUIRED rather than a guess. Sending category_id yourself is always more accurate.


What happens to your advert

Adverts created through the API go through exactly the same checks as adverts posted on the website, so a successful response does not mean the advert is live yet. New adverts are reviewed before they appear.

If something in the wording holds it back, review.held is true and review.reason explains why in plain terms. The advert still exists on your account.


Managing your adverts

A key sees and changes only the adverts of the account it belongs to. This is not a search API for other people's adverts.

GET /api/v1/ads Your adverts, newest first. state is live, pending or expired (omit it for all); limit up to 100, default 25; offset to page. source_url finds the advert made from a product page.
GET /api/v1/ads/{id} One advert in full, with its description and photographs.
PATCH /api/v1/ads/{id} Change only the fields you send: heading, description, price, price_free, price_period, category_id, place_id. The response lists which fields actually changed; sending values the advert already has changes nothing and says so.
curl -X PATCH https://www.romb.co.uk/api/v1/ads/41077 \
  -H "X-API-KEY: romb_live_your_key_here" \
  -H "Content-Type: application/json" \
  -d '{"price": 42, "price_period": "Per sqm"}'

Changing the heading or description sends the advert back through the same checks as a new one, and the response carries review as it does on creation. A price change does not.

Posting jobs

Choose a Jobs category and add structured facts to advert creation, updates or sync items. The CSV importer and your AI agent use the same fields. Salary is in GBP: send job_salary_min and/or job_salary_max with job_salary_period (hour, day, week, month, year). Omit undisclosed pay; it is never assumed to be free.

Set job_work_arrangement to onsite, hybrid or remote; job_hours to full_time, part_time or flexible; and job_employer_type to direct or agency. job_contract_type accepts permanent, fixed_term, temporary, freelance, apprenticeship, internship or voluntary.

job_listing_intent is vacancy (default) or jobseeker. job_application_method is cv (default, private CV sharing on Romb), enquiry, or external with a full HTTP(S) job_application_url. job_closing_date uses YYYY-MM-DD; applications remain open through that day. Omitted fields stay unchanged on update; send null to clear them. Choose an owned business_id to advertise under the employer's business name.

{
  "heading": "Flooring installer", "category_id": "YOUR_JOBS_CATEGORY_ID",
  "description": "Describe responsibilities, requirements and benefits.",
  "place_id": "YOUR_LOCATION_ID", "publication": "draft",
  "job_salary_min": 32000, "job_salary_max": 42000, "job_salary_period": "year",
  "job_work_arrangement": "onsite", "job_contract_type": "permanent",
  "job_hours": "full_time", "job_employer_type": "direct",
  "job_application_method": "cv"
}

Photographs

GET /api/v1/ads/{id}/images The advert's photographs, the one listings show first.
POST /api/v1/ads/{id}/images Send either url — a public http(s) address we fetch — or data, the image as base64. Optional alt text and is_default. Sending the same url twice returns the photograph already there instead of adding a copy.
PATCH /api/v1/ads/{id}/images/{image_id} Change alt, or set is_default to make it the one listings show.
DELETE /api/v1/ads/{id}/images/{image_id} Remove it. If it was the default, the next photograph takes over.

Up to 12 photographs an advert, 8MB each, JPEG, PNG, GIF or WebP, at least 200×200. We store them as JPEG up to 1600px on the longest side and apply the rotation a phone camera records. The first photograph an advert gets becomes its default.


Keeping adverts in step with a product feed

POST /api/v1/ads/sync takes up to 200 items and makes your adverts match them. Each item is matched on its source_url — the product's own page — so running the same feed every night updates adverts rather than posting them again.

FieldRequiredNotes
source_urlYesStable address of the product page. This is the match key.
heading, description, place_idYesAs for posting an advert.
price, price_period, category_idNoAs for posting an advert.
imagesNoUp to 12 image URLs. Each is fetched once; a URL already on the advert is skipped.
curl -X POST https://www.romb.co.uk/api/v1/ads/sync \
  -H "X-API-KEY: romb_live_your_key_here" \
  -H "Content-Type: application/json" \
  -d '{
    "dry_run": true,
    "items": [{
      "source_url": "https://www.example-shop.co.uk/p/oak-flooring-190",
      "heading": "Engineered Oak Flooring 190mm",
      "description": "Engineered oak, 14mm with a 3mm wear layer, brushed and oiled.",
      "price": 42, "price_period": "Per sqm",
      "category_id": 1235, "place_id": 10517,
      "images": ["https://www.example-shop.co.uk/img/oak-190.jpg"]
    }]
  }'

Send dry_run: true first. The response is the full plan — created, updated (naming the fields), unchanged, rejected with a reason, and photographs to fetch — and nothing is written. Send it again without dry_run to apply it.

expire_missing: true also retires adverts previously made from a source_url that is no longer in the feed. It is off by default, because a partial feed would otherwise take down every product it left out. Photographs are only ever added by a sync, never removed.


Finding ids

GET /api/v1/categories Every live category, with id, parent_id and level.
GET /api/v1/locations?q=bristol Places matching a name. At least 2 characters; up to 25 results.

Rate limits

Two limits apply at the same time, per key:

300 calls an hourEvery endpoint counts, including the lookups.
100 new adverts a dayPOST /api/v1/ads and new items in a sync. Updates do not count. Resets at midnight.
1,200 photographs a dayPhotographs actually stored. One already on the advert does not count. Resets at midnight.

Every response carries your current position, so you do not have to count calls yourself:

X-RateLimit-Limit: 300
X-RateLimit-Remaining: 271
X-RateLimit-Reset: 1787936400   # unix time when the window rolls over

Going over returns 429 with RATE_LIMITED and a Retry-After header in seconds. Nothing is created by a rejected call — the daily advert limit is checked before your request is read, so a throttled call never leaves a half-made advert.

If you need more than this, get in touch rather than spreading work across several keys.


Errors

Failures return a JSON body with an error_code you can branch on, and a message meant for a person.

CodeHTTPMeaning
MISSING_KEY401No X-API-KEY header.
INVALID_KEY401The key is unknown or has been revoked.
ACCOUNT_UNAVAILABLE403The account behind the key is not active.
VALIDATION_FAILED400See the errors object for the field.
CATEGORY_REQUIRED400No category given and none could be suggested.
INVALID_PRICE_PERIOD400price_period is not one of the listed periods.
NOT_FOUND404No advert or photograph of yours with that id.
NO_ITEMS / TOO_MANY_ITEMS400A sync needs between 1 and 200 items.
NO_IMAGE / AMBIGUOUS / BAD_DATA400Send exactly one of url or data, and data as valid base64.
IMAGE_REJECTED400Could not be fetched, is not an image, or is too small or too large. The message says which.
TOO_MANY_IMAGES409The advert already has 12 photographs.
QUERY_TOO_SHORT400Location search needs at least 2 characters.
RATE_LIMITED429Over a limit. Wait Retry-After seconds.
SAVE_FAILED500Something went wrong our end. Safe to retry.

Create a key

Create member pages with your agent

Your Romb API key also supports landing pages, advert collections and blogs. Read the page API guide or open your page editor.