Developers

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.

driveline.yclas.com/api/docs
The site's API documentation: endpoints grouped by resource, with who may call each one
GET /api/v1/site
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, …},
    …
  }
}
REST API + OpenAPI 110+ endpoints for listings, accounts, messages, orders and more, described in an OpenAPI 3.1 file for code generators, Postman and AI tools. Sign in with Yclas OAuth 2.1 with PKCE: users sign in on the marketplace itself, with its Google login and 2-step, and come back to your front end with expiring tokens. Hosted checkout One call returns a payment page on the marketplace: featured listings, plans, Buy now. Cards never touch your code; commissions and payouts keep working. Signed webhooks 16 events pushed to your server the moment they happen, signed with HMAC-SHA256, retried and logged. Scoped keys Server keys with only the permissions they need, from 24 scopes, shown once and stored as a fingerprint, with every change in the Audit log. MCP for AI agents 70 tools for Claude, ChatGPT, Cursor and other agents, limited by the key's permissions, with every change in the Audit log.
110+endpoints in the OpenAPI file
16webhook events, signed and retried
70tools on the MCP server
$0per API call: flat monthly price
REST API

Documented 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
A front end starts up
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, …},
    …
  }
}

Real answers from a demo site, shortened.

Accounts Marketplace plan

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
The marketplace's own page asks the user to let a front end sign them in
The consent page, on the marketplace itself
POST /api/v1/oauth/token
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 proof

A screenshot and real answers from a demo site, tokens shortened.

Payments

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
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
The checkout endpoints in the site's API documentation
In the site's API documentation

A real answer and a screenshot from a demo site.

Webhooks Professional and Marketplace plans

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
More on webhooks and the API →
What your server receives
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.

Keys and limits Marketplace plan

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
API keys: keys with their permissions and when they were last used, and the rate limit
Questions

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.

See it with your own listings.

Free for 15 days. No credit card.

Start free trial