Skip to content

overview

Manager API provides account management features, including balance inquiry and usage statistics.

All API requests require an API Key in the Header:

Authorization: Bearer sk_mg_your_api_key_here

API Keys start with sk_mg_. Create one at Portal > Settings > API Keys.

https://portal-api.r9s.ai/api/v1/portal/management

Check Balance:

Terminal window
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:

Terminal window
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"
EndpointMethodDescription
/balanceGETGet account balance
/usageGETGet 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.