Register a Streamline automation backed by a Git repository.
POSThttps://api.aitronos.com/v1/streamline/automations/git
Authorization string required
Content-Type string required · application/json
name string required
organization_id string required
git_repository_url string required
Public or authenticated HTTPS URL.
git_branch string optional · Defaults to main
execution_file_path string required
The created automation object. Sync jobs run asynchronously after validation.
Bash
- Bash
- Python
- JavaScript
curl -X POST "https://api.aitronos.com/v1/streamline/automations/git" \
-H "Authorization: Bearer $FREDDY_SESSION_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "Automation from Git",
"organization_id": "org_123",
"git_repository_url": "https://github.com/acme/automation.git",
"git_branch": "main",
"execution_file_path": "src/main.py"
}'Response:
{
"id": "sauto_git_123",
"name": "Automation from Git",
"upload_method": "git",
"git_repository_url": "https://github.com/acme/automation.git",
"git_branch": "main",
"execution_file_path": "src/main.py",
"is_active": true,
"initial_sync_status": "queued"
}