Aether
Войти в кабинет
Вернуться к статьям
API & Automation

REST API v1.1 & AI Automation: Auto-Checking Accounts and Launching Desktop Runs

Developer 01.12.2026 1,127
REST API v1.1 & AI Automation: Auto-Checking Accounts and Launching Desktop Runs

The public REST API v1.1 connects Aether's Account Checker, your internal spreadsheets, or an AI orchestrator directly to your online Aether Instagram and Aether YouTube desktop machines. Below is the verified blueprint: exact token scopes, endpoints, a ready-to-paste AI prompt, and working Python and Node.js examples.

1. Issuing an API Key & Required Scopes

  1. Open Account Portal → API Access (REST v1.1) (available with any active paid subscription).
  2. Generate a personal key (ae_live_*) with two scopes enabled:
    • account_checker — batch profile analytics via POST /api/v1.1/account-checker;
    • remote — inspect connected machines, switch DB groups, apply presets, edit scheduler rules, and enqueue start/stop commands.
  3. Send the token via Authorization: Bearer YOUR_API_KEY or X-API-Key: YOUR_API_KEY. Full interactive reference is published at /api-docs.
Security note: full keys are revealed once at creation time and stored server-side only as SHA-256 hashes. Keep ae_live_* in environment variables such as AETHER_API_KEY rather than source files.

2. Core Endpoints for Check → Filter → Launch Workflows

Method & Endpoint Scope Purpose & Key Payload Fields
POST /api/v1.1/account-checker account_checker Accepts {"accounts": ["@u1", ...], "platform": "auto", "force_refresh": false} (up to 30 items). Returns data.accounts[] with status, followers, and analytics (buckets, avg_views, avg_er_pct, zero_views_pct).
GET /api/v1.1/remote/instances remote Lists connected desktop machines (supports ?product=ig&online=1). Includes instance_id, state, presets[], db_groups[], active_db_group, and scheduler.
POST /api/v1.1/remote/command remote Queues an action (returns HTTP 202 + data.command_id): set_db_group, apply_preset, set_mode, set_threads, start, soft_stop, stop, restart, set_scheduler, get_logs.
GET /api/v1.1/remote/command?id=... remote Polls command execution status (pending / acked / done / failed / expired) and output.
GET / POST /api/v1.1/remote/scheduler remote Reads or updates weekly scheduler rules and pushes changes straight to the desktop app.

3. Ready-to-Use AI Automation Prompt

Paste this specification into your coding assistant or agent workflow to build custom integrations without inventing endpoints:

Build an automation script against Aether Tools REST API v1.1 (base URL https://aethertools.com/api/v1.1).
Auth header: Authorization: Bearer <AETHER_API_KEY> from env. Rate limit: 60 req/min.
Step 1: POST /account-checker with {"accounts": [...], "platform": "instagram"}.
Filter accounts where status == "active", analytics.avg_views >= 500, and analytics.zero_views_pct < 40.
Step 2: GET /remote/instances?product=ig&online=1 and pick an instance where remote_enabled == true and state != "running".
Step 3: Sequentially enqueue POST /remote/command and poll GET /remote/command?id=<command_id> until status == "done":
  1) {"instance_id": ID, "command": "set_db_group", "group_name": "Valid accounts"}
  2) {"instance_id": ID, "command": "apply_preset", "preset": "Warmup Balanced"}
  3) {"instance_id": ID, "command": "start"}
Do not invent undocumented fields; handle HTTP 409 and 429 with backoff.

4. Working Python Example

import os
import time
import requests

BASE_URL = "https://aethertools.com/api/v1.1"
API_KEY = os.environ["AETHER_API_KEY"]
HEADERS = {"Authorization": f"Bearer {API_KEY}", "Content-Type": "application/json"}


def wait_command(cmd_id: int, timeout_s: int = 45) -> dict:
    deadline = time.time() + timeout_s
    while time.time() < deadline:
        res = requests.get(f"{BASE_URL}/remote/command", params={"id": cmd_id}, headers=HEADERS, timeout=15)
        res.raise_for_status()
        cmd = res.json()["data"]["command"]
        if cmd["status"] in ("done", "failed", "expired"):
            return cmd
        time.sleep(2)
    raise TimeoutError(f"Command {cmd_id} timed out")


def send_and_wait(instance_id: str, command: str, **extra) -> dict:
    res = requests.post(
        f"{BASE_URL}/remote/command",
        json={"instance_id": instance_id, "command": command, **extra},
        headers=HEADERS,
        timeout=15,
    )
    res.raise_for_status()
    return wait_command(res.json()["data"]["command_id"])


check_res = requests.post(
    f"{BASE_URL}/account-checker",
    json={"accounts": ["@brand_one", "@brand_two"], "platform": "instagram"},
    headers=HEADERS,
    timeout=30,
)
check_res.raise_for_status()

healthy = [
    a["handle"]
    for a in check_res.json()["data"]["accounts"]
    if a.get("status") == "active" and (a.get("analytics") or {}).get("avg_views", 0) >= 500
]

if healthy:
    inst_res = requests.get(f"{BASE_URL}/remote/instances", params={"product": "ig", "online": 1}, headers=HEADERS, timeout=15)
    inst_res.raise_for_status()
    idle = [i for i in inst_res.json()["data"]["instances"] if i.get("remote_enabled") and i.get("state") in ("idle", "done")]
    if not idle:
        raise RuntimeError("No idle online Aether Instagram instances found")

    inst_id = idle[0]["instance_id"]
    send_and_wait(inst_id, "set_db_group", group_name="Valid accounts")
    send_and_wait(inst_id, "set_threads", threads=4)
    started = send_and_wait(inst_id, "start")
    print("Run started:", started["status"], started["result_text"])

5. Working Node.js Example (Fetch API)

const BASE_URL = "https://aethertools.com/api/v1.1";
const HEADERS = {
  Authorization: `Bearer ${process.env.AETHER_API_KEY}`,
  "Content-Type": "application/json",
};

async function api(path, options = {}) {
  const res = await fetch(`${BASE_URL}${path}`, { ...options, headers: HEADERS });
  const json = await res.json();
  if (!res.ok || !json.ok) {
    throw new Error(`${res.status} ${json.error || "api_error"}: ${json.message || ""}`);
  }
  return json.data;
}

async function runCommand(instanceId, command, extra = {}) {
  const queued = await api("/remote/command", {
    method: "POST",
    body: JSON.stringify({ instance_id: instanceId, command, ...extra }),
  });
  for (let i = 0; i < 22; i++) {
    await new Promise((r) => setTimeout(r, 2000));
    const { command: cmd } = await api(`/remote/command?id=${queued.command_id}`);
    if (["done", "failed", "expired"].includes(cmd.status)) return cmd;
  }
  throw new Error(`Command ${queued.command_id} timed out`);
}

async function main() {
  const check = await api("/account-checker", {
    method: "POST",
    body: JSON.stringify({ accounts: ["@brand_one", "@brand_two"], platform: "auto" }),
  });
  const alive = check.accounts.filter((a) => a.status === "active");
  if (!alive.length) return console.log("No active profiles.");

  const { instances } = await api("/remote/instances?product=ig&online=1");
  const target = instances.find((i) => i.remote_enabled && i.state !== "running");
  if (!target) throw new Error("All online instances are busy.");

  await runCommand(target.instance_id, "set_db_group", { group_name: "Valid accounts" });
  const started = await runCommand(target.instance_id, "start");
  console.log("Started:", started.status, started.result_text);
}

main().catch(console.error);

Статья была полезна?

Оставьте реакцию для авторов.

Партнеры
Partner
РЕКОМЕНДАЦИЯ АВТОРА DECODO

Самый эффективный способ тестирования, запуска и масштабирования ваших проектов с веб-данными.

Читайте также

Другие статьи журнала

Все статьи на главной →
Инструменты
Мультиплатформенный чекер аккаунтов Aether: сайт, Telegram-бот, Mini App и База софта
01.12.2026 · 👁 544
Гайд
Удалённый доступ в Aether Tools: управление фермами с телефона через Telegram и REST API
30.11.2026 · 👁 160
Гайд
ИИ в Aether Tools за 3 минуты: как заставить ферму думать, отвечать, чинить потоки и не палиться
29.11.2026 · 👁 517
Блог
Гайд по AI-агенту: как составлять устойчивые промпты и работать с нейросетями бесплатно
30.10.2026 · 👁 883
Блог
Куда утекает прибыль: почему клиенты уходят из мессенджеров без покупки
18.10.2026 · 👁 1,823
Партнеры
Как сократить повторяющиеся вопросы в Telegram с помощью контента и Telegram Expert
08.10.2026 · 👁 1,143