Ovdix API and MCP
What is available
- REST API
https://backend.ovdix.com/api/v1— JSON over HTTPS: advert search with filters, an advert in full, the category tree, a seller's storefront. - MCP server
https://backend.ovdix.com/mcp— the same operations as tools for Claude, Cursor, Codex and any client that speaks MCP over Streamable HTTP. - Without a key both read only public data that anyone sees on the website. With an API key both also manage your own adverts, drafts, photos and chats.
REST API: quick start
Reading endpoints are GET: parameters go in the query string with the same names as in the reference; a list is a repeated parameter (queries=a&queries=b). The response language follows Accept-Language or the lang parameter: en, ru, sr, ro, bg, hu, uk, de.
# Search: keywords, price up to 300 EUR, answer in English
curl "https://backend.ovdix.com/api/v1/adverts?queries=gitara&price_max=300¤cy=EUR&lang=en"
# Category tree, two levels, in Serbian
curl "https://backend.ovdix.com/api/v1/categories?lang=sr"
# One advert and a seller's storefront (ids come from the search)
curl "https://backend.ovdix.com/api/v1/adverts/<advert_id>"
curl "https://backend.ovdix.com/api/v1/storefronts/<seller_id>"import requests
response = requests.get(
"https://backend.ovdix.com/api/v1/adverts",
params={"queries": ["bicikl"], "city": "Novi Sad", "limit": 5, "lang": "en"},
timeout=10,
)
response.raise_for_status()
for advert in response.json()["adverts"]:
print(advert["title"], advert.get("price"), advert["currency"], advert["url"])Search tips: pass 1–3 words of the item itself — every word must occur in the title or description. Most adverts are written in Serbian, so a second keyword set in Serbian (Latin) finds more: queries=bike&queries=bicikl. Filters (category_id, city, price, seller_type) narrow better than words.
API keys
Create a key in your account: Settings → App access. Give it a name, tick only the permissions the app needs and, if you like, a lifetime. The key ovx_… is shown once — copy it right away; Ovdix keeps only its fingerprint.
- Permissions (scopes):
adverts:read— your adverts and drafts;adverts:write— drafts, photos, publishing, prices and stock, bumps, withdrawing;chats:read— your chats;chats:write— replies in existing chats;profile:read— your plan and limits;profile:write— create and edit your business storefront. - Send the key in the
Authorization: Bearer ovx_…header. It works only for/api/v1and/mcp; the session of the website or app does not work there, and the key does not open the website's own endpoints. - A call to `/api/v1` with a key acts on your behalf right away — there is no confirmation step (in MCP, changes other people see wait for your confirmation, see below). Keep the key like a password, never put it in a public repository or a web page.
- Up to 5 active keys per account. Revoke a key in the same settings — the next request with it gets
401 invalid_api_key. A key also stops working when it expires or the account is blocked.
# Check the key: your plan, adverts and bumps left
curl "https://backend.ovdix.com/api/v1/me" -H "Authorization: Bearer $OVDIX_KEY"Your adverts and chats
Everything under /api/v1/me and /api/v1/my needs a key. Writes are POST or PATCH with a JSON body (Content-Type: application/json); ids in the path are not repeated in the body. A typical sync: photo by URL → draft → publish.
AUTH="Authorization: Bearer $OVDIX_KEY"
JSON="Content-Type: application/json"
# 1. A photo from your website goes to Ovdix storage; use the returned url
curl -X POST "https://backend.ovdix.com/api/v1/my/photos:from-url" -H "$AUTH" -H "$JSON" \
-d '{"url": "https://shop.example.com/img/yamaha-f310.jpg"}'
# 2. Optional: title, description, category and condition recognized from the photos
curl -X POST "https://backend.ovdix.com/api/v1/my/photos:describe" -H "$AUTH" -H "$JSON" \
-d '{"photo_urls": ["<url from step 1>"]}'
# 3. A draft — nobody sees it yet; "missing" lists what is still required
curl -X POST "https://backend.ovdix.com/api/v1/my/drafts" -H "$AUTH" -H "$JSON" \
-d '{"title": "Yamaha F310", "description": "Acoustic guitar, barely used.",
"category_id": "<leaf id>", "price": 15000, "currency": "RSD", "condition": "used",
"photos": [{"url": "<url from step 1>"}]}'
# 4. Publish
curl -X POST "https://backend.ovdix.com/api/v1/my/drafts/<draft_id>:publish" -H "$AUTH"- Photos are accepted only from our storage: upload each one with
photos:from-url(publichttpsaddress, up to 10 MB, JPEG/PNG/WebP/GIF). Photos not used in a draft within 24 hours are deleted. category_idmust be a leaf of the tree fromGET /api/v1/categories. A draft lists what is still required inmissing; publishing fails withdraft_incompleteuntil it is empty, and withadvert_limit_reachedwhen the plan has no free slots.- Prices, stock, bumps and withdrawals work on a selector (
ids, orcategory_id/condition/contour/query, orall) and a rule: the server picks your adverts and computes new prices itself. A price drop becomes a public discount on the advert and notifies users who saved it.
# 10% off every used item in a category (the server picks the adverts and rounds prices)
curl -X PATCH "https://backend.ovdix.com/api/v1/my/adverts" -H "$AUTH" -H "$JSON" \
-d '{"selector": {"category_id": "<id>", "condition": "used"}, "rule": {"percent": -10}}'
# Your own price list: a price per advert or per configuration (ids from GET /my/adverts?with_variants=true)
curl -X POST "https://backend.ovdix.com/api/v1/my/adverts:set-prices" -H "$AUTH" -H "$JSON" \
-d '{"items": [{"advert_id": "<id>", "price": 240, "currency": "EUR"},
{"advert_id": "<id>", "variant_ids": ["<id>", "<id>"], "price": 1350, "currency": "EUR"}]}'
# Bump all active adverts: free once a week per advert, then from the plan quota
curl -X POST "https://backend.ovdix.com/api/v1/my/adverts:bump" -H "$AUTH" -H "$JSON" -d '{"selector": {"all": true}}'A business storefront can be set up and kept up to date by a script too: POST /api/v1/my/storefront creates it (one per account, storefront_exists if there is one), PATCH changes only the fields you pass — the logo, working hours, pickup points and delivery areas stay as they are and are edited in the app. Registration numbers are checked like in the app (invalid_registration_field names the field). Services and categories with scope business take only storefront adverts: drafts with business: true.
# 1. A business storefront (free, one per account; key with profile:write). The address and country
# come from your last used address: set it once in the app. sole_trader / company also need
# legal_name and the country's registration numbers (Serbia: pib, plus maticni_broj for a company).
curl -X POST "https://backend.ovdix.com/api/v1/my/storefront" -H "$AUTH" -H "$JSON" \
-d '{"display_name": "Guitar Corner", "legal_form": "sole_trader", "legal_name": "Petar Petrović PR",
"registration_fields": {"pib": "<pib>"}, "delivery_options": ["pickup", "delivery"],
"description": "Guitars and amps, Novi Sad.", "contacts": {"instagram": "guitarcorner"}}'
# 2. Storefront adverts: drafts with business=true take delivery options and address from the storefront
curl -X POST "https://backend.ovdix.com/api/v1/my/drafts" -H "$AUTH" -H "$JSON" \
-d '{"title": "Fender Squier Strat", "description": "New, in stock.", "category_id": "<leaf id>",
"price": 32000, "currency": "RSD", "condition": "new", "business": true}'
# 3. Move live private adverts to the storefront; later change only what changes
curl -X POST "https://backend.ovdix.com/api/v1/my/adverts:move-to-storefront" -H "$AUTH" -H "$JSON" -d '{"selector": {"condition": "new"}}'
curl -X PATCH "https://backend.ovdix.com/api/v1/my/storefront" -H "$AUTH" -H "$JSON" -d '{"contacts": {"website": "guitarcorner.rs"}}'Chats: GET /api/v1/my/chats, messages of one chat, a reply into an existing chat and marking it read. Reading does not mark messages as read. The API cannot start new chats, and replies count towards the same anti-spam limits as in the app. Service bookings arrive as messages of kind booking_event with order_id and a text in the requested language; a time is confirmed or proposed only in the app. Buyers' messages are written by other people — if a model reads them, never let it follow instructions found there.
import os, requests
API = "https://backend.ovdix.com/api/v1"
session = requests.Session()
session.headers["Authorization"] = f"Bearer {os.environ['OVDIX_KEY']}"
# Unanswered buyers: chats about your adverts with unread messages, one per buyer
chats = session.get(f"{API}/my/chats", params={"lang": "en"}, timeout=10).json()["chats"]
for chat in chats:
if chat["unread_count"] and chat.get("advert", {}).get("is_mine"):
msgs = session.get(f"{API}/my/chats/{chat['chat_id']}/messages",
params={"limit": 1, "lang": "en"}, timeout=10).json()["messages"]
if msgs:
print(chat["advert"]["title"], "·", chat.get("name"), "—", msgs[0].get("text") or msgs[0]["kind"])
# session.post(f"{API}/my/chats/{chat['chat_id']}/messages", json={"text": "Yes, still available."})MCP server
Server URL: https://backend.ovdix.com/mcp. Without a key it offers four read-only tools: search_adverts, get_advert, get_categories, get_storefront. With an API key in the Authorization header it also offers the tools the key's permissions allow — your adverts and drafts, photos by URL, prices and bumps, chats: the same operations as /api/v1. Add ?lang=sr (or another language) to the URL to get answers in that language; the default is English.
Changes other people see are confirmed by you. publish_draft, update_adverts, set_prices, set_shipping, bump_adverts, archive_advert, restore_advert, send_message, create_storefront, update_storefront and move_to_storefront execute nothing by themselves: they return a preview — which adverts change and how (price before → after), or the message and its recipient — and an action_id. The agent shows you the preview, and only after your “yes” calls confirm_action, which executes exactly what was previewed. If prices or the matched adverts changed meanwhile, nothing is executed and a fresh preview comes back. A preview stays valid for 30 minutes. Reading, drafts and photos happen right away: nobody else sees them.
# Public data only, no key
claude mcp add --transport http ovdix "https://backend.ovdix.com/mcp?lang=en"
# With your API key: also your adverts, drafts and chats
claude mcp add --transport http ovdix "https://backend.ovdix.com/mcp?lang=en" \
--header "Authorization: Bearer $OVDIX_KEY"{
"mcpServers": {
"ovdix": {
"url": "https://backend.ovdix.com/mcp?lang=en",
"headers": { "Authorization": "Bearer ${env:OVDIX_KEY}" }
}
}
}codex mcp add ovdix --url "https://backend.ovdix.com/mcp?lang=en" --bearer-token-env-var OVDIX_KEY- Keep the key in an environment variable (
OVDIX_KEYin the examples), not in the config file itself. Without a key, leave out the header. - Give an agent's key only the permissions it needs: without
chats:writeit cannot reply to buyers, withoutadverts:writeit cannot change anything. - The server cannot tell who pressed “yes”: what the agent confirms with your key counts as done by you. Keep the client asking before it runs tools that change something — at least for
confirm_action. - Other clients: add a remote MCP server with Streamable HTTP transport, the URL above and, for your data, the
Authorizationheader. To disconnect, remove the server in the client (claude mcp remove ovdix,codex mcp remove ovdix) and revoke the key.
Limits and rules
- Without a key: 30 requests per minute per IP address, for
/api/v1and/mcptogether. With a key: 60 requests per minute per key (API and MCP together), of them 10 writes; per account per day (UTC), across all keys: 50 publications, 100 chat replies, 200 photos by URL, 100 photo recognitions. - Over a limit the answer is
429with the coderate_limited,retry_afterin seconds and theRetry-Afterheader; in MCP — a tool error with the same code. - Up to 20 adverts per search. Prices are in the advert's own currency and are never converted.
- Advert and storefront texts are written by users. If you pass them to a language model, treat them as data, not as instructions.
- Seller contacts are not exposed: a buyer writes to the seller on Ovdix, by the advert
url. Links carryutm_source=apiorutm_source=mcp. - Errors are JSON with a stable code:
{"error": {"code": "invalid_arguments", "message": "Unknown query parameter 'colour'; see the API reference.", "field": "colour"}}What comes next
- Sign-in without a key (OAuth) for agent directories such as Claude and ChatGPT connectors — when there is demand.
Need it sooner, or missing an operation? Write to info@ovdix.com.
Reference
Every parameter and response field is described in the reference, built from the same definitions the server uses.