Get Balance

Return the API key workspace's available credit balance.

01概述

Returns the available and reserved balance of the workspace that owns the API key, in USD.

GET/api/v1/me/balance
Base URL https://capi.minapp.xinAPI 版本 v1认证方式 Bearer YOUR_API_TOKEN

示例

Get Balance

cURL
curl https://capi.minapp.xin/api/v1/me/balance \
  -H "Authorization: Bearer YOUR_API_TOKEN"
HTTP 200· OK
{
  "account": "workspace_4821",
  "key_name": "production",
  "unlimited": true,
  "balance": { "amount": 128.44, "currency": "USD" },
  "reserved": { "amount": 0.61, "currency": "USD" }
}