Get account details

Returns account, plan, and current API key details. Accepts either auth scheme: - Bearer API key (`bearerAuth`): returns full account shape including `api_key` and `subscription` fields. - Clerk session JWT (`ClerkSession`): returns the minimal session account shape (id, name, email, plan, owner_user_id).

GET
/v1/account

Authorization

AuthorizationRequiredBearer <token>

API key. Obtain from POST /v1/account/api-keys.

In: header

AuthorizationRequiredBearer <token>

Clerk-issued JWT. Obtain via Clerk frontend SDK after sign-in.

In: header

curl -X GET "https://api.bytekit.com/v1/account" \
  -H "Authorization: Bearer <token>"

Account, plan, and current API key details.

{
  "id": "string",
  "email": "string",
  "name": "string",
  "plan": {
    "id": "string",
    "slug": "string",
    "name": "string",
    "included_screenshots": 0,
    "has_overage": true,
    "overage_price_cents": 0,
    "max_concurrency": 0,
    "rate_limit_per_sec": 0,
    "max_bulk_size": 0,
    "max_monitors": 0,
    "retention_days": 0
  },
  "api_key": {
    "id": "string",
    "prefix": "string",
    "label": "string",
    "environment": "string",
    "last_used_at": "2019-08-24T14:15:22Z",
    "created_at": "2019-08-24T14:15:22Z"
  },
  "subscription": {
    "status": "active",
    "plan": {
      "slug": "string",
      "name": "string",
      "included_bytes": 0,
      "included_credits": 0,
      "topup_price_per_mb_cents": 0,
      "credit_topup_price_per_k_cents": 0
    }
  },
  "auto_topup": {
    "enabled": true,
    "threshold_bytes": 0,
    "amount_bytes": 0,
    "monthly_cap_cents": 0
  },
  "cancelled_at": "2019-08-24T14:15:22Z",
  "grace_period_expires_at": "2019-08-24T14:15:22Z",
  "created_at": "2019-08-24T14:15:22Z"
}