billing

Embed
Preview of the card
<a href="https://lucidace.com/docs/ref-billing"><img src="https://lucidace.com/docs/_api/public/orgs/af34862a-c837-4478-8335-0505efe40459/spaces/da916cd3-c0fc-4b63-b971-b3c13623daf3/pages/57d29432-927f-4943-8f6a-9965d2ad53d2/social-card.svg?v=3e7ae33eec8b" alt="billing" width="600" height="315"></a>
GEThttps://lucidace.com/v1/orgs/{org_id}/usageScope billing:read

Parameters

org_idstringpathrequired
fromstringquery
tostringquery
bystringquery
project: add per-project counts

Code samples

cURL
curl -X GET "https://lucidace.com/v1/orgs/{org_id}/usage"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200
Example
{
  "daily": [
    {
      "day": "string",
      "metric": "string",
      "value": 0
    }
  ],
  "limits": [
    {
      "hard_limit": 0,
      "metric": "string",
      "soft_limit": 0
    }
  ],
  "plan": "string",
  "projects": [
    {
      "ai_calls": 0,
      "events": 0,
      "flag_requests": 0,
      "monthly_event_limit": 0,
      "name": "string",
      "project_id": "string",
      "replay_limit": 0,
      "replay_state": "string",
      "replays": 0,
      "state": "string"
    }
  ],
  "quota": {
    "metric": "string",
    "retry_after_secs": 0,
    "state": "string"
  }
}
Schema
dailyDaily[]required
Daily totals per metric (events, replays, flag_requests, ai_calls).
Show child parameters
daystringrequired
metricstringrequired
valueintegerrequired
limitsLimit[]required
Monthly plan limits (null = unlimited).
Show child parameters
hard_limitinteger
metricstringrequired
soft_limitinteger
planstringrequired
projectsarray
Only with ?by=project: every project's month-to-date counts and caps (LU-I3).
quotaobjectrequired
ok | soft | hard; at hard capture answers 429 with Retry-After.
Show child parameters
metricstring
retry_after_secsintegerrequired
statestringrequired
ok | soft | hard
403
404
GEThttps://lucidace.com/v1/plans

The plan catalog. No authentication: the pricing page and the sign-up flow read it.

Code samples

cURL
curl -X GET "https://lucidace.com/v1/plans"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200
Example
{
  "data": [
    {
      "currency": "string",
      "id": "string",
      "limits": [
        {
          "hard_limit": 0,
          "metric": "string",
          "soft_limit": 0
        }
      ],
      "monthly_price_cents": 0,
      "name": "string",
      "purchasable": true
    }
  ],
  "next_cursor": "string"
}
Schema
dataobject[]required
Show child parameters
currencystringrequired
Lower-case ISO 4217 code.
idstringrequired
free | team | business
limitsLimit[]required
Monthly quotas per metric (from the plan_limits table; null = unlimited).
Show child parameters
hard_limitinteger
metricstringrequired
soft_limitinteger
monthly_price_centsintegerrequired
Price per month in minor units (cents); 0 for Free. Billed monthly.
namestringrequired
purchasablebooleanrequired
Whether this deployment can sell the plan right now (Stripe configured).
next_cursorstring
Updated