Skip to content

ButterIX v1 is out: versions, multiple languages, Ask AI, and a per-site MCP server, all built in. →

Create site

POSThttps://api.butterix.com/v1/orgs/:org/sites

Requires the admin role. The platform creates a hosted Git repository for the site, writes the template, and starts the first production deployment right away.

  • starter: three pages: introduction, quickstart, and a writing guide.
  • blank: a single home page.
  • openapi: an API reference generated from openapiText, which is required.

slug is the site's subdomain: 5–40 lowercase letters, numbers, or single hyphens, not starting or ending with a hyphen, and without -- (preview URLs use -- as a separator). Some reserved words (such as console, managements, and butterix) aren't available. The site's URL is https://<slug>-sites.butterix.com.

Authentication

AuthorizationBearer

An organization API key, created in the console under Organization settings → API Keys, starting with biti_. It acts as editor and can't do anything that requires admin.

biti_sessionstring

The HttpOnly session cookie set on login. Requests that change data must be same-origin (the Origin header is checked) to prevent CSRF.

Path parameters

orgstringRequired

Organization slug or id

Request

This endpoint expects an object.
namestringRequired
slugstringOptional

Generated from the name by default

templateenumOptionalDefaults to starter
Allowed values:
openapiTextstringOptional

Required when template is openapi: OpenAPI 3.x as YAML or JSON text

Response

New site
idstringOptional
slugstringOptional
namestringOptional
urlURLOptional
sourceTypeenumOptional

Content source: hosted repository, external Git repository, or CLI upload

Allowed values:
statusenumOptional

Status of the latest deployment; none when there isn't one

Allowed values:
updatedAtintegerOptional
pageCountintegerOptional

Number of pages in the production deployment

orgSlugstringOptional
gitobjectOptional

Present when a Git repository is connected

urlstringOptional
branchstringOptional
hasTokenbooleanOptional
webhookUrlstringOptional
webhookSecretstringOptional
productionobjectOptional
idstringOptional
siteIdstringOptional
kindenumOptional
Allowed values:
statusenumOptional
Allowed values:
sourcestringOptional

cli (upload), hosted (hosted repository), or git

branchstringOptional
commitShastringOptional
messagestringOptional
createdByobjectOptional

Who triggered it; with an API key, the person who created the key

idstringOptional
namestringOptional
apiKeyobjectOptional

The name, start and end of the key, when triggered with an API key (CLI / CI)

namestringOptional
prefixstringOptional

First 10 characters of the key

suffixstringOptional

Last 10 characters of the key

errorstringOptional

Reason for failure

pageCountintegerOptional
sizeBytesintegerOptional
durationMsintegerOptional
urlURLOptional

Present after success. Production deployments have the site's URL; previews use a <site>--<last 8 characters of the id> subdomain

isCurrentbooleanOptional

Whether this is the current production deployment

createdAtintegerOptional
finishedAtintegerOptional
domainslist of objectsOptional
domainstringOptional
verifiedbooleanOptional
primarybooleanOptional

Whether this is the primary domain

verifyRecordobjectOptional

TXT record to add

type"TXT"Optional
namestringOptional
valuestringOptional
cnamestringOptional

CNAME target

createdAtintegerOptional
accessobjectOptional
modeenumOptional
Allowed values:
aiobjectOptional
enabledbooleanOptional
providerenumOptional
Allowed values:
modelstringOptional
hasKeybooleanOptional

Whether a site key is set

keyMaskedstringOptional
platformKeyAvailablebooleanOptional

Whether the platform has a default key for the current provider

platformKeysmap from strings to booleansOptional

Whether each provider has a platform key

guidancestringOptional
effortenum or nullOptional

Reasoning effort; null uses the model's suggested level

Allowed values:
retentionDaysinteger or nullOptional

Days to keep questions; null keeps them forever

dailyLimitinteger or nullOptional

Maximum questions that call the model in a rolling 24 hours; null means no limit

agentbooleanOptional

Whether console AI is on

gapsbooleanOptional

Whether documentation gaps are sorted every day

supportobjectOptional

Contact when AI has no answer

enabledbooleanOptional
urlstringOptional
emailstringOptional
primaryUrlURLOptional

The address on the primary domain; the same as url without a custom domain

mcpUrlURLOptional

Errors