Create a site
create_siteCreates a complete WordPress website for a local business and starts building it. Call list_templates first for a templateId, and check_credits to see whether the workspace has a site credit. Send templateId and businessName, plus phone and addressCity, and addressLine1 and addressPostalCode unless hasPublicBusinessAddress is false; a googlePlaceId can supply these instead. If you leave out services or serviceAreas, the call waits up to 20 seconds for suggestions. It returns the siteId, a slug, and a statusUrl at once; the build takes about 5 minutes, so follow it with site_status. It costs one site credit and counts as one of 10 paid calls a minute. The idempotencyKey is required: send a new one for each site, and send the same one again if you retry, so a retry after a timeout returns the first result and does not charge twice. Do not call it to change a site that exists.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"templateId": "<templateId>",
"businessName": "<businessName>",
"idempotencyKey": "<idempotencyKey>"
},
"name": "create_site"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| No | |||
| phone | No | The business phone number. Required by us, though the competitor's spec does not require it: a request without it answers 400 unless `googlePlaceId` supplies a number. Use the international form such as `+15125550123`, or the national form of `countryCode`. | |
| address | No | Legacy combined public address. Used as the street line only when `addressLine1` is absent and `addressCity` is present. | |
| logoUrl | No | An https URL on the default port of a public PNG or JPG of at most 5 MB. The server fetches it once, with a 10-second limit and no redirects, and refuses a host that resolves to a private address; any failure answers 400 on `logoUrl`. | |
| themeId | No | Optional theme ID returned by `GET /api/templates`. Accepted and ignored: a template here is one design. | |
| bodyFont | No | ||
| industry | No | The industry, such as `Plumbing`. When omitted, the site is built for `Local business`. | |
| services | No | The services, at most 25. When omitted, the request waits up to 20 seconds for suggestions and falls back to one service equal to the industry. | |
| locations | No | ||
| skipImages | No | Accepted and ignored: a build always makes its images. | |
| templateId | Yes | Template ID returned by `GET /api/templates`. An id that the list does not hold answers 403 `template_unavailable`. | |
| addressCity | No | City or locality. Required by us: a request without it answers 400 unless `googlePlaceId` supplies it. | |
| countryCode | No | Two-letter ISO country code. Defaults to `US`. | |
| headingFont | No | ||
| addressLine1 | No | Public street address. Required while `hasPublicBusinessAddress` is true. Omit when it is false. | |
| addressLine2 | No | Optional suite, unit, building, or floor. | |
| businessName | Yes | ||
| primaryColor | No | ||
| serviceAreas | No | The service areas, at most 25. When omitted, the request waits up to 20 seconds for suggestions and falls back to one area equal to the city. | |
| aboutBusiness | No | ||
| addressRegion | No | State, province, or region. | |
| businessHours | No | The weekly schedule as an object keyed by `monday` to `sunday`, or as the same object in a JSON-encoded string. A day is `{ "opens": "09:00", "closes": "17:00" }`, a list of up to two such ranges, or `{ "closed": true }`; a day that is left out is closed. Plain text is refused with 400. Used only with `businessHoursMode` `weekly`. | |
| customerModel | No | How customers interact with the business. Defaults to `travel_to_customers`. `visit_business` and `hybrid` require `hasPublicBusinessAddress` to be true. | |
| googlePlaceId | No | A Google Place ID. Fields that the request leaves out come from the place; a field that the request sends wins. | |
| builderVersion | No | Accepted and ignored. | |
| idempotencyKey | Yes | Required. A new value for each site, such as a UUID; send the same one when you retry, and a repeat within 24 hours returns the first result and charges nothing. | |
| secondaryColor | No | When `primaryColor` is sent without it, the design's own secondary colour is used. | |
| backgroundTheme | No | ||
| businessWebsite | No | ||
| primaryLanguage | No | The site language. `ca` (Catalan) is supported here and not in the competitor's spec. When omitted, the language follows `countryCode`, as in the wizard. | |
| addressPostalCode | No | Postal code. Required while `hasPublicBusinessAddress` is true. Omit when it is false. | |
| businessHoursMode | No | Display behavior for the main business hours. If omitted, a supplied `businessHours` implies `weekly`; otherwise hours are hidden. | |
| createServicePages | No | Defaults to true. | |
| createLocationPages | No | Defaults to true when `locations` is not empty, and has no effect otherwise. | |
| createServiceAreaPages | No | Defaults to true. | |
| hasPublicBusinessAddress | No | Defaults to true. When false, the street address and postal code are discarded and do not appear on the generated site. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | Yes | The first 8 hex characters of `siteId`, a hyphen, and the business slug. | |
| siteId | Yes | ||
| statusUrl | Yes | Poll this path with the same key to follow the build. | |
| previewUrl | Yes | Null until the site is live. |