เวลากระทบยอดการใช้งานให้เรียกเอนด์พอยต์นี้ credits_spent อาจช้ากว่ายอดจริงได้ถึง 5 นาที
เฮดเดอร์#
authorizationBearer pxa_...จำเป็นAuthorization: Bearer pxa_... (recommended).
x-api-keypxa_...Alternative to the Authorization header. Ignored when Authorization is present.
การตอบกลับ#
Key, balance, and plan for the authenticated account.
keyobjectจำเป็นThe API key that authenticated this request.
ดูฟิลด์ย่อยซ่อนฟิลด์ย่อย
key.idstringจำเป็นKey id.
key.namestringจำเป็นThe label given to the key at creation.
key.key_startstringจำเป็นFirst characters of the key, for display.
key.credit_limitnumber or nullจำเป็นSpending cap for this key in credits; null means uncapped.
key.credits_spentnumberจำเป็นCredits this key has spent, exact to a hundredth (may lag live spend by up to 5 minutes).
key.created_atstringจำเป็นCreation time, ISO 8601.
key.last_used_atstring or nullจำเป็นLast verified use, ISO 8601; null when never used.
balanceobjectจำเป็นLive credit balance of the account, exact to a hundredth of a credit.
ดูฟิลด์ย่อยซ่อนฟิลด์ย่อย
balance.walletnumberจำเป็นPurchased and granted credits; never expire.
balance.plannumberจำเป็นMonthly plan credits; reset each billing period and spend first.
balance.totalnumberจำเป็นwallet plus plan.
planobjectจำเป็นThe effective plan.
ดูฟิลด์ย่อยซ่อนฟิลด์ย่อย
plan.keystringจำเป็นPlan key: "free", "starter", "standard", or "pro".
plan.rpminteger or nullจำเป็นRequests per minute the plan allows; null means no limit. One window covers the whole account, across every product.
plan.concurrencyintegerจำเป็นConcurrent requests the plan allows, counted per product. An open live connection holds one slot of its product.
plan.monthly_creditsintegerจำเป็นCredits granted each billing period; 0 on the free plan.