Skip to main content
GET
/
api
/
usage
Get usage and quota
curl --request GET \
  --url https://app.dacard.ai/api/usage \
  --cookie __session=
{
  "credits": {
    "used": 123,
    "limit": 123,
    "remaining": 123,
    "breakdown": {
      "score": 123,
      "chat": 123,
      "api": 123
    }
  },
  "resetsAt": "2023-11-07T05:31:56Z",
  "planId": "free",
  "isUnlimited": true,
  "creditCosts": {
    "score": 123,
    "chat": 123,
    "api": 123
  },
  "subscription": {
    "status": "active",
    "currentPeriodEnd": "2023-11-07T05:31:56Z",
    "cancelAtPeriodEnd": true
  }
}

Authorizations

__session
string
cookie
required

Clerk session cookie. Authentication is handled by Clerk. Sign in at https://app.dacard.ai/sign-in to obtain a session.

Response

Usage data

credits
object
resetsAt
string<date-time>

First of next UTC month

planId
enum<string>
Available options:
free,
pro,
team,
enterprise
isUnlimited
boolean
creditCosts
object
subscription
object