API reference
TG2AI exposes an HTTP API used by the web console and third-party integrations. Authenticate with a License session cookie or an API Key created in settings after login.
Base URL
https://app.tg2ai.com/api/v1Authentication
| Mode | How |
|---|---|
| Browser / License | Sign in at the console; requests use the session cookie |
| API Key | Create a key in Settings → API keys; send as configured header / query (see Chinese API reference for exact header names) |
Common areas
- Accounts — list, import, status, folders
- Proxies — pool CRUD and health checks
- Tasks / engine — submit and stream long-running jobs
- Modules — each automation module mounts its own routes under
/api/v1/... - Public SMS compare —
GET /api/v1/public/sms/comparepowers the SMS board
Conventions
- JSON request/response bodies
- Standard HTTP status codes
- Task-style operations return an engine/task id for log streaming in the console
Full detail
Parameter tables and examples remain in the Chinese API reference while English expands. For purchase and console access see Getting started.
