# POST /websites/from-design

**Resource:** [Websites](./websites.md)  
**MCP tool:** `create_website_from_design`  
**Scopes:** `websites:write`  
**Write operation:** yes

Create a complete website from a design in one step: home, services, about and contact, a page per service, privacy, terms and 404 pages and the lead magnet reader page, plus Articles pages and a shop with checkout once the workspace has public notepads (shown as Articles) or a store for this site (read at every build; the site rebuilds when they change). Every website tool (booking, voice agent, call me back, order form, guide sign-up, document requests) is built into the design and appears once it is set up; pass tools to have them switched on and set up for you. In the chosen design, coloured with a brand kit, with starting words and photos for the industry and the business's name, phone, email and address put in. Hosting is set up (the first hosted website in a workspace is free; deploy: false skips it) and, when a brief is given, the AI website builder starts rewriting the words for this business straight away. Returns website_id, the hosted address (production_url), and builder_request_id. Get designs and industries from list_website_designs.

## Parameters

| Name | In | Type | Required | Description |
|------|----|------|----------|-------------|
| `design` | body | string | yes | Design id from list_website_designs, for example "trade-ready". Only designs with ready: true can be used. |
| `industry` | body | string | yes | Industry id from list_website_designs, for example "plumbing". Sets the starting words and photos. |
| `name` | body | string | no | Website name. Defaults to the workspace name. |
| `brand_kit_id` | body | string | no | Brand kit to colour the site with (an id from list_studio_brand_kits). Defaults to the workspace's main kit. |
| `colours` | body | object | no | Instead of brand_kit_id: five hex colours { dark, light, main, second, highlight }. |
| `brief` | body | string | no | What the website is for, in the owner's words. The AI website builder rewrites the starting words to fit it straight after the site is made. Up to 3,000 characters. |
| `business_name` | body | string | no | Business name shown on the site. Defaults to the website name. |
| `phone` | body | string | no | Phone shown on the site. Defaults to the workspace phone. |
| `email` | body | string | no | Email shown on the site. Defaults to the workspace contact email. |
| `address` | body | string | no | Address shown on the site. Defaults to the workspace address. |
| `logo` | body | string | no | Logo image URL (https) shown in the menu in place of the business name. Defaults to the workspace logo. |
| `photos` | body | array | no | Up to 12 photo URLs (https) of the business, used in place of the sample photos in the design. Photos of people (team, reviews) stay. |
| `copy_from` | body | string | no | Upgrade an existing website: its address (e.g. "acme.com.au"). Its words and photos are copied, the photos into TrustPager file storage, and the AI builder writes the new site from its words. Ignored when photos are given. |
| `tools` | body | array | no | The website tools to switch on and set up as fully as possible once the site is made, by tool id: forms (Enquiry forms, always included), scheduling (Online booking), website-chat (Live Chat), lead-magnets, voice-agent, voice-agent-outbound (Voice agent calls out), documents (Documents by email), stripe (Payments), order-forms, ecommerce (Online store), docusign (E-signing), reviews, notepads (Articles). Each is set up from what the workspace already has, in the background; follow it with list_website_tools (the setup of each tool says what was done and what only the owner can finish). Never buys a phone number, takes a payment, sends anything to a customer or publishes AI-written articles or guides. |
| `hero` | body | string | no | The first screen of the home page, by hero id from list_website_designs (each design lists the heroes it offers): classic (the design's own, the default), booking (Live booking: pick a day and time), enquiry (Quick enquiry), callback (Call me back), gift (Free gift: the guide sign-up), chat (Ask us anything, answered by the assistant), reviews (real rating and review quotes), product (Featured product with a Buy button). The tool it runs on is set up with the site. Until what it needs exists (a product in the store, a rating, the business phone number, a booking type, a switched-on guide, website chat) the live site shows Quick enquiry in its place. |
| `mode` | body | string | no | Light or dark: the colour scheme the whole website is drawn in, as the Light and Dark choice on the Create website page. Only for a design whose modes in list_website_designs lists both; leave it out for the design's own scheme (its mode). Visitors never see a switch. |
| `deploy` | body | boolean | no | false to skip setting up hosting now. Default true. The first hosted website in a workspace is free; each extra one is $5 a month. |
| `require_approval` | body | boolean | no | Optional. Set true to route this write into the approval queue for human review instead of executing it immediately (returns 202 + an approval_id). Works even when your key/token has permission to execute directly. |

## Request example

```bash
curl -X POST   "https://api.trustpager.com/functions/v1/api/v1/websites/from-design"   -H "Authorization: Bearer YOUR_API_KEY"   -H "Content-Type: application/json"   -d '{"design":"...","industry":"...","name":"..."}'
```

---
Base URL: `https://api.trustpager.com/functions/v1/api/v1` — Auth: `Authorization: Bearer YOUR_API_KEY`