What problem does it solve?
Operating a Sub2API backend through raw admin API calls is error-prone and tedious, especially for bulk account imports, redeem code generation, and error recovery. This Skill wraps the admin API in a single CLI with consistent authentication, idempotency support, and safe read-before-write workflows.
Core Features & Use Cases
- Account Lifecycle Management: List, inspect, create, update, delete, refresh, and clear errors on upstream accounts, including bulk updates, batch credential updates, and CRS sync.
- Redeem Code Operations: Generate balance, concurrency, subscription, and invitation codes, create-and-redeem in one step with idempotency keys, and export codes to CSV.
- Backend Configuration: Manage error passthrough rules, TLS fingerprint profiles, groups, and proxies, plus a raw
api passthrough for any admin endpoint.
- Use Case: An operator needs to recharge a user after a payment callback. They run
redeem-codes create-and-redeem with a stable idempotency key, then verify the result with redeem-codes list.
Quick Start
Set SUB2API_BASE_URL and SUB2API_ADMIN_API_KEY in the environment, then ask the assistant to list Sub2API accounts or generate a balance redeem code using the sub2api-admin skill.