All requests below will use this key. Your API key is sent directly to api.cueapi.ai and never stored by the docs site.

GET/v1/usage

Usage Stats

Get current plan, billing period, cue count, execution usage, projections, and rate limit info.

Request

bash
curl https://api.cueapi.ai/v1/usage \
  -H "Authorization: Bearer cue_sk_YOUR_KEY"

Response

json
{
  "plan": "free",
  "billing_period": {
    "start": "2026-03-01",
    "end": "2026-03-31",
    "days_remaining": 14
  },
  "cues": {
    "used": 4,
    "limit": 10,
    "remaining": 6,
    "percent_used": 40
  },
  "executions": {
    "used": 127,
    "limit": 300,
    "remaining": 173,
    "percent_used": 42,
    "projected_month_end": 381,
    "will_exceed_limit": true
  },
  "outcomes": {
    "reported": 38,
    "succeeded": 35,
    "failed": 3
  },
  "rate_limit": {
    "requests_per_minute": 60,
    "current_usage": 3
  },
  "upgrade_url": "https://dashboard.cueapi.ai/billing"
}

Response fields

FieldTypeDescription
planstringCurrent plan: free, pro, or scale
billing_period.startstringFirst day of current billing month (ISO date)
billing_period.endstringLast day of current billing month (ISO date)
billing_period.days_remainingintegerDays until billing period resets
cues.usedintegerNumber of active + paused cues
cues.limitintegerMaximum cues allowed on current plan
cues.remainingintegerHow many more cues can be created
cues.percent_usedintegerPercentage of cue limit used (0-100)
executions.usedintegerExecutions consumed this billing period
executions.limitintegerMaximum executions allowed on current plan
executions.remainingintegerExecutions remaining this period
executions.percent_usedintegerPercentage of execution limit used (0-100)
executions.projected_month_endintegerLinear projection of total executions by month end
executions.will_exceed_limitbooleanWhether projected usage will exceed the plan limit
outcomes.reportedintegerExecutions with outcomes reported this month
outcomes.succeededintegerSuccessful outcomes this month
outcomes.failedintegerFailed outcomes + delivery failures this month
rate_limit.requests_per_minuteintegerRequests per minute allowed on current plan
rate_limit.current_usageintegerRequests made in the current 60-second window
upgrade_urlstringLink to billing dashboard for plan upgrades

Agent usage

Agents should check this endpoint before creating new cues or registering high-frequency schedules:

python
usage = requests.get("https://api.cueapi.ai/v1/usage", headers=headers).json()
 
if usage["cues"]["remaining"] <= 0:
    print("No cue slots available. Upgrade or delete unused cues")
 
if usage["executions"]["will_exceed_limit"]:
    print(f"Projected {usage['executions']['projected_month_end']} executions. Will exceed limit")
GET/v1/usage
Try it
Enter your API key above to send requests
How do I know if my agent ran successfully?
Ctrl+K