overview
Manager API Overview
Section titled “Manager API Overview”Manager API provides account management features, including balance inquiry and usage statistics.
Authentication
Section titled “Authentication”All API requests require an API Key in the Header:
Authorization: Bearer sk_mg_your_api_key_hereAPI Keys start with sk_mg_. Create one at Portal > Settings > API Keys.
Base URL
Section titled “Base URL”https://portal-api.r9s.ai/api/v1/portal/managementQuick Examples
Section titled “Quick Examples”Check Balance:
curl -X GET "https://portal-api.r9s.ai/api/v1/portal/management/balance" \ -H "Authorization: Bearer sk_mg_your_api_key_here"Get Usage Statistics:
curl -X GET "https://portal-api.r9s.ai/api/v1/portal/management/usage?start_time=1735689600&end_time=1736294400" \ -H "Authorization: Bearer sk_mg_your_api_key_here"API Endpoints
Section titled “API Endpoints”| Endpoint | Method | Description |
|---|---|---|
/balance | GET | Get account balance |
/usage | GET | Get usage statistics |
- API Keys are only displayed once after creation. Store them securely.
- Rotate API Keys regularly and avoid using permanent keys.
- If a key is lost, delete it and create a new one.