Typescript (SDK)
Tasks
Create task
Creates a new AI task. Use trigger_type to schedule it: immediate runs once right away, cron runs on a cron expression, interval runs every N seconds, once runs at a specific scheduled_at, event runs in response to account events.
POST
Typescript (SDK)
Authorizations
API key in the format: Bearer {api_token}
Body
application/json
Available options:
immediate, cron, interval, once, event Which agent runs the task. Use engineering for pure code/build work on a site; defaults to business.
Available options:
business, engineering Available options:
autonomous, supervised, read_only Available options:
notification, email, telegram, discord, slack Site this task works on (site_...); its repo is mounted as the run's workspace. Defaults to the account's default working site.
Response
Task created
Available options:
immediate, cron, interval, once, event Available options:
notification, email, telegram, discord, slack Available options:
autonomous, supervised, read_only Available options:
business, engineering 
