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.
Posting an advert
POST /api/v1/ads — JSON body.
| Field | Required | Notes |
|---|---|---|
heading | Yes | The advert title. At least 3 characters. |
description | Yes | At least 10 characters. |
place_id | Yes | From /api/v1/locations. |
category_id | No | From /api/v1/categories. If you leave it out we will suggest one from your wording — see below. |
price | No | Number. Ignored when price_free is 1. |
price_free | No | 1 to advertise the item as free. |
price_period | No | What 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.
| Field | Required | Notes |
|---|---|---|
source_url | Yes | Stable address of the product page. This is the match key. |
heading, description, place_id | Yes | As for posting an advert. |
price, price_period, category_id | No | As for posting an advert. |
images | No | Up 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 hour | Every endpoint counts, including the lookups. |
| 100 new adverts a day | POST /api/v1/ads and new items in a sync. Updates do not count. Resets at midnight. |
| 1,200 photographs a day | Photographs 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.
| Code | HTTP | Meaning |
|---|---|---|
MISSING_KEY | 401 | No X-API-KEY header. |
INVALID_KEY | 401 | The key is unknown or has been revoked. |
ACCOUNT_UNAVAILABLE | 403 | The account behind the key is not active. |
VALIDATION_FAILED | 400 | See the errors object for the field. |
CATEGORY_REQUIRED | 400 | No category given and none could be suggested. |
INVALID_PRICE_PERIOD | 400 | price_period is not one of the listed periods. |
NOT_FOUND | 404 | No advert or photograph of yours with that id. |
NO_ITEMS / TOO_MANY_ITEMS | 400 | A sync needs between 1 and 200 items. |
NO_IMAGE / AMBIGUOUS / BAD_DATA | 400 | Send exactly one of url or data, and data as valid base64. |
IMAGE_REJECTED | 400 | Could not be fetched, is not an image, or is too small or too large. The message says which. |
TOO_MANY_IMAGES | 409 | The advert already has 12 photographs. |
QUERY_TOO_SHORT | 400 | Location search needs at least 2 characters. |
RATE_LIMITED | 429 | Over a limit. Wait Retry-After seconds. |
SAVE_FAILED | 500 | Something went wrong our end. Safe to retry. |
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.