A marketplace back end with an API you can build on.
Every Yclas site has a REST API with an OpenAPI 3.1 description, sign-in for your own front end, hosted checkout, signed webhooks and an MCP server for AI agents. Listings, accounts, payments, payouts and moderation are already built: you write the front end or the integration.

GET /api/v1/site
{
"site": {
"name": "Driveline",
"locale": "en_US",
"languages": [{"code": "en_US"}, {"code": "es_ES"}],
"currency": {"code": "USD", "symbol": "$", "decimals": 2,
"example": "$1,234.50"},
"measurement": {"distance_unit": "km"},
"features": {"auctions": true, "offers": true,
"messaging": true, "paid_posting": false, …},
"posting": {"max_photos": 2, "max_photo_size_mb": 5,
"location_required": true, …},
…
}
}GET /api/v1/listings?latitude=39.74&longitude=-104.99&radius=25&unit=km&sort=distance
{
"ads": [
{"id_ad": "17",
"title": "2021 Volkswagen Golf 1.5 TSI, grey",
"price": "$18,900.00",
"distance_value": 1.4, "distance_unit": "km",
"customfields": {"cf_make": {"value": "Volkswagen"}, …},
"url": "https://driveline.yclas.com/cars/2021-volkswagen-golf-…"},
{"id_ad": "3",
"title": "2017 Ford Focus, full service history",
"price": "$9,800.00",
"distance_value": 7.25, "distance_unit": "km", …}
]
}
No key needed: published listings are publicPOST /api/v1/checkout
Authorization: Bearer yca_7c836f…
Idempotency-Key: 6f1c2a90-feat-3
{"product": "featured", "id_ad": 3, "featured_days": 5,
"return_to": "http://localhost:5173/thanks"}
201 Created
{
"checkout": {
"id_order": 10,
"status": "unpaid",
"product": "featured",
"amount": 10,
"currency": "USD",
"checkout_url": "https://driveline.yclas.com/ad/checkout/10?return_to=…&handoff=893fa7d1…",
"expires_at": "2026-12-01T16:49:42+00:00"
}
}
The buyer pays on the marketplace and comes back to return_toDocumented by the site itself, readable by your tools.
Each site serves its own API reference at /api/docs, an OpenAPI 3.1 file at /api/openapi.json and a plain-words guide for AI app builders at /api/llms.txt, all generated from the code, so they never fall behind it. Start-up settings come from one call, and the posting and sign-up forms come as JSON Schema built from the site's own categories and custom fields.
- GET /site: name, logo, colours, languages, currency format, distance unit and which features are on
- GET /schema/listing: the posting form for any category as JSON Schema, custom fields and limits included
- Search with filters on any field, custom fields too, sort by distance and a radius in km or miles
- Rate-limit headers on every answer, 422 with an error per field on a bad form
GET /api/v1/site
{
"site": {
"name": "Driveline",
"locale": "en_US",
"languages": [{"code": "en_US"}, {"code": "es_ES"}],
"currency": {"code": "USD", "symbol": "$", "decimals": 2,
"example": "$1,234.50"},
"measurement": {"distance_unit": "km"},
"features": {"auctions": true, "offers": true,
"messaging": true, "paid_posting": false, …},
"posting": {"max_photos": 2, "max_photo_size_mb": 5,
"location_required": true, …},
…
}
}GET /api/v1/schema/listing?category=4
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "New listing in Cars",
"properties": {
"title": {"type": "string", "minLength": 2, "maxLength": 145},
"price": {"type": "number"},
"cf_make": {"title": "Make", "type": "string",
"oneOf": [{"const": "Ford"}, {"const": "Honda"},
{"const": "Toyota"}, …]},
"cf_mileage": {"title": "Mileage (miles)", "type": "integer"},
…
},
"required": ["id_category", "title", "description",
"id_location", "cf_make", "cf_mileage"],
"x-yclas-photos": {"max": 2, "max_mb": 5}
}GET /api/v1/listings?latitude=39.74&longitude=-104.99&radius=25&unit=km&sort=distance
{
"ads": [
{"id_ad": "17",
"title": "2021 Volkswagen Golf 1.5 TSI, grey",
"price": "$18,900.00",
"distance_value": 1.4, "distance_unit": "km",
"customfields": {"cf_make": {"value": "Volkswagen"}, …},
"url": "https://driveline.yclas.com/cars/2021-volkswagen-golf-…"},
{"id_ad": "3",
"title": "2017 Ford Focus, full service history",
"price": "$9,800.00",
"distance_value": 7.25, "distance_unit": "km", …}
]
}
No key needed: published listings are publicReal answers from a demo site, shortened.
Sign in with Yclas: no passwords in your front end.
Send users to the marketplace's own sign-in page with the standard OAuth 2.1 authorization-code flow and PKCE. They sign in there, with the site's Google login, two-step verification and captcha, approve your front end once, and come back with an access token that lasts an hour and a refresh token that renews it. Prefer your own forms? The same expiring sessions come from login and sign-up, with password reset, email confirmation and sign-out in the API.
- Public clients, no secret to hide: PKCE (S256) is required and codes work once, for 60 seconds
- Refresh tokens rotate on every use; a stolen one used again ends the session
- Sessions end when the password changes or the account is blocked; users see and sign out their devices
- Only the front-end addresses the owner lists can sign people in

Sam signed in on driveline.yclas.com and clicked Allow
POST /api/v1/oauth/token
grant_type=authorization_code&code=ycc_2709…
&client_id=https://shop.driveline.example
&redirect_uri=https://shop.driveline.example/callback
&code_verifier=87a1dOc9…
{
"access_token": "yca_fb8d2f…",
"token_type": "Bearer",
"expires_in": 3600,
"refresh_token": "ycr_0ce4f0…",
"user": {"id_user": "2", "name": "Sam Rivera", …}
}
No client secret, no password in the front end: PKCE is the proofGET /api/v1/me
Authorization: Bearer yca_7c836f…
{
"user": {
"id_user": "2",
"name": "Sam Rivera",
"email": "sam.rivera@example.com",
…
},
"sessions": 6,
"current_session": 21
}A screenshot and real answers from a demo site, tokens shortened.
Take payments without touching a card.
Ask for what the user wants to buy: a featured listing, a bump to the top, a boost, a seller plan, a posting fee or a Buy now. The API applies the same rules and prices as the marketplace's own buttons and returns a checkout page on the site, where the buyer pays with any of its payment methods and comes back to your page. The order.paid webhook tells your server when it is done.
- Stripe, PayPal and 31 more payment providers, coupons, VAT and seller payouts, unchanged
- An Idempotency-Key header makes retries safe: the same key gives the same order
- The buyer is signed in on the checkout page for that order only, for 10 minutes
- Free orders and 100% coupons are confirmed at once, as on the site
POST /api/v1/checkout
Authorization: Bearer yca_7c836f…
Idempotency-Key: 6f1c2a90-feat-3
{"product": "featured", "id_ad": 3, "featured_days": 5,
"return_to": "http://localhost:5173/thanks"}
201 Created
{
"checkout": {
"id_order": 10,
"status": "unpaid",
"product": "featured",
"amount": 10,
"currency": "USD",
"checkout_url": "https://driveline.yclas.com/ad/checkout/10?return_to=…&handoff=893fa7d1…",
"expires_at": "2026-12-01T16:49:42+00:00"
}
}
The buyer pays on the marketplace and comes back to return_to
A real answer and a screenshot from a demo site.
Pushed to your server, not polled.
Subscribe an address to the events you need, from the panel or with POST /webhooks. Each delivery is signed with your secret and a timestamp, tried again over about seven hours if your server is down, and kept in a 30-day log with Resend.
- 16 events: listings, users, orders and refunds, messages, reviews, bookings, disputes, returns and leads
- X-Yclas-Signature: sha256 HMAC of the timestamp and the raw body
- Private details left out unless the key may read them
POST https://inventory.example.com/hooks/driveline
X-Yclas-Event: ad.created
X-Yclas-Timestamp: 1796143766
X-Yclas-Signature: sha256=aa8f2fad…
{
"id": "evt_39809ab5…",
"event": "ad.created",
"created": "2026-12-01T16:49:05+00:00",
"data": {
"id": 20,
"title": "2018 Toyota RAV4 XLE AWD, silver",
"price": 21500,
"currency": "USD",
"category": {"id": 4, "name": "Cars"},
"location": {"id": 4, "name": "Denver"},
"user": {"id": 2, "name": "Sam Rivera"},
…
}
}
Answered 200: delivered. A failed delivery is tried again later.A real delivery from a demo site, signature shortened.
Four ways in, each with its own limits.
Public data needs no key. The site key, public by design, lets apps sign people up and in. Signed-in users carry their own expiring token. Your servers use scoped keys with only the permissions they need, and every change they make is in the Audit log under the key's name.
- A rate limit per key that the owner sets, from 10 to 10,000 calls a minute
- Writes with a scoped key: at most 60 an hour per key, shared with the MCP server
- Keys stored as a fingerprint, rotated or revoked in one click

Build on it
Questions people ask
Which plan do I need?
The REST API with the site key works on every plan. Webhooks are on Professional and Marketplace. Scoped keys, your own front end (browser access from your addresses) and the MCP server are on the Marketplace plan. There is no charge per API call.
Is there an SDK?
Not yet. The OpenAPI 3.1 file works with generators such as openapi-generator and openapi-typescript, and Marketplace customers get a starter template that shows every call in plain TypeScript.
Can I try it before I build?
Yes. Start a free trial, and the site's /api/docs, /api/openapi.json and /api/llms.txt are there for you as the admin. Public data needs no key.
Do webhooks need polling?
No. Your server receives each event as it happens, signed, and missed deliveries are tried again for about seven hours.
Is there GraphQL or realtime?
No. The API is REST and JSON. New messages reach servers through the message.created webhook, and the site's own apps through push notifications.
More of what Yclas does
See it with your own listings.
Free for 15 days. No credit card.
Start free trial