Skip to content

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

Create scheduled task

POSThttps://api.butterix.com/v1/sites/:site/automations

Requires the editor role. A site can have up to 20.

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

sitestringRequired

Site slug or id

Request

This endpoint expects an object.
namestringRequired<=100 characters
promptstringRequired<=2000 characters

What to do

scheduleobjectRequired
everyenumRequired
Allowed values:
hourintegerRequired0-23
weekdayintegerOptional1-7

1 (Monday) to 7 (Sunday), required when every is week

minuteintegerOptional0-59Defaults to 0
timezonestringOptionalDefaults to UTC

IANA time zone

canEditbooleanOptionalDefaults to false

Allow changes to the docs; they are committed to a new draft branch

enabledbooleanOptionalDefaults to true

Response

New scheduled task
idstringOptional
namestringOptional
promptstringOptional
scheduleobjectOptional
everyenum
Allowed values:
weekdayintegerOptional1-7

1 (Monday) to 7 (Sunday), required when every is week

hourinteger0-23
minuteintegerOptional0-59Defaults to 0
timezonestringOptionalDefaults to UTC

IANA time zone

canEditbooleanOptional

Allow changes to the docs

enabledbooleanOptional
createdByobjectOptional
idstringOptional
namestringOptional
createdAtintegerOptional
nextAtinteger or nullOptional

When it runs next

lastRununionOptional

The last run (without its report); null before the first one

idstringOptional
automationIdstringOptional
causeenumOptional
Allowed values:
statusenumOptional
Allowed values:
reportstringOptional

Report (Markdown)

branchstringOptional

Draft branch, when there are changes

fileslist of stringsOptional

Changed files

errorstringOptional

Why it failed

usageobjectOptional

Token usage

inputintegerOptional
outputintegerOptional
startedAtintegerOptional
finishedAtinteger or nullOptional

Errors