Paxa Labs

ดูคีย์ ยอดเครดิต และแพ็กเกจ

GEThttps://api.paxalabs.com/v1/me

GET /v1/me รายงานคีย์ที่ส่งมา ยอดเครดิตสดทั้งสองส่วน และแพ็กเกจที่มีผลพร้อมอัตราจำกัดคำขอและจำนวนคำขอพร้อมกัน

ดูเป็น Markdown
curl https://api.paxalabs.com/v1/me \
  -H "Authorization: Bearer $PAXA_API_KEY"
{
  "key": {
    "id": "6b9f1a52-1b6e-4c9d-9f34-58a4c2f9d3aa",
    "name": "production",
    "key_start": "pxa_a3f2k9",
    "credit_limit": null,
    "credits_spent": 1240.39,
    "created_at": "2026-07-02T09:14:07.412Z",
    "last_used_at": "2026-08-03T05:41:52.108Z"
  },
  "balance": {
    "wallet": 8200,
    "plan": 14759.61,
    "total": 22959.61
  },
  "plan": {
    "key": "standard",
    "rpm": 200,
    "concurrency": 15,
    "monthly_credits": 25200
  }
}

เวลากระทบยอดการใช้งานให้เรียกเอนด์พอยต์นี้ 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.

ข้อผิดพลาด#

401unauthorizedThe request carried no API key, or the key is invalid or disabled.