Skip to content

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

Schema

<Schema> and <SchemaSnippet> render a data structure defined in OpenAPI.

This component pulls data from the API reference, so it updates automatically with the OpenAPI spec. The examples below reference this site's platform API.

Displays a type by its name in components.schemas: <Schema> (alias <SchemaFields>) shows a field table, and <SchemaSnippet> shows a JSON example.

<Schema type="Deployment" />
<SchemaSnippet type="Deployment" title="Deployment example" />
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
Deployment example
{
  "id": "dpl_01jd8x2k7q",
  "siteId": "site_2m4k8p",
  "kind": "production",
  "status": "queued",
  "source": "git",
  "branch": "main",
  "commitSha": "9fceb02d0ae598e95dc970b74767f19372d61af8",
  "message": "docs: update quickstart",
  "createdBy": {
    "id": "string",
    "name": "string"
  },
  "apiKey": {
    "name": "GitHub Actions",
    "prefix": "biti_a1B2c",
    "suffix": "Kd82mQx0Zt"
  },
  "error": "string",
  "pageCount": 94,
  "sizeBytes": 5832110,
  "durationMs": 6120,
  "url": "https://acme-payments--8x2k7q-sites.butterix.com",
  "isCurrent": true,
  "createdAt": 1,
  "finishedAt": 1
}
typestringRequired
Schema name.
titlestring
SchemaSnippet only: card title.
highlightstring | array
SchemaSnippet only: lines to highlight.

In the page's .md version, <Schema> is a field table and <SchemaSnippet> a JSON code block.