Connect Git repository
Requires the admin role. Replaces the hosted repository with a remote one, pulls it right away, and starts a production deployment.
Private repositories need an access token with read permission (stored encrypted); publishing from the visual editor also needs write permission.
After connecting, configure a webhook in the repository (its URL and secret are in git in the response).
Authentication
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.
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
Request
Response
cli (upload), hosted (hosted repository), or git
Who triggered it; with an API key, the person who created the key
The name, start and end of the key, when triggered with an API key (CLI / CI)
First 10 characters of the key
Last 10 characters of the key
Reason for failure
Present after success. Production deployments have the site's URL; previews use a <site>--<last 8 characters of the id> subdomain
Whether this is the current production deployment
Whether this is the primary domain
TXT record to add
CNAME target
Whether a site key is set
Whether the platform has a default key for the current provider
Whether each provider has a platform key
Reasoning effort; null uses the model's suggested level
Days to keep questions; null keeps them forever
Maximum questions that call the model in a rolling 24 hours; null means no limit
Whether console AI is on
Whether documentation gaps are sorted every day
Contact when AI has no answer