Overview

The Automation API surfaces Gizzi Code’s cron/routine/loop runtime through the Allternit platform API. A goal is a platform-owned objective that can own routines (persistent scheduled jobs) and loops (session-scoped recurring jobs). Routines and loops can execute locally or in the cloud via the Gizzi cron daemon.

Base URL

For local development:

Authentication

All automation routes require a valid bearer token. See Authentication.

Data models

Goal

Routine

Loop

Endpoints

Goals

Routines

Loops

Local scheduler

Create a goal

Request body

Example request

Example response

Create a routine

Request body

Example request

Example response

Trigger a routine

Triggers a cloud-scheduled routine immediately through the Gizzi cron daemon. Local-domain routines return 501 Not Implemented.

List routine runs

Returns stored runs for the routine and attempts to sync the latest history from the Gizzi cron daemon.

Example response

Create a loop

Same request shape as a routine, plus an optional session_id and expires_at.

List local schedules

Returns all routines and loops whose execution_domain is local.

Example response

Error codes