Get subscription info
marzban_subscription_infoDiagnose broken subscription links by reading status, usage, and expiry directly from the subscription token, without needing a username or admin login.
Instructions
Reads subscription status/usage/expiry using the token from a subscription URL (the same public, unauthenticated endpoint client apps use) — for diagnosing a broken subscription link without needing the username. For an admin-side lookup by username, use marzban_users_get instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| subscriptionToken | Yes | The opaque token from a user's subscription URL (the path segment after "/sub/") — not an admin/session token. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| links | No | ||
| expire | No | ||
| status | Yes | ||
| proxies | Yes | ||
| username | Yes | ||
| next_plan | No | ||
| online_at | No | ||
| created_at | Yes | ||
| data_limit | No | data_limit can be 0 or greater | |
| used_traffic | Yes | ||
| sub_updated_at | No | ||
| on_hold_timeout | No | ||
| subscription_url | No | ||
| sub_last_user_agent | No | ||
| lifetime_used_traffic | No | ||
| on_hold_expire_duration | No | ||
| data_limit_reset_strategy | No | no_reset |