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.
/v1/pagesbuild a pageThe 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
| Field | What |
|---|---|
namerequired | The trader's company name. |
logo | A 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, website | Shown in the footer. country is an ISO code. |
certificates | A list of short names, shown as labels. |
contact | name, 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
| Field | What |
|---|---|
title | The headline. An " & " is drawn as an ampersand in the brand colour. |
note | The trader's own words to buyers, set like a short letter and signed with the contact's first name. |
cover | A wide photo (a file). |
language | en or de for now. Only Gaudi's own words are translated; your text is shown as you send it. |
currency | The default for every offer. EUR if left out. |
week, valid_from, valid_until | Days as YYYY-MM-DD. After valid_until, the page says the offer has ended and crosses its prices out. |
terms | Pairs of [label, text]: delivery, payment, minimum… |
fine_print | One line at the foot of the page. |
theme | A look: its name, or {"name", "css"} from a design. |
offers[]
| Field | What |
|---|---|
productrequired | The product's name. |
detail | Cut, spec or grade, shown after the name. |
group | Offers are grouped in the order their groups first appear. |
state | chilled, frozen or fresh. |
price | A number, or text such as "on request". |
currency, unit | Override the page's currency; the unit defaults to kg. |
quantity | Free text, as traders say it: "22 t", "2 trucks". |
packing, origin, shelf_life | origin is an ISO country code, printed as the country's name. |
note | A line under the offer. |
photo | A 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:
| Look | Feels like |
|---|---|
| (default) | Warm paper, a large serif headline, offers as a fine menu. Suits almost anyone. |
market | A dark price board: condensed capitals, cream price tags, photo cards. Best with photos. |
swiss | White, a strict grid, colour panels, offers as a precise table. Long lists, big exporters. |
gazette | An old auction catalogue: Garamond, Roman numerals, numbered lots. Heritage, family firms. |
telex | A 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.
/v1/pickspick a look · every planA 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.
/v1/designsdesign a look · premiumA 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…"}
/v1/designs/<id>its progressAsk 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.
| Status | When |
|---|---|
400 | The body is not valid JSON, or empty, or over 60 MB. |
401 | No token, or one that is not valid or was revoked. |
403 | The plan does not include it: designs are premium. |
422 | The package cannot be built: the error says which field and why. |
429 | Designs are busy. Try again in a few minutes. |
500, 502 | Gaudi or the model failed. Try again; if it repeats, tell us the time. |
Limits
- A package up to 60 MB, a file up to 15 MB.
- Two pages build at the same time; more wait their turn. A page takes about three seconds.
- Two designs run at the same time; more get
429. - Pages are kept. Tell us if one has to be taken down.