Skip to content
Last updated

Register a Streamline automation backed by a Git repository.

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

Query Parameters

organization_id string required

Organization ID to associate the automation with.

Headers

Authorization string required

Content-Type string required · application/json

Request Body

automation_name string required

git_url string required Public or authenticated HTTPS URL.

branch string optional · Defaults to main

git_access_token string optional Git access token for private repositories.

Returns

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

Bash
curl -X POST "https://api.aitronos.com/v1/streamline/automations/upload/git" \
  -H "Authorization: Bearer $FREDDY_SESSION_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "automation_name": "Automation from Git",
    "git_url": "https://github.com/acme/automation.git",
    "branch": "main"
  }'

Response:

{
  "id": "sauto_git_123",
  "automation_name": "Automation from Git",
  "upload_method": "git",
  "git_url": "https://github.com/acme/automation.git",
  "branch": "main",
  "is_active": true,
  "initial_sync_status": "queued"
}