查询令牌额度
GET
https://api.chatgptsb.com/v1/dashboard/billing/subscription
请求参数
Header 参数
Content-Type
string
必需
示例值:
application/json
Authorization
string
令牌KEY
示例值:
Bearer sk-xxxx
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://api.chatgptsb.com/v1/dashboard/billing/subscription' \
--header 'Authorization: Bearer sk-xxxx' \
--header 'Content-Type: application/json'
返回响应
🟢200成功
application/json
Body
object
string
必需
has_payment_method
integer
必需
soft_limit_usd
string
必需
hard_limit_usd
string
必需
system_hard_limit_usd
string
必需
access_until
string
必需
示例
{
"object": "billing_subscription",
"has_payment_method": true,
"soft_limit_usd": 41.715348,
"hard_limit_usd": 41.715348,
"system_hard_limit_usd": 41.715348,
"access_until": 0
}
修改于 2024-12-16 12:20:10