POST /automations/{automation_id}/sessions

Invoke an automation.

MethodPath
POST/v1/automations/{automation_id}/sessions

Runs the automation exactly as defined — its persona, model, environment, permissions, skills, and budget bind — and returns the session it started. The body carries only what a caller may supply: the typed `input` its schema demands, an optional tighter `budget`, and `metadata`. For a different persona or environment, start a raw session with POST /v1/sessions instead.

Path parameters

automation_idstringrequired
curl -X POST \
  "https://api.ellipsis.dev/v1/automations/{automation_id}/sessions" \
  -H "Authorization: Bearer $ELLIPSIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Request

Example request body
{
"budget": 0,
"input": {},
"metadata": {}
}

Body parameters

budgetnumber

Tighten this run's spend cap, in US dollars. May only lower the automation's own session budget; a higher number, or one above the organization's ceiling, is a 400.

inputobject

The typed payload for an automation that declares input.json_schema: validated against it (422 on mismatch) and rendered into the session's first message through the automation's input.message template. Required when the automation declares a schema; a 422 when it does not.

metadatadefault {}object

Arbitrary string key/value metadata stored on the session.

Response

Example response · 201
{
}

On this page

No Headings
Schedule a demo