BazaarLinkBazaarLink
Sign in
DocsAPI ReferenceSDK ReferenceAgentic UsageAI Skills
Management Keys

List API keys

Lists the standard API keys owned by the current user (or a specified organization). This is a management endpoint: if you authenticate with a Bearer token, it must be a Management API Key — a regular sk-bl- key cannot call this. A logged-in session cookie also works (used by the web dashboard). The response never includes the raw key value, only its prefix/suffix.

GET/api/v1/keys

Authorizations

Authorizationrequired
string · header

API key as bearer token in the Authorization header.

Query parameters

orgId
string

Lists keys for the whole organization instead of just the caller's own. The caller must be an org_admin or billing_viewer in that organization, or the request returns 403.

GET /api/v1/keys
curl https://bazaarlink.ai/api/v1/keys \
  -H "Authorization: Bearer $BAZAARLINK_API_KEY"
Response examples

Success. keys[] is ordered newest-first and each entry includes usage stats, spend limit, org scope, and subscription plan (if any) — never the raw key value itself. limitRemainingUsd is pre-computed against the key's own reset period (null when unlimited); usageDailyUsd/usageWeeklyUsd/usageMonthlyUsd are fixed-calendar breakdowns independent of spendLimitPeriod.

{
  "keys": [
    {
      "id": "key_abc123",
      "name": "production",
      "keyPrefix": "sk-bl-",
      "keySuffix": "hDS5",
      "enabled": true,
      "keyType": "standard",
      "requestCount": 1204,
      "totalTokens": 892340,
      "lastUsed": "2026-07-27T03:12:00.000Z",
      "createdAt": "2026-05-01T00:00:00.000Z",
      "spendLimitUsd": 50,
      "spendLimitPeriod": "month",
      "allowedModels": null,
      "expiresAt": null,
      "subscriptionPlanId": null,
      "subscriptionStatus": null,
      "subscriptionStartedAt": null,
      "organizationId": null,
      "teamId": null,
      "orgMemberId": null,
      "subscriptionPlan": null,
      "periodSpendUsd": 4.82,
      "limitRemainingUsd": 45.18,
      "usageDailyUsd": 0.4,
      "usageWeeklyUsd": 2.1,
      "usageMonthlyUsd": 4.82
    }
  ]
}
Support
Support
Hi! How can we help you?
Send a message and we'll get back to you soon.
List API keys — BazaarLink API