Check credits

GET /v1/account/credits

Fetch lighthouse and ttfb credits available in account

Responses

  • 200

    A credits data object to be returned

    Hide response attributes Show response attributes object
    • lighthouse object
      Hide lighthouse attributes Show lighthouse attributes object
      • available_credits number
      • available_paid_credits number
    • ttfb object
      Hide ttfb attributes Show ttfb attributes object
      • available_credits number
      • available_paid_credits number
    • credits_refill_date string
GET /v1/account/credits
curl \
 -X GET https://api.speedvitals.com/v1/account/credits \
 -H "X-API-KEY: $API_KEY"
Response examples (200)
{
  "lighthouse": {
    "available_credits": 100,
    "available_paid_credits": 0
  },
  "ttfb": {
    "available_credits": 32,
    "available_paid_credits": 0
  },
  "credits_refill_date": 1657535713
}
Response examples (200)
{
  "lighthouse": {
    "available_credits": 100,
    "available_paid_credits": 0
  },
  "ttfb": {
    "available_credits": 32,
    "available_paid_credits": 0
  },
  "credits_refill_date": 1657535713
}