Skip to content
Last updated

Get all automations connected to a specific GitHub repository. Optionally filter by branch.

GEThttps://api.aitronos.com/v1/streamline/repositories/automations

Headers

Authorization string required
Bearer ${FREDDY_SESSION_TOKEN} session token for the logged-in user.

Query Parameters

organization_id string required
Organization ID to filter automations.

repository_url string required
GitHub repository URL (e.g., https://github.com/owner/repo).

branch string optional
Branch name to filter automations. Returns all branches if not specified.

Returns

An object containing repository_url, branch, an automations array with full automation objects, and total_count.

Bash
curl "https://api.aitronos.com/v1/streamline/repositories/automations?organization_id=org_xyz789&repository_url=https://github.com/owner/repo" \
  -H "Authorization: Bearer $FREDDY_SESSION_TOKEN"

Response:

{
  "repository_url": "https://github.com/owner/repo",
  "branch": "main",
  "automations": [
    {
      "id": "auto_abc123",
      "name": "Data Processing Automation",
      "organization_id": "org_xyz789",
      "created_by_user_id": "usr_abc123",
      "automation_id": "streamline_internal_id",
      "upload_method": "git",
      "git_repository_url": "https://github.com/owner/repo",
      "git_branch": "main",
      "git_last_commit_sha": "abc123def456",
      "git_last_sync_at": "2025-11-15T10:30:00Z",
      "git_webhook_id": "12345678",
      "execution_file_path": "main.py",
      "execution_return_mode": "stream",
      "parameters": {
        "param1": "value1"
      },
      "schedule_enabled": false,
      "schedule_cron": null,
      "schedule_timezone": "UTC",
      "schedule_next_run_at": null,
      "is_active": true,
      "last_executed_at": "2025-11-15T09:00:00Z",
      "execution_count": 42,
      "created_at": "2025-11-15T08:00:00Z",
      "updated_at": "2025-11-15T10:30:00Z"
    }
  ],
  "total_count": 1
}