{"openapi":"3.1.0","info":{"title":"Thibault Van Renne public API","version":"2026-09-30","description":"Agent-callable endpoints of the Thibault Van Renne webshop: discover the outlet and collections, price a custom hand-knotted rug or a project line (hand-tuft, hand-loom), send a project brief, register an agent, book a showroom visit, request a quote, and obtain a hosted Stripe Checkout link for a buyer. All prices are recomputed server-side. Read /agents.md first for the recipes and the etiquette. The same tools are available as an MCP server at /mcp (Streamable HTTP, discovery at /.well-known/mcp.json).","contact":{"email":"tvr@thibaultvanrenne.com","url":"https://www.thibaultvanrenne.com/agents.md"},"termsOfService":"https://www.thibaultvanrenne.com/en/terms"},"servers":[{"url":"https://www.thibaultvanrenne.com"}],"x-mcp-server":{"url":"https://www.thibaultvanrenne.com/mcp","transport":"streamable_http","auth":"none","discovery":"https://www.thibaultvanrenne.com/.well-known/mcp.json","docs":"https://www.thibaultvanrenne.com/agents.md"},"paths":{"/api/webshop/outlet":{"get":{"summary":"In-stock outlet pieces, fixed price, ready to ship","parameters":[{"name":"piece","in":"query","required":false,"schema":{"type":"string"},"description":"sku (TVR-OUT-001) or id for a single piece"}],"responses":{"200":{"description":"List of pieces with sku, collection, design, material, dimensions, outlet_price_eur (incl. BE VAT), image, available, and reserved_until (ISO timestamp, present only while a checkout hold on the piece is active - see the note on /api/agent/checkout-session 409 piece_reserved below)"}}}},"/feeds/products.json":{"get":{"summary":"Structured catalogue: every outlet piece plus one entry per made-to-order collection (price_from per m², lead_time_months)","responses":{"200":{"description":"JSON feed, cached 5 minutes"}}}},"/api/webshop/quote":{"post":{"summary":"Instant price for a custom rug in a given collection, material and size, with destination VAT and shipping; also prices the project lines hand-tuft and hand-loom","parameters":[{"name":"X-Agent-Key","in":"header","required":false,"schema":{"type":"string"},"description":"Key from POST /api/agent/register. A valid key adds agent: { registered: true, name } to the response; an unknown key answers 401 invalid_agent_key. No discount is attached to the key by itself. A key TVR has linked by hand to an approved TVR Pro account adds agent.trade_tier { applied_percent, source: \"tvr-pro\" } on hand-knotted quotes and the rug figures are that account's trade figures."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["collectionId","material","lengthCm","widthCm","buyerCountry"],"properties":{"collectionId":{"type":"string","description":"Collection id as in /feeds/products.json (TVR-COL-<id> entries) or the collection page slug, e.g. new-legends-2026. The project lines hand-tuft (hand-tufted, from 350 EUR/m2 EXCL. VAT, transport included, wool, professionals only; larger quantities on request) and hand-loom (199 EUR/m2 incl. BE VAT, wool, made per 2 pieces) are quotable here but not payable through checkout-session; they are ordered through /api/agent/project-brief."},"material":{"type":"string","enum":["wool","wool+nettle","100-nettle","wool+natural-silk","wool+nettle+natural-silk","wool+bamboo-silk","100-natural-silk","100-natural-silk-fine","100-bamboo-silk"],"description":"Not every material exists in every collection; the quote endpoint tells you"},"lengthCm":{"type":"integer","minimum":60},"widthCm":{"type":"integer","minimum":60},"designIndex":{"type":"integer","description":"Per-design collections only (e.g. CAMEO)"},"variantName":{"type":"string","description":"Colourway name shown on the collection page"},"shape":{"type":"string","enum":["rectangle","square","round"]},"quote_id":{"type":"string","description":"Optional, from POST /api/webshop/quote, for traceability"},"buyerCountry":{"type":"string","description":"ISO-2 destination country"},"currency":{"type":"string","enum":["EUR","USD","GBP","CHF","AED"]},"quantity":{"type":"integer","minimum":1,"maximum":200,"description":"Project lines only; defaults to the line minimum (hand-loom: 2). Ignored for hand-knotted collections."}}}}}},"responses":{"200":{"description":"quote_id (valid 24h), breakdown (rug, shipping, totals), warnings, expires_at. For hand-tuft and hand-loom a project block: quantity, minimum_quantity, total_incl_vat_eur (after the volume ladder), total_m2, volume_pricing, projectMinimumSqm (40), price_note, lead_time (\"confirmed per project\"), order_via. For a hand-knotted collection a trade block with a note (no automatic volume discount). With a valid X-Agent-Key: agent { registered, name, trade_tier? }.","content":{"application/json":{"schema":{"type":"object","properties":{"quote_id":{"type":"string"},"currency":{"type":"string"},"trade_discount_pct":{"type":"number"},"agent":{"type":"object","properties":{"registered":{"type":"boolean"},"name":{"type":"string"},"trade_tier":{"type":"object","description":"Only for an agent key TVR linked to an approved TVR Pro account, hand-knotted quotes only","properties":{"applied_percent":{"type":"number"},"source":{"type":"string","enum":["tvr-pro"]}}}}},"trade":{"type":"object","description":"Hand-knotted collections only","properties":{"note":{"type":"string","example":"trade and project pricing via a project brief, best price from the owner within 24 hours"}}},"project":{"type":"object","description":"Project lines hand-tuft and hand-loom only","properties":{"quantity":{"type":"integer"},"minimum_quantity":{"type":"integer"},"total_incl_vat_eur":{"type":"number","description":"quantity x piece price, after the volume ladder"},"total_m2":{"type":"number"},"volume_pricing":{"type":"object","description":"Volume ladder on the total project surface (quantity x length x width): 20 percent from 40 m2, 30 percent from 100 m2, 40 percent from 250 m2; below 40 m2 the public price","properties":{"ladder":{"type":"array","items":{"type":"object","properties":{"from_sqm":{"type":"number"},"percent":{"type":"number"}}}},"applied_percent":{"type":"number"},"applied_from_sqm":{"type":["number","null"]},"total_sqm":{"type":"number"},"public_total_incl_vat_eur":{"type":"number"},"total_incl_vat_eur":{"type":"number","description":"after the discount"},"above_ladder":{"type":"boolean","description":"true above 250 m2: the 40 percent figure is quoted and the project price is answered by a person within 24 hours"},"note":{"type":["string","null"],"example":"project price on request, answer within 24 hours"}}},"projectMinimumSqm":{"type":"number"},"price_note":{"type":"string"},"lead_time":{"type":"string"},"trade_tier":{"type":"string"},"order_via":{"type":"string"}}},"rug":{"type":"object"},"shipping":{"type":"object"},"totals_in_display_currency":{"type":"object"},"warnings":{"type":"array","items":{"type":"string"}}}}}}},"400":{"description":"Unknown collection, material not offered, size out of range, blocked country, BAD_QUANTITY, MINIMUM_QUANTITY"},"401":{"description":"invalid_agent_key"}}}},"/api/agent/project-brief":{"post":{"summary":"Send a project brief (architects, designers, developers, hospitality): pieces, sizes, quantities, budget, deadline. A structured quotation follows within 24 hours from tvr@thibaultvanrenne.com.","description":"Validated field by field (a refusal names the field), priced indicatively at public reference prices with destination VAT for the given country, stored, and forwarded to the team as a lead. Hand-knotted items without a collectionId are listed unpriced and priced on the quotation. The volume ladder (20 percent from 40 m2, 30 percent from 100 m2, 40 percent from 250 m2 of hand-tuft and hand-loom surface together) is applied to the project-line items; hand-knotted items stay at the public price, their trade pricing stays in TVR Pro. Rate-limited to 20 briefs per day per IP. Send an Idempotency-Key header to make a retry safe (same key within 24h replays the same response).","parameters":[{"name":"X-Agent-Key","in":"header","required":false,"schema":{"type":"string"},"description":"Key from POST /api/agent/register. A valid key adds agent: { registered: true, name } to the response; an unknown key answers 401 invalid_agent_key. No discount is attached to the key by itself. A key TVR has linked by hand to an approved TVR Pro account adds agent.trade_tier { applied_percent, source: \"tvr-pro\" } on hand-knotted quotes and the rug figures are that account's trade figures."},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["agentName","agentContact","clientType","country","items"],"properties":{"agentName":{"type":"string","minLength":2,"maxLength":80},"agentContact":{"type":"string","format":"email","description":"Email address the team answers to"},"clientType":{"type":"string","enum":["architect","designer","developer","hospitality","other"]},"country":{"type":"string","description":"ISO 3166-1 alpha-2 destination; RU, BY, KP, IR, SY are refused"},"items":{"type":"array","minItems":1,"maxItems":20,"items":{"type":"object","required":["type","lengthCm","widthCm"],"properties":{"type":{"type":"string","enum":["hand-knotted","hand-tuft","hand-loom"]},"lengthCm":{"type":"integer","minimum":60,"maximum":1500},"widthCm":{"type":"integer","minimum":60,"maximum":1500},"quantity":{"type":"integer","minimum":1,"maximum":200,"default":1,"description":"hand-loom is made per 2 pieces: minimum 2"},"material":{"type":"string","maxLength":60,"description":"A material key as in /api/webshop/quote; defaults to wool"},"collectionId":{"type":"string","maxLength":60,"description":"hand-knotted only: the collection (page slug) to price against. Without it the item is priced on the quotation."},"notes":{"type":"string","maxLength":500}}}},"budgetEur":{"type":"number","minimum":0},"deadline":{"type":"string","maxLength":80},"message":{"type":"string","maxLength":2000}}}}}},"responses":{"200":{"description":"briefId (PB-YYYYMMDD-XXXXXX), status \"received\", receivedAt, indicativeTotal (currency EUR, inclVatEur after the volume ladder, exclVatEur, publicInclVatEur, destinationVatRate, totalM2, projectSqm, volumePricing (same shape as the quote), itemsPriced, itemsUnpriced, projectMinimumSqm, reachesProjectSurface, note, items with publicTotalInclVatEur and volumeDiscountPercent each) or null when nothing could be priced, nextStep, and agent { registered, name } with a valid X-Agent-Key"},"400":{"description":"invalid_json, missing_fields, invalid_field, out_of_range, too_long, too_many_items, invalid_email, invalid_country, country_not_serviceable, MINIMUM_QUANTITY, UNKNOWN_COLLECTION, MATERIAL_UNAVAILABLE; detail and field name the problem"},"401":{"description":"invalid_agent_key"},"429":{"description":"rate_limited"},"502":{"description":"lead_forward_failed (the brief is stored under briefId; write to tvr@thibaultvanrenne.com quoting it)"}}}},"/api/pro/project-brief":{"get":{"summary":"Machine-readable description of the TUFTED PRO project brief endpoint","responses":{"200":{"description":"JSON description: fields, file rules, limits"}}},"post":{"operationId":"submitProjectBrief","summary":"Send a complete project brief in ONE call (hotels, contract, residences; hand-tufted and other techniques). Files by URL. Thibault Van Renne replies personally, normally within 24 hours on business days.","description":"No authentication. Also available as MCP tool tvr_submit_project_brief at https://www.thibaultvanrenne.com/mcp. Required: contactName, email or phone, and a quantity (pieces, sizes or totalM2). Sizes may be text (\"470x 200x300 cm\", \"2x3 m\", \"120 m2\"). Files by public URL (designImageUrls, roomPhotoUrls, files[].url; fetched by TVR, http/https public hosts only) or base64. Files: JPEG, PNG, WEBP, HEIC, GIF, TIFF or PDF (checked by content; CAD as PDF), max 20 MB each, 24 files, 80 MB per brief; stored privately, never readable through the API. JSON body takes files as base64; multipart takes a \"brief\" JSON field plus file parts \"design\", \"design_<n>\" and \"space\". Rate-limited to 12 briefs per day per IP.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["contactName"],"description":"Also required: email or phone, and a quantity (pieces, sizes or totalM2).","properties":{"company":{"type":"string","maxLength":160},"contactName":{"type":"string","maxLength":120},"email":{"type":"string","format":"email"},"phone":{"type":"string","maxLength":40},"country":{"type":"string","maxLength":80},"projectName":{"type":"string","maxLength":160},"projectType":{"type":"string","enum":["hotel","restaurant","office","residential","retail","yacht","public","other"]},"pieces":{"type":"integer","minimum":1},"totalM2":{"type":"number","description":"Total area when the sizes are not known yet"},"designImageUrls":{"type":"array","maxItems":24,"items":{"type":"string","format":"uri"},"description":"Public links to design files or reference images (fetched by TVR)"},"roomPhotoUrls":{"type":"array","maxItems":24,"items":{"type":"string","format":"uri"},"description":"Public links to room/space photos or plans"},"sizes":{"type":"array","maxItems":50,"items":{"oneOf":[{"type":"string","description":"Size text, e.g. \"200x300 cm\", \"2x3 m\", \"470x 200x300\" (470 pieces), \"120 m2\""},{"type":"object","required":["widthCm","lengthCm"],"properties":{"quantity":{"type":"integer","minimum":1},"widthCm":{"type":"number"},"lengthCm":{"type":"number"},"label":{"type":"string"}}},{"type":"object","required":["areaM2"],"description":"wall-to-wall","properties":{"areaM2":{"type":"number"},"label":{"type":"string"}}}]}},"sameDesign":{"type":"boolean"},"designCount":{"type":"integer","minimum":1,"maximum":20},"technical":{"type":"object","properties":{"fireRating":{"type":"string"},"material":{"type":"string"},"pile":{"type":"string"},"backing":{"type":"string"}}},"neededBy":{"type":"string","description":"Date needed on site, YYYY-MM-DD"},"deliveryCity":{"type":"string"},"deliveryCountry":{"type":"string"},"message":{"type":"string","maxLength":5000},"agentName":{"type":"string","maxLength":120},"test":{"type":"boolean","description":"Marks a test brief"},"files":{"type":"array","maxItems":24,"items":{"type":"object","description":"url or dataBase64","properties":{"url":{"type":"string","format":"uri"},"filename":{"type":"string"},"contentType":{"type":"string"},"dataBase64":{"type":"string","format":"byte"},"kind":{"type":"string","enum":["design","space"]},"design":{"type":"integer","minimum":1,"maximum":20}}}}}}},"multipart/form-data":{"schema":{"type":"object","required":["brief"],"properties":{"brief":{"type":"string","description":"TuftedProjectBrief as a JSON string (without files)"},"design":{"type":"array","items":{"type":"string","format":"binary"},"description":"Files for design 1"},"design_2":{"type":"array","items":{"type":"string","format":"binary"},"description":"Files for design 2 (design_3 ... design_20 likewise)"},"space":{"type":"array","items":{"type":"string","format":"binary"},"description":"Photos or plans of the room or space"}}}}}},"responses":{"201":{"description":"{ ok: true, briefId: \"TB-YYMMDD-XXXXXX\", files, filesNotAccepted?, received: { pieces, totalM2, sizes }, next }"},"400":{"description":"missing_fields or invalid_fields, with the lists missing[] and invalid[], a hint and an example body"},"413":{"description":"too_large, file_too_large:<name>, too_many_files, files_too_large_in_total"},"415":{"description":"unsupported_file_type:<name>"},"429":{"description":"rate_limited"}}}},"/api/agent/register":{"post":{"summary":"Register an agent and receive an X-Agent-Key (shown once)","description":"The key identifies your agent on POST /api/webshop/quote and POST /api/agent/project-brief (responses carry agent { registered: true, name }; briefs are marked as registered). By itself it attaches no discount: trade pricing is a TVR Pro decision (approval at /en/trade). Once TVR has linked the key by hand to an approved TVR Pro account, hand-knotted quotes with it carry agent.trade_tier and that account's trade figures. Only a hash of the key is stored; a lost key means registering again. Rate-limited to 5 registrations per day per IP.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["agentName","operator","email"],"properties":{"agentName":{"type":"string","minLength":2,"maxLength":80},"operator":{"type":"string","minLength":2,"maxLength":120,"description":"The company or person running the agent"},"email":{"type":"string","format":"email"},"website":{"type":"string","format":"uri"}}}}}},"responses":{"201":{"description":"agentId, apiKey (tvr_agent_..., shown once), header (\"X-Agent-Key\"), registered: true, createdAt, note"},"400":{"description":"missing_fields, invalid_email, invalid_website"},"429":{"description":"rate_limited"}}}},"/api/agent/checkout-session":{"post":{"summary":"Create a hosted Stripe Checkout link for a buyer (outlet piece or custom rug)","description":"Returns a Stripe-hosted payment page URL, valid up to 1 hour for an outlet piece (sku) or 24 hours for a custom rug (items) - see expires_at in the response. Nothing is charged by this call. Prices, VAT (destination-based, reverse charge for EU businesses with a valid VAT number, 0% export outside the EU), shipping and the EU sanctions block are computed server-side exactly as on the website. Custom rugs: 50% deposit by default, or 100% with the pay-in-full discount. Outlet pieces: full payment. Enabled since 30 September 2026; should the merchant switch it off it answers 503 agent_checkout_disabled and the buyer completes payment on the checkout pages in /agents.md. The project lines hand-tuft and hand-loom are refused here (400 project_line_not_checkout) and ordered through /api/agent/project-brief. Send an Idempotency-Key header; the same key within 24h replays the same response.","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["buyer"],"properties":{"sku":{"type":"string","description":"Outlet piece sku or id. Use either sku or items."},"items":{"type":"array","maxItems":10,"items":{"type":"object","required":["collectionId","material","lengthCm","widthCm"],"properties":{"collectionId":{"type":"string","description":"Collection id as in /feeds/products.json (TVR-COL-<id> entries) or the collection page slug, e.g. new-legends-2026. The project lines hand-tuft (hand-tufted, from 350 EUR/m2 EXCL. VAT, transport included, wool, professionals only; larger quantities on request) and hand-loom (199 EUR/m2 incl. BE VAT, wool, made per 2 pieces) are quotable here but not payable through checkout-session; they are ordered through /api/agent/project-brief."},"material":{"type":"string","enum":["wool","wool+nettle","100-nettle","wool+natural-silk","wool+nettle+natural-silk","wool+bamboo-silk","100-natural-silk","100-natural-silk-fine","100-bamboo-silk"],"description":"Not every material exists in every collection; the quote endpoint tells you"},"lengthCm":{"type":"integer","minimum":60},"widthCm":{"type":"integer","minimum":60},"designIndex":{"type":"integer","description":"Per-design collections only (e.g. CAMEO)"},"variantName":{"type":"string","description":"Colourway name shown on the collection page"},"shape":{"type":"string","enum":["rectangle","square","round"]},"quote_id":{"type":"string","description":"Optional, from POST /api/webshop/quote, for traceability"}}},"description":"Custom rugs. Use either sku or items."},"buyer":{"type":"object","required":["email","name","phone","address"],"properties":{"email":{"type":"string","format":"email"},"name":{"type":"string"},"phone":{"type":"string","description":"International format, e.g. +32 9 281 00 38"},"company":{"type":"string"},"vatNumber":{"type":"string","description":"EU VAT number; a valid number matching the shipping country gives 0% reverse-charge for businesses"},"address":{"type":"object","required":["line1","city","postalCode","country"],"properties":{"line1":{"type":"string"},"line2":{"type":"string"},"city":{"type":"string"},"postalCode":{"type":"string"},"country":{"type":"string","description":"ISO 3166-1 alpha-2, e.g. BE. RU, BY, KP, IR, SY are refused (EU sanctions)."}}}}},"depositPct":{"type":"integer","enum":[50,100],"default":50,"description":"Custom rugs only"},"locale":{"type":"string","enum":["en","nl","fr","de"],"default":"en"},"currency":{"type":"string","enum":["EUR","GBP","USD","CHF"],"default":"EUR","description":"Currency the Stripe Checkout Session is created in. Pricing is always computed in EUR server-side; this only converts the displayed/charged amount at session creation."}}}}}},"responses":{"200":{"description":"checkout_url, session_id, expires_at, currency, amount_cents, amount_minor (same value as amount_cents, in `currency`'s minor units), fx_rate (EUR to currency), amount_eur, deposit_pct, total_eur, balance_eur, vat_rate, kind (outlet|custom), mode (live|test, whether the Checkout Session was created in Stripe live or test mode), next_step"},"400":{"description":"missing_fields, invalid_email, invalid_country, bad_deposit_pct, unsupported_currency, project_line_not_checkout, or a pricing error code"},"403":{"description":"blocked_country"},"404":{"description":"not_found (unknown sku)"},"409":{"description":"sold (outlet piece no longer available), or piece_reserved (another checkout on this outlet piece is already in progress - reserved for up to 60 minutes while an agent checkout is open (24 h for bank-transfer orders); the response includes reserved_until, an ISO timestamp, retry after that time)"},"429":{"description":"rate_limited"},"503":{"description":"agent_checkout_disabled or stripe_not_configured"}}}},"/api/agent/quote-request":{"post":{"summary":"Submit a quote or design-consultation request on behalf of a person, with their consent","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name","email","message","country","consent"],"properties":{"name":{"type":"string"},"email":{"type":"string","format":"email"},"message":{"type":"string"},"country":{"type":"string","description":"ISO-2, informational"},"consent":{"type":"boolean","description":"Must be true: the person agreed to be contacted"},"collection":{"type":"string"},"sku":{"type":"string"},"lengthCm":{"type":"integer"},"widthCm":{"type":"integer"}}}}}},"responses":{"200":{"description":"Request registered; TVR answers by email, typically within one business day"},"400":{"description":"missing_fields or consent_required"}}}},"/api/appointments/available":{"get":{"summary":"Open showroom time slots","parameters":[{"name":"date","in":"query","schema":{"type":"string","format":"date"}},{"name":"from","in":"query","schema":{"type":"string","format":"date"}},{"name":"to","in":"query","schema":{"type":"string","format":"date"}}],"responses":{"200":{"description":"Available slots"}}}},"/api/appointments":{"post":{"summary":"Book a showroom visit (by appointment only, Noorwegenstraat 51, Evergem)","responses":{"200":{"description":"Booking confirmed by email"},"400":{"description":"Missing required fields"}}}},"/api/agent/orders/{id}":{"get":{"summary":"Order status by Stripe PaymentIntent id or Odoo order reference","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Status"},"404":{"description":"Unknown id"}}}},"/api/internal/outlet-hold/release":{"post":{"summary":"Internal: release an outlet piece's reservation hold early","description":"Not agent-callable - requires the internal service key (x-internal-key header) issued only to tvr-proxy, same pattern as /api/webshop/order/notify. Documented here for completeness. Called on payment_intent.payment_failed or checkout.session.expired so an abandoned outlet checkout frees the piece immediately instead of after the full hold TTL (reserved for up to 60 minutes while an agent checkout is open, 24 h for bank-transfer orders).","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"payment_intent_id":{"type":"string"},"checkout_session_id":{"type":"string"},"piece_id":{"type":"string"},"sku":{"type":"string"}},"description":"At least one identifier required."}}}},"responses":{"200":{"description":"released (boolean), count"},"400":{"description":"missing_fields"},"401":{"description":"unauthorized"}}}}}}