Send offers, get a beautiful page.

A client (Margin first) sends Gaudi a package: who the trader is, their offers, a few settings. Gaudi answers with a link to a finished page, an A4 PDF of it and a picture for the link preview. The trader sends the link to buyers instead of an Excel list or a PDF.

Gaudi knows nothing about your system. Everything it shows comes from the package. It keeps the built page, and nothing else from the package.

Start

Every call goes to https://gaudi.makebetter.ai with your token. The smallest package is a trader's name and one offer:

curl -X POST https://gaudi.makebetter.ai/v1/pages \
  -H "Authorization: Bearer $GAUDI_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "account": { "name": "Danubia Poultry s.r.o." },
    "offers":  [ { "product": "Chicken breast fillet", "price": 4.65, "unit": "kg" } ]
  }'

The answer, in about three seconds:

{
  "id": "hxq6hwruDsYItp8b",
  "url": "https://gaudi.makebetter.ai/p/hxq6hwruDsYItp8b/",
  "pdf": "https://gaudi.makebetter.ai/p/hxq6hwruDsYItp8b/offer.pdf",
  "preview": "https://gaudi.makebetter.ai/p/hxq6hwruDsYItp8b/preview.png",
  "offers": 1,
  "seconds": 2.96
}

Show the trader the url to share, and offer the pdf as a download. The preview is what WhatsApp, mail and LinkedIn show when the link is shared; the page already points to it.

Tokens

Send your token on every call to /v1: Authorization: Bearer gdi_…. MeatBorsa issues tokens to each client in the makebetter admin, under Gaudi. A token is shown once, when it is issued; Gaudi keeps only its fingerprint. Keep it on your server, never in an app or a web page. If one leaks, ask for it to be revoked: it stops working at once, and pages it made stay online.

Each client has a plan. Free: pages and picks. Premium: designs too.

POST/v1/pagesbuild a page

The body is a package (below). Answers 201 with the links shown above. Each call makes a new page with a new address; an old page stays as it was. The address is random and unguessable: whoever has the link can open the page, nobody can find it otherwise, and search engines are told not to index it.

The package

One JSON object. Only account.name and one offer with a product are required.

{
  "gaudi": 1,
  "account": {
    "name": "Danubia Poultry s.r.o.",
    "logo": "data:image/svg+xml;base64,…",
    "color": "#1F6F5C",
    "country": "SK",
    "address": "Mlynské nivy 12, 821 09 Bratislava, Slovakia",
    "website": "danubia-poultry.example",
    "certificates": ["BRC Food", "IFS Food", "Halal"],
    "contact": { "name": "Marek Hudec", "role": "Trading, chicken", "phone": "+421 900 000 123",
                 "whatsapp": "+421 900 000 123", "email": "[email protected]" }
  },
  "page": {
    "title": "Fresh & frozen chicken",
    "note": "Good morning. Chilled fillet loads this week from Horné Saliby…",
    "cover": "https://…/cover.jpg",
    "language": "en",
    "currency": "EUR",
    "week": 48,
    "valid_from": "2026-11-23",
    "valid_until": "2026-11-28",
    "terms": [["Delivery", "FCA Horné Saliby"], ["Payment", "Prepayment"]],
    "fine_print": "Prices per kg, net weight, excluding VAT.",
    "theme": "market"
  },
  "offers": [
    { "group": "Breast", "product": "Chicken breast fillet", "detail": "Skinless", "state": "chilled",
      "price": 4.65, "unit": "kg", "quantity": "2 trucks", "packing": "4 × 2.5 kg MAP, 10 kg carton",
      "origin": "SK", "shelf_life": "10 days", "note": "Full trucks only.", "photo": "https://…/fillet.jpg" }
  ]
}

account

FieldWhat
namerequiredThe trader's company name.
logoA file (see files): SVG, PNG, JPG or WebP. The page takes its colour from it.
color#RRGGBB, to set the brand colour instead of taking it from the logo.
country, address, websiteShown in the footer. country is an ISO code.
certificatesA list of short names, shown as labels.
contactname, role, phone, whatsapp, email. Buyers ask through WhatsApp or mail: they pick products on the page and send one message listing them, with prices and quantities.

page

FieldWhat
titleThe headline. An " & " is drawn as an ampersand in the brand colour.
noteThe trader's own words to buyers, set like a short letter and signed with the contact's first name.
coverA wide photo (a file).
languageen or de for now. Only Gaudi's own words are translated; your text is shown as you send it.
currencyThe default for every offer. EUR if left out.
week, valid_from, valid_untilDays as YYYY-MM-DD. After valid_until, the page says the offer has ended and crosses its prices out.
termsPairs of [label, text]: delivery, payment, minimum…
fine_printOne line at the foot of the page.
themeA look: its name, or {"name", "css"} from a design.

offers[]

FieldWhat
productrequiredThe product's name.
detailCut, spec or grade, shown after the name.
groupOffers are grouped in the order their groups first appear.
statechilled, frozen or fresh.
priceA number, or text such as "on request".
currency, unitOverride the page's currency; the unit defaults to kg.
quantityFree text, as traders say it: "22 t", "2 trucks".
packing, origin, shelf_lifeorigin is an ISO country code, printed as the country's name.
noteA line under the offer.
photoA file.

There is no supplier field. A client that resells hides its sources by not sending them: Gaudi never shows anything that is not in the package.

Logos and photos

A file is either a data: URL (the file inside the package, base64) or an https:// link Gaudi can download, such as a signed storage link valid for a few minutes. Gaudi copies the file into the page, so the link may expire afterwards. Links to private networks are refused. At most 15 MB a file.

Looks

A look restyles the same page: same data, same buttons, a different design. Leave page.theme out for the default, or name one:

LookFeels like
(default)Warm paper, a large serif headline, offers as a fine menu. Suits almost anyone.
marketA dark price board: condensed capitals, cream price tags, photo cards. Best with photos.
swissWhite, a strict grid, colour panels, offers as a precise table. Long lists, big exporters.
gazetteAn old auction catalogue: Garamond, Roman numerals, numbered lots. Heritage, family firms.
telexA line-printer sheet on green-bar paper. Playful, old-school trading desks.

Every look takes the trader's colour from their logo, so even a built-in look is theirs. Store the look you choose for a trader and send it with each week's package.

POST/v1/pickspick a look · every plan

A small model reads the logo, the products and an optional brief, and picks the built-in look that suits the trader. A few seconds.

curl -X POST https://gaudi.makebetter.ai/v1/picks \
  -H "Authorization: Bearer $GAUDI_TOKEN" -H "Content-Type: application/json" \
  -d '{ "package": { …the package… }, "brief": "Family abattoir since 1962, proud and warm" }'

# → {"look": "gazette", "accent": null, "reason": "…", "cost": 0.0002, "model": "claude-haiku-5-5"}

Put look in page.theme, and accent, when it is not null, in account.color.

POST/v1/designsdesign a look · premium

A model designs a look for this one trader from the same inputs. It writes only a stylesheet; Gaudi tests it on phones, desktops, long lists and the PDF, and lets the model repair and polish it. A few minutes, so it runs as a job:

curl -X POST https://gaudi.makebetter.ai/v1/designs \
  -H "Authorization: Bearer $GAUDI_TOKEN" -H "Content-Type: application/json" \
  -d '{ "package": { …the package… }, "brief": "Family abattoir since 1962, proud and warm" }'

# → 202 {"id": "Gk2…", "status": "/v1/designs/Gk2…"}
GET/v1/designs/<id>its progress

Ask every few seconds, with the same token, until status is done or failed:

{ "status": "done", "log": ["round 1 (design): …", "  check: passes", …],
  "look": { "name": "dehesa", "css": "/* fonts: … */ …" }, "problems": [], "cost": 0.29 }

Store look and send it as page.theme from then on: the design is made once, and every page after it is built with no model at all. A design that does not pass the tests has look: null and its problems. A design job is kept in memory; ask for its result within the hour.

Errors

Every error is JSON with an error in plain words.

StatusWhen
400The body is not valid JSON, or empty, or over 60 MB.
401No token, or one that is not valid or was revoked.
403The plan does not include it: designs are premium.
422The package cannot be built: the error says which field and why.
429Designs are busy. Try again in a few minutes.
500, 502Gaudi or the model failed. Try again; if it repeats, tell us the time.

Limits