Upload a Python script or zip package to register a new Streamline automation from the UI or CLI.
POSThttps://api.aitronos.com/v1/streamline/automations/upload
Authorization string required
Content-Type string required ยท multipart/form-data
name string required
organization_id string required
execution_file_path string required
Entry point inside the uploaded archive.
file file required
Python source file or zipped project.
description string optional
The newly created automation object with upload metadata and execution defaults.
Bash
- Bash
- Python
- JavaScript
curl -X POST "https://api.aitronos.com/v1/streamline/automations/upload" \
-H "Authorization: Bearer $FREDDY_SESSION_TOKEN" \
-F "name=Daily Report Generation" \
-F "organization_id=org_123" \
-F "execution_file_path=runner.py" \
-F "file=@./runner.py"Response:
{
"id": "sauto_daily_report",
"name": "Daily Report Generation",
"upload_method": "upload",
"organization_id": "org_123",
"execution_file_path": "src/main.py",
"is_active": true,
"created_at": "2025-11-17T08:00:00Z"
}