Skip to content
Last updated

Register a Streamline automation backed by a Git repository.

POSThttps://api.aitronos.com/v1/streamline/automations/git

Headers

Authorization string required

Content-Type string required · application/json

Request Body

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

Returns

The created automation object. Sync jobs run asynchronously after validation.

Bash
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"
}