GET /api/subscription
Requires an authenticated account session. Optional plan query reveals an unlisted plan. Account dollar fields credits_balance_usd, credits_held_usd and credits_available_usd exclude plan usage; legacy aggregate balance fields remain for released desktop clients.
Authentication
Use an authenticated RedRouter account session cookie. Browser mutations also require the account CSRF token and matching Origin header; API keys do not authenticate these operations.
Parameters
[
{
"in": "query",
"name": "plan",
"schema": {
"type": "string"
}
}
]
Request examples
curl 'https://redrouter.org/api/subscription' --cookie "$REDROUTER_COOKIE_JAR"
Responses
200 · Subscription and account plan views
application/json
{
"$ref": "#/components/schemas/AccountSubscription"
}