Skip to main content
GET
Get Usage
Returns the workspace’s credit balance and the API rate-limit configuration. Use this to monitor consumption, enforce budget limits in your integration, or display remaining credits in a dashboard. The response includes the current credit balance, lifetime totalEarned / totalSpent, a manageUrl for billing, and the rateLimit window (limit, windowMs). It does not return per-endpoint counters or a per-request spend breakdown.

Authorizations

x-api-key
string
header
required

Workspace API key. Prefix: lma_. Example: lma_abc123...

Response

Credit balance and rate limit information

data
object

Workspace credit balance and rate limit information.